Sun Studio 12: Debugging a Program With dbx

whereami Command

The whereamicommand displays the current source line. It is valid only in native mode.

Syntax

whereami

Display the source line corresponding to the current location (top of the stack), and the source line corresponding to the current frame, if different.

whereami -instr

Same as above, except that the current disassembled instruction is printed instead of the source line.