keep_going: Add missing discard_cleanups call

By inspection, I noticed a path where we return without discarding the
cleanups.

gdb/ChangeLog:
2015-04-01  Pedro Alves  <palves@redhat.com>

	* infrun.c (keep_going): Also discard cleanups if inserting
	breakpoints fails.
This commit is contained in:
Pedro Alves 2015-03-26 19:05:40 +00:00
parent e6f5c25b57
commit de1fe8c8ab
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-04-01 Pedro Alves <palves@redhat.com>
* infrun.c (keep_going): Also discard cleanups if inserting
breakpoints fails.
2015-04-01 Pedro Alves <palves@redhat.com>
* infrun.c (wait_for_inferior): Install the

View File

@ -6251,6 +6251,7 @@ keep_going (struct execution_control_state *ecs)
{
exception_print (gdb_stderr, e);
stop_waiting (ecs);
discard_cleanups (old_cleanups);
return;
}
END_CATCH