[PATCH v2] dynamic printf
Pedro Alves
palves@redhat.com
Wed May 16 20:52:00 GMT 2012
On 05/16/2012 09:46 PM, Stan Shebs wrote:
>> I thought this approach would break "next"ing over a dprintf location.
>
> Indeed, thus this part of the introduction to this patch: :-)
>
> "... Joel previously noted a problem with the "continue" in the command list, which is
> that stepping/nexting over a dprintf becomes a continue instead (this is a problem for
> general breakpoint command lists as well). I tinkered with bpstats a bit, but didn't
> come up with a good solution.
This is normally handled by the bpstat saying "don't stop". Doesn't that work
for this? Why?
> Ironically, the agent version doesn't have this problem, because the resume happens automatically inside GDBserver, and GDB is oblivious.
That's sort of what happens when the bpstat returns "don't stop for this".
--
Pedro Alves
More information about the Gdb-patches
mailing list