mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 13:57:12 +08:00
gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
This commit is contained in:
@ -323,7 +323,7 @@ select_source_symtab (struct symtab *s)
|
||||
/* Make the default place to list be the function `main'
|
||||
if one exists. */
|
||||
block_symbol bsym = lookup_symbol (main_name (), 0, VAR_DOMAIN, 0);
|
||||
if (bsym.symbol != nullptr && SYMBOL_CLASS (bsym.symbol) == LOC_BLOCK)
|
||||
if (bsym.symbol != nullptr && bsym.symbol->aclass () == LOC_BLOCK)
|
||||
{
|
||||
symtab_and_line sal = find_function_start_sal (bsym.symbol, true);
|
||||
if (sal.symtab == NULL)
|
||||
|
Reference in New Issue
Block a user