]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/symtab: pass program space to lookup_symtab and iterate_over_symtabs
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Aug 2024 17:46:06 +0000 (13:46 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 27 Sep 2024 18:58:57 +0000 (14:58 -0400)
commitbb3e9b6521a78b353850190283d26dcd0f21089b
tree156249cdf20cda7463f2be944764e4bb15a88f00
parentdfa9ee01a4e595033567119e48f54a56ccf97dbd
gdb/symtab: pass program space to lookup_symtab and iterate_over_symtabs

Make the current program space references bubble up.

In collect_symtabs_from_filename, remove the calls to
set_current_program_space and just pass the relevant pspaces.
This appears safe to do, because nothing in the `collector` callback
cares about the current pspace.

Change-Id: I00a7ed484bfbe5264f01a6abf0d33b51de373cbb
Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/ada-exp.y
gdb/c-exp.y
gdb/linespec.c
gdb/m2-exp.y
gdb/mi/mi-cmd-disas.c
gdb/mi/mi-symbol-cmds.c
gdb/p-exp.y
gdb/symtab.c
gdb/symtab.h