mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 19:46:09 +08:00
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
This commit is contained in:
@ -62,7 +62,7 @@ convert_one_symbol (compile_c_instance *context,
|
||||
|
||||
context->error_symbol_once (sym.symbol);
|
||||
|
||||
if (SYMBOL_CLASS (sym.symbol) == LOC_LABEL)
|
||||
if (sym.symbol->aclass () == LOC_LABEL)
|
||||
sym_type = 0;
|
||||
else
|
||||
sym_type = context->convert_type (SYMBOL_TYPE (sym.symbol));
|
||||
@ -80,7 +80,7 @@ convert_one_symbol (compile_c_instance *context,
|
||||
CORE_ADDR addr = 0;
|
||||
gdb::unique_xmalloc_ptr<char> symbol_name;
|
||||
|
||||
switch (SYMBOL_CLASS (sym.symbol))
|
||||
switch (sym.symbol->aclass ())
|
||||
{
|
||||
case LOC_TYPEDEF:
|
||||
kind = GCC_C_SYMBOL_TYPEDEF;
|
||||
@ -398,7 +398,7 @@ gcc_symbol_address (void *datum, struct gcc_c_context *gcc_context,
|
||||
|
||||
/* We only need global functions here. */
|
||||
sym = lookup_symbol (identifier, NULL, VAR_DOMAIN, NULL).symbol;
|
||||
if (sym != NULL && SYMBOL_CLASS (sym) == LOC_BLOCK)
|
||||
if (sym != NULL && sym->aclass () == LOC_BLOCK)
|
||||
{
|
||||
if (compile_debug)
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
@ -577,7 +577,7 @@ generate_c_for_for_one_variable (compile_instance *compiler,
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (SYMBOL_CLASS (sym))
|
||||
switch (sym->aclass ())
|
||||
{
|
||||
case LOC_REGISTER:
|
||||
case LOC_ARG:
|
||||
|
@ -53,7 +53,7 @@ convert_one_symbol (compile_cplus_instance *instance,
|
||||
|
||||
instance->error_symbol_once (sym.symbol);
|
||||
|
||||
if (SYMBOL_CLASS (sym.symbol) == LOC_LABEL)
|
||||
if (sym.symbol->aclass () == LOC_LABEL)
|
||||
sym_type = 0;
|
||||
else
|
||||
sym_type = instance->convert_type (SYMBOL_TYPE (sym.symbol));
|
||||
@ -70,7 +70,7 @@ convert_one_symbol (compile_cplus_instance *instance,
|
||||
std::string name;
|
||||
gdb::unique_xmalloc_ptr<char> symbol_name;
|
||||
|
||||
switch (SYMBOL_CLASS (sym.symbol))
|
||||
switch (sym.symbol->aclass ())
|
||||
{
|
||||
case LOC_TYPEDEF:
|
||||
if (SYMBOL_TYPE (sym.symbol)->code () == TYPE_CODE_TYPEDEF)
|
||||
@ -435,7 +435,7 @@ gcc_cplus_symbol_address (void *datum, struct gcc_cp_context *gcc_context,
|
||||
struct symbol *sym
|
||||
= lookup_symbol (identifier, nullptr, VAR_DOMAIN, nullptr).symbol;
|
||||
|
||||
if (sym != nullptr && SYMBOL_CLASS (sym) == LOC_BLOCK)
|
||||
if (sym != nullptr && sym->aclass () == LOC_BLOCK)
|
||||
{
|
||||
if (compile_debug)
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
|
Reference in New Issue
Block a user