mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
gdb/
* tracepoint.c (trace_dump_command): Select the current frame. gdb/testsuite/ * gdb.trace/backtrace.exp (gdb_backtrace_tdp_4): Test command 'tdump' on stack frame 0 and 1 respectively.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user