dprintf-style agent can't explain a trap.
authorPedro Alves <palves@redhat.com>
Mon, 2 Jun 2014 21:27:32 +0000 (22:27 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 2 Jun 2014 22:28:54 +0000 (23:28 +0100)
commitcd1608cc4ed6e657deb405283011a6c2a795fb80
treea220160fc95ee7f70d84c1947d2b3f1c12c565b0
parent0a261ed82e9b5f6fbc3725258a742515df8f4b42
dprintf-style agent can't explain a trap.

If some event happens to trigger at the same address as a dprintf-style
agent dprintf is installed, GDB will complain, like:

 (gdb) continue
 Continuing.
 May only run agent-printf on the target
 (gdb)

Such dprintfs are completely handled on the target side, so they can't
explain a stop, but GDB is currently putting then on the bpstat chain
anyway, because they currently unconditionally use bkpt_breakpoint_hit
as breakpoint_hit method.

gdb/
2014-06-02  Pedro Alves  <palves@redhat.com>

* breakpoint.c (dprintf_breakpoint_hit): New function.
(initialize_breakpoint_ops): Install it as dprintf's
breakpoint_hit method.
gdb/ChangeLog
gdb/breakpoint.c
This page took 0.025721 seconds and 4 git commands to generate.