This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Remove unnecessary null_cleanup
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 13 Oct 2016 02:07:42 -0000
- Subject: [binutils-gdb] Remove unnecessary null_cleanup
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d1a760cbb796b62f18ff6b81a189fd261809ef74
commit d1a760cbb796b62f18ff6b81a189fd261809ef74
Author: Tom Tromey <tom@tromey.com>
Date: Sat Sep 24 21:14:14 2016 -0600
Remove unnecessary null_cleanup
This patch removes an unnecessary null_cleanup.
2016-10-12 Tom Tromey <tom@tromey.com>
* tracepoint.c (trace_dump_command): Remove unnecessary
null_cleanup.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/tracepoint.c | 4 +---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5d83d59..aa3670d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2016-10-12 Tom Tromey <tom@tromey.com>
+ * tracepoint.c (trace_dump_command): Remove unnecessary
+ null_cleanup.
+
+2016-10-12 Tom Tromey <tom@tromey.com>
+
* valprint.c (generic_emit_char, count_next_character)
(generic_printstr): Update.
* charset.c (struct wchar_iterator): Move to charset.h.
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index c89c77e..e5c353c 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3061,11 +3061,9 @@ trace_dump_command (char *args, int from_tty)
printf_filtered ("Data collected at tracepoint %d, trace frame %d:\n",
tracepoint_number, traceframe_number);
- old_chain = make_cleanup (null_cleanup, NULL);
-
/* This command only makes sense for the current frame, not the
selected frame. */
- make_cleanup_restore_current_thread ();
+ old_chain = make_cleanup_restore_current_thread ();
select_frame (get_current_frame ());
actions = all_tracepoint_actions_and_cleanup (loc->owner);