mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
gdb: rename type::{arch,objfile} -> type::{arch_owner,objfile_owner}
I think this makes the names of the methods clearer, especially for the arch. The type::arch method (which gets the arch owner, or NULL if the type is not arch owned) is easily confused with the get_type_arch method (which returns an arch no matter what). The name "arch_owner" will make it intuitive that the method returns NULL if the type is not arch-owned. Also, this frees the type::arch name, so we will be able to morph the get_type_arch function into the type::arch method. gdb/ChangeLog: * gdbtypes.h (struct type) <arch>: Rename to... <arch_owner>: ... this, update all users. <objfile>: Rename to... <objfile_owner>: ... this, update all users. Change-Id: Ie7c28684c7b565adec05a7619c418c69429bd8c0
This commit is contained in:
@ -1037,7 +1037,7 @@ language_arch_info::type_and_symbol::alloc_type_symbol
|
||||
struct symbol *symbol;
|
||||
struct gdbarch *gdbarch;
|
||||
gdb_assert (!type->is_objfile_owned ());
|
||||
gdbarch = type->arch ();
|
||||
gdbarch = type->arch_owner ();
|
||||
symbol = new (gdbarch_obstack (gdbarch)) struct symbol ();
|
||||
symbol->m_name = type->name ();
|
||||
symbol->set_language (lang, nullptr);
|
||||
|
Reference in New Issue
Block a user