aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-03-20 19:52:13 -0600
committerTom Tromey <tom@tromey.com>2023-05-07 13:03:39 -0600
commit62c5d5ec88c5748491e27e1fbd3953f4c872752d (patch)
tree89069aa473c91edde3f61797a6ce765f2df42140 /gdb/source.h
parent7a8de0c33019efd3ea5755044a29544ba7637759 (diff)
downloadfsf-binutils-gdb-62c5d5ec88c5748491e27e1fbd3953f4c872752d.zip
fsf-binutils-gdb-62c5d5ec88c5748491e27e1fbd3953f4c872752d.tar.gz
fsf-binutils-gdb-62c5d5ec88c5748491e27e1fbd3953f4c872752d.tar.bz2
Remove parameter from select_source_symtab
I noticed that select_source_symtab is only ever called with nullptr as an argument, so this patch removes the parameter and associated logic. Reviewed-By: Bruno Larsen <blarsen@redhat.com>
Diffstat (limited to 'gdb/source.h')
-rw-r--r--gdb/source.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/source.h b/gdb/source.h
index d3e612c..8fbc365 100644
--- a/gdb/source.h
+++ b/gdb/source.h
@@ -202,13 +202,11 @@ extern void print_source_lines (struct symtab *s, source_lines_range r,
may be found in a different directory now. */
extern void forget_cached_source_info (void);
-/* Set the source file default for the "list" command to be S.
-
- If S is NULL, and we don't have a default, find one. This
- should only be called when the user actually tries to use the
- default, since we produce an error if we can't find a reasonable
- default. Also, since this can cause symbols to be read, doing it
- before we need to would make things slower than necessary. */
-extern void select_source_symtab (struct symtab *s);
+/* Find a source file default for the "list" command. This should
+ only be called when the user actually tries to use the default,
+ since we produce an error if we can't find a reasonable default.
+ Also, since this can cause symbols to be read, doing it before we
+ need to would make things slower than necessary. */
+extern void select_source_symtab ();
#endif