diff options
author | Tom Tromey <tom@tromey.com> | 2016-09-24 21:14:14 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-10-12 19:59:29 -0600 |
commit | d1a760cbb796b62f18ff6b81a189fd261809ef74 (patch) | |
tree | 6cf14b0855894a3796627b7445c15983c66d3d3d /gdb/tracepoint.c | |
parent | cda6c55bd399a8892d62178d4daeb074def909e0 (diff) | |
download | fsf-binutils-gdb-d1a760cbb796b62f18ff6b81a189fd261809ef74.zip fsf-binutils-gdb-d1a760cbb796b62f18ff6b81a189fd261809ef74.tar.gz fsf-binutils-gdb-d1a760cbb796b62f18ff6b81a189fd261809ef74.tar.bz2 |
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.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |