The whereis command prints all uses of a specified name, or symbolic name of an address. It is valid only in native mode.
The whereis –a command can print the location of an address-expression if the address is from a heap or stack. Note that dbx cannot print the location if the process is not alive or if dbx is working with a core file.
Print all declarations of name.
Print location of an address-expression.
where:
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.