| |||
| Home > RealView Debugger Features > Execution context and scope | |||
The execution context determines the visibility of variables and functions. A variable or function is referred to as in scope if the name can be accessed at the current point of execution. The scope of a variable or function can be:
the current source file, for global variables and functions
the current function, for local variables.
When you load an image, scope is initially set to the value of the PC, which is usually the entry point of the image. You can:
change the scope to another part of your image
determine the current location of the scope, that is, the execution context.
If the scope is at a location that corresponds to a source file, then RealView Debugger automatically opens that source file if the Home Page tab has the focus.