where Command

The where command prints the call stack.

Syntax
where Print a procedure traceback.
where number Print the number top frames in the traceback.
where -f number Start traceback from frame number..
where -h Include hidden frames.
where -l Include library name with function name
where -q Quick traceback (only function names).
where -v Verbose traceback (include function args and line info).

where:

number is a number of call stack frames.

Any of the above forms may be followed by a thread or LWP ID to obtain the traceback for the specified entity.