Re: adjust watchpoint testing

Eli Zaretskii
2006-06-13T17:30:53Z

> Date: Tue, 13 Jun 2006 14:43:13 +0800 (CST)
> From: Wu Zhou <woodzltc@cn.ibm.com>
> cc: gdb-patches@sourceware.org
>
> Do you mean to hard-wire the number of the hw watchpoint the underlying target
> support into these base board files, or just set the number to 1?
>
> I guess that we might need to work out a way to detect the number
> automatically. Any thought?

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.