aboutsummaryrefslogtreecommitdiff
path: root/gdb/z80-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/z80-tdep.c')
-rw-r--r--gdb/z80-tdep.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/z80-tdep.c b/gdb/z80-tdep.c
index 6eea634..c442b60 100644
--- a/gdb/z80-tdep.c
+++ b/gdb/z80-tdep.c
@@ -356,7 +356,8 @@ z80_scan_prologue (struct gdbarch *gdbarch, CORE_ADDR pc_beg, CORE_ADDR pc_end,
/* stage2: check for FP saving scheme */
if (prologue[pos] == 0xcd) /* call nn */
{
- bound_minimal_symbol msymbol = lookup_minimal_symbol ("__sdcc_enter_ix");
+ bound_minimal_symbol msymbol
+ = lookup_minimal_symbol (current_program_space, "__sdcc_enter_ix");
if (msymbol.minsym)
{
value = msymbol.value_address ();
@@ -621,7 +622,7 @@ z80_frame_unwind_cache (const frame_info_ptr &this_frame,
for (i = sizeof(names)/sizeof(*names)-1; i >= 0; --i)
{
bound_minimal_symbol msymbol
- = lookup_minimal_symbol (names[i]);
+ = lookup_minimal_symbol (current_program_space, names[i]);
if (!msymbol.minsym)
continue;
if (addr == msymbol.value_address ())
@@ -718,7 +719,8 @@ z80_breakpoint_kind_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr)
static int addr = -1;
if (addr == -1)
{
- bound_minimal_symbol bh = lookup_minimal_symbol ("_break_handler");
+ bound_minimal_symbol bh
+ = lookup_minimal_symbol (current_program_space, "_break_handler");
if (bh.minsym)
addr = bh.value_address ();
else
@@ -898,7 +900,7 @@ z80_read_overlay_region_table ()
z80_free_overlay_region_table ();
bound_minimal_symbol novly_regions_msym
- = lookup_minimal_symbol ("_novly_regions");
+ = lookup_minimal_symbol (current_program_space, "_novly_regions");
if (! novly_regions_msym.minsym)
{
error (_("Error reading inferior's overlay table: "
@@ -908,7 +910,7 @@ z80_read_overlay_region_table ()
}
bound_minimal_symbol ovly_region_table_msym
- = lookup_minimal_symbol ("_ovly_region_table");
+ = lookup_minimal_symbol (current_program_space, "_ovly_region_table");
if (! ovly_region_table_msym.minsym)
{
error (_("Error reading inferior's overlay table: couldn't find "