summaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2011-05-26 15:32:35 +0000
committerPedro Alves <pedro@codesourcery.com>2011-05-26 15:32:35 +0000
commitae14b143a9445ee7a9c86b4d4bd55fd7bdfcd8f5 (patch)
tree7474af55c5f38483edbcebbb3abce66ca60892c5 /gdb/inferior.h
parent47cd6407eed65f9fae56739b3062910734374705 (diff)
downloadgdb-ae14b143a9445ee7a9c86b4d4bd55fd7bdfcd8f5.tar.gz
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 57a96cf9eae..ae2363dac03 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,