* 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.
This commit is contained in:
Pedro Alves 2008-04-17 11:49:56 +00:00
parent 155a0dd763
commit 0a320680e8
5 changed files with 104 additions and 0 deletions

View file

@ -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)