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.
This commit is contained in:
parent
cda6c55bd3
commit
d1a760cbb7
2 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue