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 MacrosWhen creating a macro, variables must be declared at the start of the macrodefinition. This also applies to macros that you create using a text editor.The Add/Edit Macros dialog looks like the example shown in Figure 9-1.Figure 9-1 Creating a macroThe macro uses the PRINTF command and so the command must be enclosed bydollar signs ($), shown in the Macro Entry Area.7. Click Update to pass the macro definition to <strong>RealView</strong> <strong>Debugger</strong>, where it isstored in the symbol table. This adds the new macro to the Existing Macrosdisplay list.If there are any errors in the macro text, you are notified when you try to pass themacro to <strong>RealView</strong> <strong>Debugger</strong>.NoteIf the symbol table is recreated, for example when an image is loaded withsymbols or if you disconnect, any macros are automatically deleted.8. View the Output pane message:def int tutorial(var1)9. Click Save... to display the Select file to save/append into dialog box where youcan choose where to save the new macro definition file for later re-use.The macro name has been entered automatically with the extension .inc.10. Save the new macro, with the default name, in your \home directory.If the chosen file already exists, <strong>RealView</strong> <strong>Debugger</strong> displays a warning messageand gives you the option to append the new file or to overwrite the existingcontents.<strong>ARM</strong> DUI 0153G Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. 9-9

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

Saved successfully!

Ooh no, something went wrong!