13.7.1. Inserting templates

A template can be inserted into an empty File Editor pane or added to existing code. The insertion point is determined by the location of the cursor.

By default, RealView Debugger loads the template file provided as part of the root installation, program_directory\etc\rvdebug.tpl, but you can access your own template files if required, see Creating templates for more information.

To insert a template:

  1. Display the file in the File Editor pane.

  2. Position the text insertion point at the required location and select Edit → Insert Template... to insert the template.

    This displays the Insert Template dialog box showing the currently available template file and the templates it contains, shown in Figure 13.6.

    Figure 13.6. Insert Template dialog box

    Insert Template dialog box

    If you have created your own template file, use the Load... button to locate and load a different template file, for example my_template.tpl.

  3. Highlight the required template in the list and click Show to display a text box showing the contents of the chosen template.

  4. Click Close to close the definition display.

  5. Highlight the required template in the list and click Insert to paste the template into the current source code in the File Editor.

    The chosen template is displayed and any variables are automatically updated.

  6. When all the required templates have been included, close the Insert Template dialog box and save your modified source code.

Editing templates

You can edit template files from the Insert Template dialog box, shown in Figure 13.6. Highlight a template from the list and click Edit... to display a standalone File Editor pane already loaded with the specified template file ready for editing.

You can also load a template file directly into the File Editor pane without going through the Insert Template dialog box. You can also create and edit template files using any text editor.

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