aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-17 20:00:59 -0600
committerTom Tromey <tom@tromey.com>2022-04-20 09:28:40 -0600
commit4206d69e96ac401cf2975f37bf4e4d3a3c838313 (patch)
tree6301edfeea773f593e1949a30831c442bf87b90f /gdb/source.c
parentbcd6845e2b66adb58d36eb1d9b8fbf71900b517d (diff)
downloadgdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.zip
gdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.tar.gz
gdb-4206d69e96ac401cf2975f37bf4e4d3a3c838313.tar.bz2
Replace symbol_symtab with symbol::symtab
This turns symbol_symtab into a method on symbol. It also replaces symbol_set_symtab with a method.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 9d9ff4b..8691113 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -329,7 +329,7 @@ select_source_symtab (struct symtab *s)
if (sal.symtab == NULL)
/* We couldn't find the location of `main', possibly due to missing
line number info, fall back to line 1 in the corresponding file. */
- loc->set (symbol_symtab (bsym.symbol), 1);
+ loc->set (bsym.symbol->symtab (), 1);
else
loc->set (sal.symtab, std::max (sal.line - (lines_to_list - 1), 1));
return;