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/tui | |
parent | cc7541ce5e1c317c7b185b005f0c048c997b2b58 (diff) | |
download | gdb-9c067e28448f0314d1b0440945e16382a226fd7b.zip gdb-9c067e28448f0314d1b0440945e16382a226fd7b.tar.gz 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/tui')
-rw-r--r-- | gdb/tui/tui-disasm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index 0727d3a..2f25fed 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -389,7 +389,8 @@ tui_get_begin_asm_address (struct gdbarch **gdbarch_p, CORE_ADDR *addr_p) if (tui_location.addr () == 0) { - if (have_full_symbols () || have_partial_symbols ()) + if (have_full_symbols (current_program_space) + || have_partial_symbols (current_program_space)) { set_default_source_symtab_and_line (); struct symtab_and_line sal = get_current_source_symtab_and_line (); |