mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
gdb: remove SYMBOL_TYPE macro
Add a getter and a setter for a symbol's type. Remove the corresponding macro and adjust all callers. Change-Id: Ie1a137744c5bfe1df4d4f9ae5541c5299577c8de
This commit is contained in:
@ -975,7 +975,7 @@ language_arch_info::bool_type () const
|
||||
sym = lookup_symbol (m_bool_type_name, NULL, VAR_DOMAIN, NULL).symbol;
|
||||
if (sym != nullptr)
|
||||
{
|
||||
struct type *type = SYMBOL_TYPE (sym);
|
||||
struct type *type = sym->type ();
|
||||
if (type != nullptr && type->code () == TYPE_CODE_BOOL)
|
||||
return type;
|
||||
}
|
||||
@ -1000,7 +1000,7 @@ language_arch_info::type_and_symbol::alloc_type_symbol
|
||||
symbol->owner.arch = gdbarch;
|
||||
symbol->set_is_objfile_owned (0);
|
||||
symbol->set_section_index (0);
|
||||
SYMBOL_TYPE (symbol) = type;
|
||||
symbol->set_type (type);
|
||||
symbol->set_domain (VAR_DOMAIN);
|
||||
symbol->set_aclass_index (LOC_TYPEDEF);
|
||||
return symbol;
|
||||
|
Reference in New Issue
Block a user