diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-05-16 16:37:06 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 14:34:12 -0400 |
commit | 9c067e28448f0314d1b0440945e16382a226fd7b (patch) | |
tree | 5260c8605c6335170ce5a35da2e7f416277017ae /gdb/infcmd.c | |
parent | cc7541ce5e1c317c7b185b005f0c048c997b2b58 (diff) | |
download | fsf-binutils-gdb-9c067e28448f0314d1b0440945e16382a226fd7b.zip fsf-binutils-gdb-9c067e28448f0314d1b0440945e16382a226fd7b.tar.gz fsf-binutils-gdb-9c067e28448f0314d1b0440945e16382a226fd7b.tar.bz2 |
gdb: pass program space to have_{full,partial}_symbols
Make the current program space reference bubble up one level.
Change-Id: I19c4fc2ca955f9c828ef426a077b43983865697b
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 4ed55f1..4ce11b5 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -519,7 +519,7 @@ start_command (const char *args, int from_tty) /* Some languages such as Ada need to search inside the program minimal symbols for the location where to put the temporary breakpoint before starting. */ - if (!have_minimal_symbols ()) + if (!have_minimal_symbols (current_program_space)) error (_("No symbol table loaded. Use the \"file\" command.")); /* Run the program until reaching the main procedure... */ |