mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
SYMTAB_OBJFILE: New macro.
gdb/ChangeLog: * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member symtab.objfile updated to use it.
This commit is contained in:
@@ -818,7 +818,7 @@ edit_command (char *arg, int from_tty)
|
||||
error (_("No source file for address %s."),
|
||||
paddress (get_current_arch (), sal.pc));
|
||||
|
||||
gdbarch = get_objfile_arch (sal.symtab->objfile);
|
||||
gdbarch = get_objfile_arch (SYMTAB_OBJFILE (sal.symtab));
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
printf_filtered ("%s is in %s (%s:%d).\n",
|
||||
@@ -1003,7 +1003,7 @@ list_command (char *arg, int from_tty)
|
||||
error (_("No source file for address %s."),
|
||||
paddress (get_current_arch (), sal.pc));
|
||||
|
||||
gdbarch = get_objfile_arch (sal.symtab->objfile);
|
||||
gdbarch = get_objfile_arch (SYMTAB_OBJFILE (sal.symtab));
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
printf_filtered ("%s is in %s (%s:%d).\n",
|
||||
|
||||
Reference in New Issue
Block a user