aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-05-26 15:32:38 +0000
committerPedro Alves <palves@redhat.com>2011-05-26 15:32:38 +0000
commit9da8c2a0faa07d6b876397bdb3e87509897c68cd (patch)
tree019d3043a8d4b7bab81bda6fa527f34e1f9bb1c2 /gdb/inferior.h
parent2c03e5bed3ac8158eaae4621f4b4550e4ab6d4ef (diff)
downloadgdb-9da8c2a0faa07d6b876397bdb3e87509897c68cd.zip
gdb-9da8c2a0faa07d6b876397bdb3e87509897c68cd.tar.gz
gdb-9da8c2a0faa07d6b876397bdb3e87509897c68cd.tar.bz2
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.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 57a96cf..ae2363d 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -190,6 +190,10 @@ extern void resume (int, enum target_signal);
extern ptid_t user_visible_resume_ptid (int step);
+extern void insert_step_resume_breakpoint_at_sal (struct gdbarch *,
+ struct symtab_and_line ,
+ struct frame_id);
+
/* From misc files */
extern void default_print_registers_info (struct gdbarch *gdbarch,