[RFC] Wrong hw_watchpoint_used_count? (multiple location watchpoints)

Eli Zaretskii eliz@gnu.org
Fri Jan 8 13:00:00 GMT 2010


> Date: Fri, 8 Jan 2010 16:25:55 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org
> 
> I thought that the design would be that GDB would ask the target if
> they still have enough resources to add an extra hardware
> watchpoint, and automatically downgrade to a software watchpoint if
> not.

That _is_ the design.  However, GDB does not tell enough to the target
for the target to give an accurate answer.  And what's more, some
questions cannot be answered without actually trying to call ptrace or
its equivalents, and getting its ``opinion''.  Unless we mirror all
the necessary information on the target level that is (which is what
x86 does).



More information about the Gdb-patches mailing list