[rfc;rfa:breakpoint] Pass full breakpoint/watchpoint count to target
Eli Zaretskii
eliz@is.elta.co.il
Sun Sep 29 22:46:00 GMT 2002
On Sun, 29 Sep 2002, Andrew Cagney wrote:
> The attached patch changes the target vector so that a count of each
> type of hardware watchpoint/breakpoint is passed to the
> target_can_use_hardware_breakpoints() function. (Anyone got a better
> name for the function?).
>
> This lets targets make a better guess at how many watchpoints are going
> to be needed.
Sorry, I don't see the large-scale picture: how will this facility be
used in routine GDB operations by the application-level GDB code?
Also, on a i386, for example, if you don't pass the size and alignment of
each address to be watched, the guess of the amount of required resources
can be very wrong. This is even more exacerbated due to debug register
sharing implemented for i386.
> The intent is for the Z? packet to pass these totals down
> to the target.
Do you mean to say this is only for remote targets?
More information about the Gdb-patches
mailing list