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/annotate.c | |
parent | 44281e6c08cae11d4e116d87ea34ad391d58ae91 (diff) | |
download | binutils-3c86fae3d99bf7b5360b810cc5b19522430ce39d.zip binutils-3c86fae3d99bf7b5360b810cc5b19522430ce39d.tar.gz binutils-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/annotate.c')
-rw-r--r-- | gdb/annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/annotate.c b/gdb/annotate.c index c16eb46..6ae3145 100644 --- a/gdb/annotate.c +++ b/gdb/annotate.c @@ -448,7 +448,7 @@ annotate_source_line (struct symtab *s, int line, int mid_statement, return false; annotate_source (s->fullname, line, (int) (*offsets)[line - 1], - mid_statement, s->objfile ()->arch (), + mid_statement, s->compunit ()->objfile ()->arch (), pc); /* Update the current symtab and line. */ |