This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Julian Smith wrote:I've been trying out reverse-next with UndoDB as a remote debug server, and it looks like reverse-next works by doing repeated `bs' (reverse-stepi) commands.
I was expecting it to set breakpoints and do `bc' (reverse-continue) commands, by analogy with normal forwards step etc.
Am i doing something wrong here ? Or is this the expected behaviour ?
Short answer: this is expected behavior.
Forward-next works the same way, in general. Both forward-next and reverse-next will set breakpoints under some circumstances, but will often work by singlestepping.
while (PC in current line) { ptrace (PTRACE_SINGLESTEP) if (PC outside current function) { plant breakpoint at return address ptrace (PTRACE_CONT) remove breakpoint } }
-- Greg Law, Undo Software http://undo-software.com/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |