summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2000-03-28 22:30:19 +0000
committerMichael Snyder <msnyder@specifix.com>2000-03-28 22:30:19 +0000
commit16878a13c0c1d0a9034b548b0f64d7ff7a1cdeb3 (patch)
treebec3ee20da9a40bd3a74e30592d3323f8fb0c2a2 /gdb/breakpoint.c
parent5679036e207c1d847846f52d251639d48806099a (diff)
downloadgdb-16878a13c0c1d0a9034b548b0f64d7ff7a1cdeb3.tar.gz
2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
breakpoint.c, breakpoint.h (remove_hw_watchpoints): New function. infrun.c (resume): Remove hardware watchpoints before stepping when CANNOT_STEP_HW_WATCHPOINTS is nonzero.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index c5ebf6460a0..768a67f7534 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -1096,6 +1096,27 @@ remove_breakpoints ()
}
int
+remove_hw_watchpoints ()
+{
+ register struct breakpoint *b;
+ int val;
+
+ ALL_BREAKPOINTS (b)
+ {
+ if (b->inserted
+ && (b->type == bp_hardware_watchpoint
+ || b->type == bp_read_watchpoint
+ || b->type == bp_access_watchpoint))
+ {
+ val = remove_breakpoint (b, mark_uninserted);
+ if (val != 0)
+ return val;
+ }
+ }
+ return 0;
+}
+
+int
reattach_breakpoints (pid)
int pid;
{