diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-03-29 16:14:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-07 13:05:22 -0400 |
commit | 3c86fae3d99bf7b5360b810cc5b19522430ce39d (patch) | |
tree | 0e7ee506318e69330af2d7655826f7bf124001e0 /gdb/symmisc.c | |
parent | 44281e6c08cae11d4e116d87ea34ad391d58ae91 (diff) | |
download | gdb-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/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 1843eb8..1779816 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -131,7 +131,7 @@ dump_objfile (struct objfile *objfile) gdb_printf ("%s at %s", symtab_to_filename_for_display (symtab), host_address_to_string (symtab)); - if (symtab->objfile () != objfile) + if (symtab->compunit ()->objfile () != objfile) gdb_printf (", NOT ON CHAIN!"); gdb_printf ("\n"); } @@ -234,7 +234,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile) static void dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile) { - struct objfile *objfile = symtab->objfile (); + struct objfile *objfile = symtab->compunit ()->objfile (); struct gdbarch *gdbarch = objfile->arch (); int i; struct mdict_iterator miter; |