13.07.2015 Views

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Working with MacrosError: Cannot perform operation - thread is running.Error: E0081: Runtime error in macro.Controlling breakpoint behavior with macro return valuesYou can use macro return values to control what action <strong>RealView</strong> <strong>Debugger</strong> takes whena breakpoint is triggered:• If the macro returns a nonzero value, <strong>RealView</strong> <strong>Debugger</strong> continues programexecution. Any qualifiers and actions that appear after the macro are notprocessed, and the triggering of the breakpoint is not recorded.• If a macro returns a value of zero, <strong>RealView</strong> <strong>Debugger</strong> stops program execution.Any actions that are assigned to the macro are performed.NoteThis behavior might be different if you assign additional condition qualifiers to thebreakpoint. See Setting conditional breakpoints on page 4-34 for more details.9.1.7 Attaching macrosIn addition to breakpoints, you can attach macros to:• aliases, for example ALIAS my_alias=my_macro()• windows, for example VMACRO 250, my_macro().9.1.8 Stopping macrosWhen macros are run as commands they are queued for execution like any otherdebugger command when your program is executing. Click the Command canceltoolbar button to cancel the last command entered onto the queue. This can be used tostop any macro that is running. This does not take effect until the previous commandhas completed and so any effects might be delayed.Click the Stop Execution button to stop a macro that is attached to a breakpoint.<strong>ARM</strong> DUI 0153G Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. 9-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!