From: Ulrich Weigand <weigand@i1.informatik.uni-erlangen.de>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Watchpoint enhancement for S/390
Date: Wed, 18 Feb 2004 16:44:00 -0000 [thread overview]
Message-ID: <200402181644.RAA19455@faui1d.informatik.uni-erlangen.de> (raw)
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
next reply other threads:[~2004-02-18 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-18 16:44 Ulrich Weigand [this message]
2004-02-18 17:20 ` Mark Kettenis
2004-02-18 18:09 ` Ulrich Weigand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200402181644.RAA19455@faui1d.informatik.uni-erlangen.de \
--to=weigand@i1.informatik.uni-erlangen.de \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox