From: Pedro Alves Date: Thu, 26 Mar 2015 19:05:40 +0000 (+0000) Subject: keep_going: Add missing discard_cleanups call X-Git-Tag: gdb-7.10-branchpoint~887 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de1fe8c8ab7f67856d9f2e2c5aa491cec01d3e85;p=thirdparty%2Fbinutils-gdb.git 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 * infrun.c (keep_going): Also discard cleanups if inserting breakpoints fails. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8e1bd11a344..f5adaf88cc6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-04-01 Pedro Alves + + * infrun.c (keep_going): Also discard cleanups if inserting + breakpoints fails. + 2015-04-01 Pedro Alves * infrun.c (wait_for_inferior): Install the diff --git a/gdb/infrun.c b/gdb/infrun.c index 18ce0361b7e..f366a579c61 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -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