gdb: remove SYMTAB_OBJFILE macro

Remove the macro, replace with an equivalent method.

Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb
This commit is contained in:
Simon Marchi 2021-11-20 21:54:11 -05:00
parent 012cfab919
commit 652099717d
16 changed files with 45 additions and 39 deletions

View file

@ -1559,7 +1559,7 @@ info_line_command (const char *arg, int from_tty)
else if (sal.line > 0
&& find_line_pc_range (sal, &start_pc, &end_pc))
{
struct gdbarch *gdbarch = SYMTAB_OBJFILE (sal.symtab)->arch ();
struct gdbarch *gdbarch = sal.symtab->objfile ()->arch ();
if (start_pc == end_pc)
{