Sun Studio 12: Debugging a Program With dbx

Variables That Reflect the Current Scope

The following variables always reflect the current program counter of the current thread or LWP, and are not affected by the various commands that change the visiting scope:

$scope

Scope of the current program counter

$lineno

Current line number

$func

Current function

$class

Class to which $func belongs

$file

Current source file

$loadobj

Current load object