forked from Imagelibrary/binutils-gdb
gdb: remove symtab::objfile
Same idea as previous patch, but for symtab::objfile. I find it clearer without this wrapper, as it shows that the objfile is common to all symtabs of a given compunit. Otherwise, you could think that each symtab (of a given compunit) can have a specific objfile. Change-Id: Ifc0dbc7ec31a06eefa2787c921196949d5a6fcc6
This commit is contained in:
@@ -1007,7 +1007,7 @@ edit_command (const char *arg, int from_tty)
|
||||
error (_("No source file for address %s."),
|
||||
paddress (get_current_arch (), sal.pc));
|
||||
|
||||
gdbarch = sal.symtab->objfile ()->arch ();
|
||||
gdbarch = sal.symtab->compunit ()->objfile ()->arch ();
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
gdb_printf ("%s is in %s (%s:%d).\n",
|
||||
@@ -1346,7 +1346,7 @@ list_command (const char *arg, int from_tty)
|
||||
error (_("No source file for address %s."),
|
||||
paddress (get_current_arch (), sal.pc));
|
||||
|
||||
gdbarch = sal.symtab->objfile ()->arch ();
|
||||
gdbarch = sal.symtab->compunit ()->objfile ()->arch ();
|
||||
sym = find_pc_function (sal.pc);
|
||||
if (sym)
|
||||
gdb_printf ("%s is in %s (%s:%d).\n",
|
||||
|
||||
Reference in New Issue
Block a user