4.9. Attaching macros to breakpoints

RealView Debugger includes a macro facility that enables you to create macros containing complex procedures. You can execute these macros directly through the RealView Debugger CLI, or you can attach a macro to a breakpoint so that it is executed when the breakpoint triggers. When you attach a macro to a breakpoint, the macro can return an integer value that determines whether program execution continues or stops. See Controlling the behavior of breakpoints for details on how the macro return value affects the behavior of a breakpoint.

RealView Debugger recognizes several predefined macros containing commonly used functions. These macros can also be attached to breakpoints. However, if you are attaching a macro that you create yourself, for example the tutorial() macro created in Using macros, then this must be defined as a symbol in the debugger.

Macro syntax is defined in the RealView Debugger v1.8 Command Line Reference Guide.

Note

Execution-type commands are not valid within a breakpoint macro. See Using macros with breakpoints for full details.

This section includes:

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0153G
Non-Confidential