Sun Studio 12 Update 1: Debugging a Program With dbx

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.