From 692590c19f459c379c6e13f83448ad5d11ebf1ed Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 28 Mar 2000 22:30:19 +0000 Subject: 2000-03-28 Peter Schauer breakpoint.c, breakpoint.h (remove_hw_watchpoints): New function. infrun.c (resume): Remove hardware watchpoints before stepping when CANNOT_STEP_HW_WATCHPOINTS is nonzero. --- gdb/breakpoint.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gdb/breakpoint.c') 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; { -- cgit v1.1