This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix HW watchpoints on Solaris x86
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 10 Aug 2003 15:55:39 +0200 (CEST)
- Subject: [PATCH] Fix HW watchpoints on Solaris x86
Got this patch from Peter Schauer. Checked in on both mainline and branch.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
* config/i386/nm-i386sol2.h
(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
Index: config/i386/nm-i386sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386sol2.h,v
retrieving revision 1.8
diff -u -p -r1.8 nm-i386sol2.h
--- config/i386/nm-i386sol2.h 24 Feb 2003 21:56:51 -0000 1.8
+++ config/i386/nm-i386sol2.h 10 Aug 2003 13:48:26 -0000
@@ -28,6 +28,7 @@
can support "thousands" of hardware watchpoints, but gives no
method for finding out how many. So just tell GDB 'yes'. */
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(TYPE, CNT, OT) 1
+#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(SIZE) 1
/* When a hardware watchpoint fires off the PC will be left at the
instruction following the one which caused the watchpoint.