| |||
| Home > Controlling the Behavior of Breakpoints > Setting a breakpoint that depends on the result of a macro > Attaching a macro as a command argument | |||
To attach a macro as an argument to a breakpoint, you must
use the appropriate CLI command. For example, to attach the macro test_loop(5,10) to
a software breakpoint at line 149 in dhry_1.c of
the Dhrystone project, enter the command:
BREAKINSTRUCTION DHRY_1\#149:1 ; test_loop(5,10)
This sets a conditional breakpoint (see Unconditional and conditional breakpoints).
The breakpoint is identified by a yellow disc (see Breakpoint icons and color coding).