Go to main content
Oracle® Developer Studio 12.5: Debugging a Program with dbx

Exit Print View

Updated: June 2016

which Command

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


which [-n] [–m] [+m] name

Print full qualification of name.

which -t type

Print full qualification of type.


name is the name of loadable object 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.

–m forces macro lookup even if the dbxenv variable macro_expand is set to off.

+m defeats macro lookup so that any symbols that might have been shadowed by macros are found instead.