forked from Imagelibrary/binutils-gdb
gdb: remove SYMBOL_LINE macro
Add a getter and a setter for a symbol's line. Remove the corresponding macro and adjust all callers. Change-Id: I229f2b8fcf938c07975f641361313a8761fad9a5
This commit is contained in:
@@ -4451,7 +4451,7 @@ symbol_to_sal (struct symtab_and_line *result,
|
||||
*result = {};
|
||||
result->symtab = symbol_symtab (sym);
|
||||
result->symbol = sym;
|
||||
result->line = SYMBOL_LINE (sym);
|
||||
result->line = sym->line ();
|
||||
result->pc = SYMBOL_VALUE_ADDRESS (sym);
|
||||
result->pspace = result->symtab->pspace ();
|
||||
result->explicit_pc = 1;
|
||||
@@ -4461,13 +4461,13 @@ symbol_to_sal (struct symtab_and_line *result,
|
||||
{
|
||||
/* Nothing. */
|
||||
}
|
||||
else if (SYMBOL_LINE (sym) != 0)
|
||||
else if (sym->line () != 0)
|
||||
{
|
||||
/* We know its line number. */
|
||||
*result = {};
|
||||
result->symtab = symbol_symtab (sym);
|
||||
result->symbol = sym;
|
||||
result->line = SYMBOL_LINE (sym);
|
||||
result->line = sym->line ();
|
||||
result->pc = SYMBOL_VALUE_ADDRESS (sym);
|
||||
result->pspace = result->symtab->pspace ();
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user