aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-break.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-03-11 12:18:39 +0000
committerAndrew Cagney <cagney@redhat.com>1998-03-11 12:18:39 +0000
commiteefc25e592ff4681d6a9806e43cd2fc432721ccb (patch)
tree76b215564db81c86cb972a7ef5b521d967635acc /sim/common/sim-break.c
parent10572b6a43dcf96c17a10d515b113840dd0b1f7f (diff)
downloadgdb-eefc25e592ff4681d6a9806e43cd2fc432721ccb.zip
gdb-eefc25e592ff4681d6a9806e43cd2fc432721ccb.tar.gz
gdb-eefc25e592ff4681d6a9806e43cd2fc432721ccb.tar.bz2
Allow more than just read, write and exec memory spaces in the core
module.
Diffstat (limited to 'sim/common/sim-break.c')
-rw-r--r--sim/common/sim-break.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sim/common/sim-break.c b/sim/common/sim-break.c
index d40d35b..07d1f95 100644
--- a/sim/common/sim-break.c
+++ b/sim/common/sim-break.c
@@ -52,7 +52,8 @@ static SIM_RC resume_handler PARAMS ((SIM_DESC sd));
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)
@@ -62,9 +63,9 @@ 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;
}
@@ -79,7 +80,7 @@ remove_breakpoint (sd, bp)
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;
}