Why no hwatch command in gdb ?

Joel Brobecker brobecker@adacore.com
Thu Mar 10 11:34:00 GMT 2011


> If you expect GDB to know up front that they are too many, this is
> hard to impossible with today's architecture, because only when the
> watchpoints are inserted by the target, it is possible to know whether
> there are enough resources for that.
> 
> (At least that's how things were back when I hacked x86 watchpoints.)

I've always been confused by the way watchpoints are supported in
GDB, depending on the target platform, etc.  I think there was
a recent change that made us insert the watchpoint immediately,
as a way to check whether we have resources or not.  I don't
know how much this helps in practice.

-- 
Joel



More information about the Gdb mailing list