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/cli | |
parent | 4113c737bda3aa1ac6ae1c418288a11e810c995e (diff) | |
download | gdb-fbee6a57b23782212e1b2ebf46203da926d3dfb3.zip gdb-fbee6a57b23782212e1b2ebf46203da926d3dfb3.tar.gz 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/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 3af794c..4500091 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1295,7 +1295,7 @@ list_command (const char *arg, int from_tty) { /* The inferior is not running, so reset the current source location to the default (usually the main function). */ - clear_current_source_symtab_and_line (); + clear_current_source_symtab_and_line (current_program_space); try { set_default_source_symtab_and_line (); |