gdb: remove SYMBOL_CLASS macro, add getter
Change-Id: I83211d5a47efc0564386e5b5ea4a29c00b1fd46a
This commit is contained in:
parent
d1eebf9a6f
commit
66d7f48f80
42 changed files with 147 additions and 144 deletions
|
@ -665,7 +665,7 @@ bool
|
|||
best_symbol (struct symbol *a, const domain_enum domain)
|
||||
{
|
||||
return (SYMBOL_DOMAIN (a) == domain
|
||||
&& SYMBOL_CLASS (a) != LOC_UNRESOLVED);
|
||||
&& a->aclass () != LOC_UNRESOLVED);
|
||||
}
|
||||
|
||||
/* See block.h. */
|
||||
|
@ -685,11 +685,10 @@ better_symbol (struct symbol *a, struct symbol *b, const domain_enum domain)
|
|||
&& SYMBOL_DOMAIN (a) != domain)
|
||||
return b;
|
||||
|
||||
if (SYMBOL_CLASS (a) != LOC_UNRESOLVED
|
||||
&& SYMBOL_CLASS (b) == LOC_UNRESOLVED)
|
||||
if (a->aclass () != LOC_UNRESOLVED && b->aclass () == LOC_UNRESOLVED)
|
||||
return a;
|
||||
if (SYMBOL_CLASS (b) != LOC_UNRESOLVED
|
||||
&& SYMBOL_CLASS (a) == LOC_UNRESOLVED)
|
||||
|
||||
if (b->aclass () != LOC_UNRESOLVED && a->aclass () == LOC_UNRESOLVED)
|
||||
return b;
|
||||
|
||||
return a;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue