[PATCH] Program Breakpoints

Pedro Alves pedro@codesourcery.com
Thu Apr 30 18:30:00 GMT 2009


Before looking at the code, I'd like to see the interaction of
program breakpoints with decr_pc_after_break adjustment formalized.
I did a quick skim and couldn't find it handled.

E.g, if you were to implement support for this on x86 gdbserver,
assuming int3 traps, it appears to me that the only option is
for the target to always rewind the pc before reporting to GDB, and
for GDB to never adjust it itself, even for regular breakpoint hits,
otherwise, e.g., consecutive breakpoints will be mishandled.  This
also suggests that there has to be prior negotiation (qSupported) to
enable the support.  Has this been considered?

(A small request: please include the -p switch in your `cvs diff'
commands, or add it to .cvsrc.  I use -Nurp myself.)

-- 
Pedro Alves



More information about the Gdb-patches mailing list