Sun Studio 12: Debugging a Program With dbx

which Command

The which command prints the full qualification of a given name. It is valid only in native mode.

Syntax

which [-n] name

Print full qualification of name.

which -t type

Print full qualification of type.

where:

name is the name of something that is in scope; for example, a variable, function, class template, or function template.

type is the name of a type.

-n displays the full qualification of a non-type. It is not necessary to specify -n; this is the default if you type the which command with no options.

-t displays the full qualification of a type.