aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-03-28 22:30:19 +0000
committerMichael Snyder <msnyder@vmware.com>2000-03-28 22:30:19 +0000
commit692590c19f459c379c6e13f83448ad5d11ebf1ed (patch)
tree30045b6da58f8c7811603dbfae1be9e0e5bd2302 /gdb/breakpoint.c
parente529db18ad8e3f2d8060c13a7e83a52da28d0ee5 (diff)
downloadgdb-692590c19f459c379c6e13f83448ad5d11ebf1ed.zip
gdb-692590c19f459c379c6e13f83448ad5d11ebf1ed.tar.gz
gdb-692590c19f459c379c6e13f83448ad5d11ebf1ed.tar.bz2
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 c5ebf64..768a67f 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;
{