diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-08-04 13:42:56 +0200 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-08-25 17:45:58 +0200 |
commit | 3ba0344e56ef739808615be5ca319f82c2a83855 (patch) | |
tree | 8e31b22396866c2d4c7775fa610d326970a86d19 | |
parent | fa68327bb429223d98887fa43db67fbb49629eb1 (diff) | |
download | binutils-gdb-3ba0344e56ef739808615be5ca319f82c2a83855.tar.gz |
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.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/infcmd.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ab702439927..0ee2337918a 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 6fa751559c1..aaf3d07e973 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 |