gdb/
[deliverable/binutils-gdb.git] / gdb / tracepoint.c
index 8b70bd3eaf333057161554d9199c08591a519a4c..ce61fb7b2f6345335992de680c7034322a55700f 100644 (file)
@@ -3065,6 +3065,12 @@ trace_dump_command (char *args, int from_tty)
                   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 ();
+  select_frame (get_current_frame ());
+
   actions = all_tracepoint_actions_and_cleanup (loc->owner);
 
   trace_dump_actions (actions, 0, stepping_frame, from_tty);
This page took 0.027219 seconds and 4 git commands to generate.