static SIM_RC suspend_handler PARAMS ((SIM_DESC sd));
-/* Do the actual work of inserting a breakpoint into the instruction stream. */
+/* Do the actual work of inserting a breakpoint into the instruction
+ stream. */
static void
insert_breakpoint (sd, bp)
if (bp->flags & (SIM_BREAK_INSERTED | SIM_BREAK_DISABLED))
return;
- sim_core_read_buffer (sd, NULL, sim_core_write_map, bp->loc_contents,
+ sim_core_read_buffer (sd, NULL, exec_map, bp->loc_contents,
bp->addr, SIM_BREAKPOINT_SIZE);
- sim_core_write_buffer (sd, NULL, sim_core_write_map, sim_breakpoint,
+ sim_core_write_buffer (sd, NULL, exec_map, sim_breakpoint,
bp->addr, SIM_BREAKPOINT_SIZE);
bp->flags |= SIM_BREAK_INSERTED;
}
if (!(bp->flags & SIM_BREAK_INSERTED))
return;
- sim_core_write_buffer (sd, NULL, sim_core_write_map, bp->loc_contents,
+ sim_core_write_buffer (sd, NULL, exec_map, bp->loc_contents,
bp->addr, SIM_BREAKPOINT_SIZE);
bp->flags &= SIM_BREAK_INSERTED;
}