This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 3/4] Fix hw watchpoints: remove dead code [update]
On Wed, 07 Oct 2009 20:51:10 +0200, Joel Brobecker wrote:
> > 2009-08-17 Jan Kratochvil <jan.kratochvil@redhat.com>
> >
> > * i386-nat.c (i386_stopped_by_hwbp): Remove.
>
> Thanks for taking care of that.
This part has been checked-in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2009-10/msg00053.html
--- src/gdb/ChangeLog 2009/10/07 18:27:22 1.10940
+++ src/gdb/ChangeLog 2009/10/07 19:35:05 1.10941
@@ -1,4 +1,8 @@
-2009-10-09 Joel Brobecker <brobecker@adacore.com>
+2009-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * i386-nat.c (i386_stopped_by_hwbp): Remove.
+
+2009-10-07 Joel Brobecker <brobecker@adacore.com>
* NEWS: Update following the GDB 7.0 release.
--- src/gdb/i386-nat.c 2009/09/26 12:08:30 1.25
+++ src/gdb/i386-nat.c 2009/10/07 19:35:06 1.26
@@ -581,27 +581,6 @@
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