mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
gdb: add program_space parameter to lookup_minimal_symbol
>From what I can see, lookup_minimal_symbol doesn't have any dependencies on the global current state other than the single reference to current_program_space. Add a program_space parameter and make that current_program_space reference bubble up one level. Change-Id: I759415e2f9c74c9627a2fe05bd44eb4147eee6fe Reviewed-by: Keith Seitz <keiths@redhat.com> Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
committed by
Simon Marchi
parent
8d2f4b7c31
commit
4144d36a68
@@ -2584,7 +2584,8 @@ inside_main_func (const frame_info_ptr &this_frame)
|
||||
CORE_ADDR sym_addr = 0;
|
||||
const char *name = main_name ();
|
||||
bound_minimal_symbol msymbol
|
||||
= lookup_minimal_symbol (name, current_program_space->symfile_object_file);
|
||||
= lookup_minimal_symbol (current_program_space, name,
|
||||
current_program_space->symfile_object_file);
|
||||
|
||||
if (msymbol.minsym != nullptr)
|
||||
sym_addr = msymbol.value_address ();
|
||||
|
||||
Reference in New Issue
Block a user