diff options
author | Yao Qi <yao@codesourcery.com> | 2013-07-31 00:44:42 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-07-31 00:44:42 +0000 |
commit | de74e63a5651500a398a4166405c1bfe4a4fe2fd (patch) | |
tree | 91904447e2ce04309cf1789c023d48a3357dc35f /gdb/tracepoint.c | |
parent | 680558e8361c727a81c7d6b77461e57fedf308c1 (diff) | |
download | gdb-de74e63a5651500a398a4166405c1bfe4a4fe2fd.zip gdb-de74e63a5651500a398a4166405c1bfe4a4fe2fd.tar.gz gdb-de74e63a5651500a398a4166405c1bfe4a4fe2fd.tar.bz2 |
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.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 8b70bd3..ce61fb7 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -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); |