This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Watchpoint enhancement for S/390
- From: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 18 Feb 2004 17:44:07 +0100 (CET)
- Subject: [PATCH] Watchpoint enhancement for S/390
Hello,
this patch improves hardware watchpoint handling on s390
a bit: by default, gdb only allows hw watchpoints on regions
of size less than the word size; on s390 we have no such
restriction, so we can allow arbitrary regions.
Tested on s390-ibm-linux and s390x-ibm-linux.
(I hope this is small enough so that no specific copyright
assignment is required ...)
Bye,
Ulrich
ChangeLog:
* config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define.
diff -c -p -r gdb-head-new/gdb/config/s390/nm-linux.h gdb-head/gdb/config/s390/nm-linux.h
*** gdb-head-new/gdb/config/s390/nm-linux.h Sun Jan 18 17:50:21 2004
--- gdb-head/gdb/config/s390/nm-linux.h Mon Jan 26 15:59:20 2004
*************** extern int s390_remove_watchpoint (CORE_
*** 47,52 ****
--- 47,53 ----
#define TARGET_HAS_HARDWARE_WATCHPOINTS
#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
+ #define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr, len) 1
#define HAVE_CONTINUABLE_WATCHPOINT 1
#define STOPPED_BY_WATCHPOINT(w) \
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de