This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] GDB patches for hw watchpoints - revised
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: woodzltc at cn dot ibm dot com (Wu Zhou)
- Cc: gdb-patches at sources dot redhat dot com, drow at false dot org, eliz at gnu dot org, mark dot kettenis at xs4all dot nl
- Date: Tue, 6 Dec 2005 19:23:26 +0100 (CET)
- Subject: Re: [RFC] GDB patches for hw watchpoints - revised
Wu Zhou wrote:
> 4. Mark said that we can't add anything more to nm.h. The revised patch
> changed that and add most of them to target vector. But we had to find a
> way to set TARGET_REGION_OK_FOR_HW_WATCHPOINT for ppc64 arch. I am now
> setting that in nm-ppc64-linux.h. Is that okay? Maybe we need to set
> TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT instead?
You should be setting the target vector's to_region_size_ok_for_hw_watchpoint
function instead. See s390-nat.c where I now implement full watchpoint
support without any nm.h macro defined ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com