This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: adjust watchpoint testing
> Date: Wed, 14 Jun 2006 09:21:52 +0800 (CST)
> From: Wu Zhou <woodzltc@cn.ibm.com>
> cc: nathan@codesourcery.com, gdb-patches@sourceware.org
>
> > I don't think there's any practical way to detect the number of
> > supported watchpoints. It depends on the particulars of the watched
> > regions, and different targets have different peculiarities. For
> > example, x86 can set an unlimited number of watchpoints provided that
> > they watch the same address and length.
>
> What about adding a gdbarch specific member function to do this?
What would that function do? I thought I explained that the question
``how many watchpoints can the target give us'' has no meaningful
answer, unless you also supply the specific mix of addresses and sizes
of the regions you wish to watch.