Scope

Related Topics:

Getting the Fully Qualified Name of a Symbol Finding All Declarations of a Name
Relaxing the Scope Lookup Rules for Static Symbols and C++ Member Functions

The scope is a subset of a program defined in terms of the visibility of a variable or function. A symbol is said to be "in scope" if its name is visible at the given point of execution. In C, functions may have global or file-static scope; variables may have global, file-static, or block scope.

In dbx, scope also refers to the point in the program where the search for a given symbol begins. Normally, it is the same as the current line, but several commands can change the current scope without causing the point of execution to move:

func
file
up, down, frame
list procedure

To relax the scope lookup rules for static symbols and C++ member functions, use:

dbxenv scope_look_aside on

or use the "double backquote" prefix:

stop in ''func4			func4 may be static and not in scope

If the dbx environment variable scope_look_aside is set to on, dbx looks for: