Using Macros [ Symbolic Debugger/iX User's Guide ] MPE/iX 5.0 Documentation
Symbolic Debugger/iX User's Guide
Using Macros
Macros are words that represent one or more debugger commands. You
create macros by entering names for them and specifying the commands for
which they stand. Macros are very useful for representing a group of
commands that you execute often. You do not have to re-enter the
commands; just enter the macro name for them.
The following command defines the macro xyz. Every time xyz is used, the
commands b 10, b 20, lb and r; info="test1p" are executed:
>def xyz b 10 {}; b 20 {}; lb; r ; info="test1p"
The braces ({}) indicate that no command list is used with the commands.
This is required if you want to have a breakpoint command followed by
another command on the same line. Without the braces, the debugger would
assume the rest of the line to be the breakpoint's command list.
Macro expansion can be enabled or disabled with the tm (toggle macros)
command. Initially, macro expansion is disabled.
MPE/iX 5.0 Documentation