forked from Imagelibrary/binutils-gdb
gdb: add program_space parameter to lookup_minimal_symbol_text
Make the current program space reference bubble up one level. Use a program space from the context whenever that makes sense. Change-Id: Id3b0bf4490178d71a9aecdbf404b9287c22b30f5 Reviewed-by: Keith Seitz <keiths@redhat.com> Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
committed by
Simon Marchi
parent
2e7c4d0fe5
commit
cb9f919f0f
@@ -3571,7 +3571,8 @@ create_overlay_event_breakpoint (void)
|
||||
if (bp_objfile_data->overlay_msym.minsym == NULL)
|
||||
{
|
||||
bound_minimal_symbol m
|
||||
= lookup_minimal_symbol_text (func_name, objfile);
|
||||
= lookup_minimal_symbol_text (current_program_space, func_name,
|
||||
objfile);
|
||||
if (m.minsym == NULL)
|
||||
{
|
||||
/* Avoid future lookups in this objfile. */
|
||||
@@ -3675,7 +3676,8 @@ create_longjmp_master_breakpoint_names (objfile *objfile)
|
||||
if (bp_objfile_data->longjmp_msym[i].minsym == NULL)
|
||||
{
|
||||
bound_minimal_symbol m
|
||||
= lookup_minimal_symbol_text (func_name, objfile);
|
||||
= lookup_minimal_symbol_text (objfile->pspace (), func_name,
|
||||
objfile);
|
||||
if (m.minsym == NULL)
|
||||
{
|
||||
/* Prevent future lookups in this objfile. */
|
||||
@@ -3845,7 +3847,7 @@ create_exception_master_breakpoint_hook (objfile *objfile)
|
||||
if (bp_objfile_data->exception_msym.minsym == NULL)
|
||||
{
|
||||
bound_minimal_symbol debug_hook
|
||||
= lookup_minimal_symbol_text (func_name, objfile);
|
||||
= lookup_minimal_symbol_text (objfile->pspace (), func_name, objfile);
|
||||
if (debug_hook.minsym == NULL)
|
||||
{
|
||||
bp_objfile_data->exception_msym.minsym = &msym_not_found;
|
||||
|
||||
Reference in New Issue
Block a user