This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Wrong hw_watchpoint_used_count? (multiple location watchpoints)
> 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).