2011-05-26 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Thu, 26 May 2011 15:32:38 +0000 (15:32 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 26 May 2011 15:32:38 +0000 (15:32 +0000)
commit9da8c2a0faa07d6b876397bdb3e87509897c68cd
tree019d3043a8d4b7bab81bda6fa527f34e1f9bb1c2
parent2c03e5bed3ac8158eaae4621f4b4550e4ab6d4ef
2011-05-26  Pedro Alves  <pedro@codesourcery.com>

gdb/
* infcmd.c (finish_backward): Set a step-resume breakpoint at the
function's entry point instead of a manually managed momentary
breakpoint, and only ever issue one proceed call.
* infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
doing a reverse-finish, switch to stepi mode, to do another step.
(insert_step_resume_breakpoint_at_sal): Make public.
(normal_stop): No need to save function value return registers if
going reverse.
* inferior.h (insert_step_resume_breakpoint_at_sal): Declare.

gdb/testsuite/
* gdb.reverse/finish-reverse-bkpt.exp: New test.
gdb/ChangeLog
gdb/infcmd.c
gdb/inferior.h
gdb/infrun.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.reverse/finish-reverse-bkpt.exp [new file with mode: 0644]