aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index d2d5497..f1aaa64 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1600,7 +1600,8 @@ info_address_command (const char *exp, int from_tty)
return;
}
- bound_minimal_symbol msymbol = lookup_minimal_symbol (exp);
+ bound_minimal_symbol msymbol
+ = lookup_minimal_symbol (current_program_space, exp);
if (msymbol.minsym != NULL)
{
@@ -1753,7 +1754,8 @@ info_address_command (const char *exp, int from_tty)
case LOC_UNRESOLVED:
{
bound_minimal_symbol msym
- = lookup_minimal_symbol (sym->linkage_name ());
+ = lookup_minimal_symbol (current_program_space,
+ sym->linkage_name ());
if (msym.minsym == NULL)
gdb_printf ("unresolved");
else