diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-05-16 16:21:23 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 14:34:12 -0400 |
commit | fbee6a57b23782212e1b2ebf46203da926d3dfb3 (patch) | |
tree | 2436b1cddded3df474df0a5db635f6ffa39d0c55 /gdb/source.h | |
parent | 4113c737bda3aa1ac6ae1c418288a11e810c995e (diff) | |
download | fsf-binutils-gdb-fbee6a57b23782212e1b2ebf46203da926d3dfb3.zip fsf-binutils-gdb-fbee6a57b23782212e1b2ebf46203da926d3dfb3.tar.gz fsf-binutils-gdb-fbee6a57b23782212e1b2ebf46203da926d3dfb3.tar.bz2 |
gdb: pass program space to clear_current_source_symtab_and_line
Make the current program space reference bubble up one level.
Change-Id: I692554474d17e4f4708fd8ad662bf6c0bb964726
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb/source.h')
-rw-r--r-- | gdb/source.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/source.h b/gdb/source.h index 144ee48..4eb1793 100644 --- a/gdb/source.h +++ b/gdb/source.h @@ -21,6 +21,7 @@ #include "gdbsupport/scoped_fd.h" +struct program_space; struct symtab; /* See openp function definition for their description. */ @@ -126,7 +127,7 @@ extern symtab_and_line set_current_source_symtab_and_line (const symtab_and_line &sal); /* Reset any information stored about a default file and line to print. */ -extern void clear_current_source_symtab_and_line (void); +extern void clear_current_source_symtab_and_line (program_space *pspace); /* Add a source path substitution rule. */ extern void add_substitute_path_rule (const char *, const char *); |