This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/gdb-7.10-branch] signal_command: Leftover cleanup chain regression


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3ba0344e56ef739808615be5ca319f82c2a83855

commit 3ba0344e56ef739808615be5ca319f82c2a83855
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Aug 4 13:42:56 2015 +0200

    signal_command: Leftover cleanup chain regression
    
    gdb/ChangeLog
    2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	* infcmd.c (signal_command): Call do_cleanups for args_chain.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/infcmd.c  | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ab70243..0ee2337 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 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
 	* infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
 	use.
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 6fa7515..aaf3d07 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]