aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-26 19:05:40 +0000
committerPedro Alves <palves@redhat.com>2015-04-01 15:18:41 +0100
commitde1fe8c8ab7f67856d9f2e2c5aa491cec01d3e85 (patch)
tree6651d366c0a4f4f16385da43056be7c75b5c0184 /gdb/infrun.c
parente6f5c25b57546cbd88daccea4f1739c3f90f7560 (diff)
downloadgdb-de1fe8c8ab7f67856d9f2e2c5aa491cec01d3e85.zip
gdb-de1fe8c8ab7f67856d9f2e2c5aa491cec01d3e85.tar.gz
gdb-de1fe8c8ab7f67856d9f2e2c5aa491cec01d3e85.tar.bz2
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 18ce036..f366a57 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