From de1fe8c8ab7f67856d9f2e2c5aa491cec01d3e85 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 26 Mar 2015 19:05:40 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 1 + 2 files changed, 6 insertions(+) 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 -- 2.30.2