Sun Studio 12: Debugging a Program With dbx

whereis Command

The whereis command prints all uses of a given name, or symbolic name of an address. It is valid only in native mode.


whereis name

Print all declarations of name.

whereis -a address_expression

Print location of an address_expression.


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

address is any expression resulting in or usable as an address.