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:
Simon Marchi
2022-01-27 22:39:50 -05:00
parent 5f9c5a63ce
commit 5d0027b9ba
13 changed files with 34 additions and 25 deletions

View File

@@ -58,7 +58,7 @@ convert_one_symbol (compile_c_instance *context,
{
gcc_type sym_type;
const char *filename = symbol_symtab (sym.symbol)->filename;
unsigned short line = SYMBOL_LINE (sym.symbol);
unsigned short line = sym.symbol->line ();
context->error_symbol_once (sym.symbol);