mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gdb: remove SYMTAB_OBJFILE macro
Remove the macro, replace with an equivalent method. Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb
This commit is contained in:
@@ -1003,7 +1003,7 @@ edit_command (const char *arg, int from_tty)
|
||||
error (_("No source file for address %s."),
|
||||
paddress (get_current_arch (), sal.pc));
|
||||
|
||||
gdbarch = SYMTAB_OBJFILE (sal.symtab)->arch ();
|
||||
gdbarch = sal.symtab->objfile ()->arch ();
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
printf_filtered ("%s is in %s (%s:%d).\n",
|
||||
@@ -1342,7 +1342,7 @@ list_command (const char *arg, int from_tty)
|
||||
error (_("No source file for address %s."),
|
||||
paddress (get_current_arch (), sal.pc));
|
||||
|
||||
gdbarch = SYMTAB_OBJFILE (sal.symtab)->arch ();
|
||||
gdbarch = sal.symtab->objfile ()->arch ();
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
printf_filtered ("%s is in %s (%s:%d).\n",
|
||||
|
||||
Reference in New Issue
Block a user