From fc5abaaec148bdcc57222b797b0746e93f88ce81 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 7 Oct 2009 19:35:06 +0000 Subject: [PATCH] gdb/ * i386-nat.c (i386_stopped_by_hwbp): Remove. --- gdb/ChangeLog | 6 +++++- gdb/i386-nat.c | 21 --------------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 841d2adf002..b807c8581f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,8 @@ -2009-10-09 Joel Brobecker +2009-10-07 Jan Kratochvil + + * i386-nat.c (i386_stopped_by_hwbp): Remove. + +2009-10-07 Joel Brobecker * NEWS: Update following the GDB 7.0 release. diff --git a/gdb/i386-nat.c b/gdb/i386-nat.c index 325b4df6ca1..eb16687ddb2 100644 --- a/gdb/i386-nat.c +++ b/gdb/i386-nat.c @@ -581,27 +581,6 @@ i386_stopped_by_watchpoint (void) return i386_stopped_data_address (¤t_target, &addr); } -/* Return non-zero if the inferior has some break/watchpoint that - triggered. */ - -static int -i386_stopped_by_hwbp (void) -{ - int i; - - dr_status_mirror = i386_dr_low.get_status (); - if (maint_show_dr) - i386_show_dr ("stopped_by_hwbp", 0, 0, hw_execute); - - ALL_DEBUG_REGISTERS(i) - { - if (I386_DR_WATCH_HIT (i)) - return 1; - } - - return 0; -} - /* Insert a hardware-assisted breakpoint at BP_TGT->placed_address. Return 0 on success, EBUSY on failure. */ static int -- 2.30.2