aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-loop.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-04-17 11:49:56 +0000
committerPedro Alves <palves@redhat.com>2008-04-17 11:49:56 +0000
commit0a320680e84174e9aa01c6297fe08666720ed7bf (patch)
tree668e1e32df786717bb423d442f6c670fe64b165f /gdb/inf-loop.c
parent155a0dd76368c9a61a2d640df534d25216963e86 (diff)
downloadgdb-0a320680e84174e9aa01c6297fe08666720ed7bf.zip
gdb-0a320680e84174e9aa01c6297fe08666720ed7bf.tar.gz
gdb-0a320680e84174e9aa01c6297fe08666720ed7bf.tar.bz2
gdb/
* inf-loop.c (inferior_event_handler): Also run the intermediate continuations in the INF_EXEC_COMPLETE case. gdb/testsuite/ * gdb.base/step-break.exp, gdb.base/step-break.c: New files.
Diffstat (limited to 'gdb/inf-loop.c')
-rw-r--r--gdb/inf-loop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c
index cfb80d5..9519c79 100644
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -91,6 +91,12 @@ inferior_event_handler (enum inferior_event_type event_type,
was_sync = sync_execution;
async_enable_stdin ();
+ /* If we were doing a multi-step (eg: step n, next n), but it
+ got interrupted by a breakpoint, still do the pending
+ continuations. The continuation itself is responsible for
+ distinguishing the cases. */
+ do_all_intermediate_continuations ();
+
do_all_continuations ();
if (current_language != expected_language)