From 6d40175db077d15dfc741391bd9ea6055c292b91 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 1 Jun 1994 18:26:16 +0000 Subject: Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com) Hardware watchpoints for Linux, from Rick Sladkey (jrs@world.std.com). * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add new hardware breakpoint recovery method. * i386v-nat.c (i386_insert_watchpoint, i386_insert_nonaligned_watchpoint, i386_remove_watchpoint, i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]: New functions to support the 386 hardware debugging registers. * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT, target_insert_watchpoint, target_remove_watchpoint): Define these macros to use the hardware debugging functions in i386v-nat.c. --- gdb/infrun.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 4c39237..08e3bfd 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -680,6 +680,11 @@ switch_thread: } #endif +#ifdef HAVE_CONTINUABLE_WATCHPOINT + /* It may be possible to simply continue after a watchpoint. */ + STOPPED_BY_WATCHPOINT (w); +#endif + stop_frame_address = FRAME_FP (get_current_frame ()); stop_sp = read_sp (); stop_func_start = 0; -- cgit v1.1