From 3c86fae3d99bf7b5360b810cc5b19522430ce39d Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 29 Mar 2022 16:14:36 -0400 Subject: 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 --- gdb/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/annotate.c') 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. */ -- cgit v1.1