10.2.5. Copying a macro

You can use an existing macro to form the basis of a new macro:

  1. Select Debug → Add/Edit Debugger Macros... to display the Add/Edit Macros dialog and so edit the macro. The Existing Macros display list shows the tutorial macro you created and it is highlighted.

  2. Click Show to see the contents of the macro.

  3. Click Copy. This automatically changes the Name: data field to show int tutorial1(var1). Subsequent new macros are called int tutorial2.., int tutorial3.., and so on. You can change the default name to your own choice.

  4. In the Macro Entry Area change the body of the macro as required.

  5. Click Update to pass the macro definition to RealView Debugger.

  6. View the Output pane message, assuming that you do not change the default name:

    def int tutorial1(var1)
  7. Click the Save button and save the updated macro in the usual way.

  8. Click the Close button to close the Add/Edit Macros dialog.

The number of macros that can be defined is limited only by the available memory on your workstation.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B