]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
signal_command: Leftover cleanup chain regression
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 4 Aug 2015 11:42:56 +0000 (13:42 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 25 Aug 2015 15:45:58 +0000 (17:45 +0200)
gdb/ChangeLog
2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>

* infcmd.c (signal_command): Call do_cleanups for args_chain.

gdb/ChangeLog
gdb/infcmd.c

index ab702439927d2ad03a7c059c7bec5b7c02dff120..0ee2337918a00551340a2c23255c72dd9784c035 100644 (file)
@@ -1,3 +1,7 @@
+2015-08-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * infcmd.c (signal_command): Call do_cleanups for args_chain.
+
 2015-08-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        PR gdb/18767
index 6fa751559c19975716e9414236768e580334028e..aaf3d07e9734675f6b29c6b103073d6289b7a127 100644 (file)
@@ -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