aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-03-29 16:14:36 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-07 13:05:22 -0400
commit3c86fae3d99bf7b5360b810cc5b19522430ce39d (patch)
tree0e7ee506318e69330af2d7655826f7bf124001e0 /gdb/mi
parent44281e6c08cae11d4e116d87ea34ad391d58ae91 (diff)
downloadgdb-3c86fae3d99bf7b5360b810cc5b19522430ce39d.zip
gdb-3c86fae3d99bf7b5360b810cc5b19522430ce39d.tar.gz
gdb-3c86fae3d99bf7b5360b810cc5b19522430ce39d.tar.bz2
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
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-symbol-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-symbol-cmds.c b/gdb/mi/mi-symbol-cmds.c
index 1b08854..5d6d341 100644
--- a/gdb/mi/mi-symbol-cmds.c
+++ b/gdb/mi/mi-symbol-cmds.c
@@ -50,7 +50,7 @@ mi_cmd_symbol_list_lines (const char *command, char **argv, int argc)
already sorted by increasing values in the symbol table, so no
need to perform any other sorting. */
- gdbarch = s->objfile ()->arch ();
+ gdbarch = s->compunit ()->objfile ()->arch ();
ui_out_emit_list list_emitter (uiout, "lines");
if (s->linetable () != NULL && s->linetable ()->nitems > 0)