forked from Imagelibrary/binutils-gdb
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
@@ -195,7 +195,8 @@ ft32_analyze_prologue (CORE_ADDR start_addr, CORE_ADDR end_addr,
|
||||
|
||||
snprintf (prolog_symbol, sizeof (prolog_symbol), "__prolog_$r%02d",
|
||||
regnum);
|
||||
bound_minimal_symbol msymbol = lookup_minimal_symbol (prolog_symbol);
|
||||
bound_minimal_symbol msymbol
|
||||
= lookup_minimal_symbol (current_program_space, prolog_symbol);
|
||||
if (msymbol.minsym)
|
||||
prologs[regnum] = msymbol.value_address ();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user