From c6343a91d94e9516afe56dfe85e435922bd9ea04 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 4 Aug 2015 13:42:56 +0200 Subject: [PATCH] signal_command: Leftover cleanup chain regression gdb/ChangeLog 2015-08-04 Jan Kratochvil * infcmd.c (signal_command): Call do_cleanups for args_chain. --- gdb/ChangeLog | 4 ++++ gdb/infcmd.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 10628236620..af41072f7a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-08-04 Jan Kratochvil + + * infcmd.c (signal_command): Call do_cleanups for args_chain. + 2015-08-04 Jan Kratochvil PR gdb/18767 diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 5cd8dd728e1..29aaf445736 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1264,6 +1264,8 @@ signal_command (char *signum_exp, int from_tty) oursig = gdb_signal_from_command (num); } + do_cleanups (args_chain); + /* Look for threads other than the current that this command ends up resuming too (due to schedlock off), and warn if they'll get a signal delivered. "signal 0" is used to suppress a previous -- 2.30.2