Finding All Declarations of a Name

Related Topics:

Scope whereis Command

To find all declarations of a name, type:

whereis name

You can also use backquotes to give the scope of a name explicitly:
print `file.c`func1`x
print `file.c`func2:212`y y is declared in block at line 212
stop in `libxx.so.1`func3 func3 is declared in dyn. library xx
stop in `file.c`func1
stop in `file.c`classname::func2
stop in ``func3 func3 is extern or file static
stop in `func4 func4 is extern
stop in #fun fun is a linker symbol; dbx looks it up
in global scope exactly as it appears
stop in `file.c`#fun to search in file.c static scope for
linker name fun