Show the current stack trace of currently active functions.
where [num] [thread { thread_id, ... | all | * } ]
num |
The number of call frames to show, starting from the beginning of the stack. |
thread_id |
The thread whose call stack should be shown. |
all | * |
Display the full stack trace of all threads. all and * are equivalent. |
This command displays the stack trace of currently active functions.
If you do not specify the thread keyword, the debugger displays the stack trace of currently active functions for the current thread.
If you specify the thread keyword, the debugger displays the stack trace of the specified threads.
To display a specific number of call frames at the top of the stack, specify the num parameter. Each active function is designated by a number, which you can use as an parameter for the func command. If you do not specify the number, the debugger displays all levels.
The top level on the stack is 0.
For example, if you enter the command where 3, the debugger displays levels 0, 1, and 2.
When large and complex values are passed by value to a routine on the stack, the output of the where command can be voluminous. You can set the control variable $stackargs to 0 to suppress the output of argument values in the call stack. Setting $stack_levels to a numeric value limits the number of stacks displayed to the specified value.
Copyright © 1996-2010, Intel Corporation. All rights reserved.