8.3.3. Running to the start of a function using the Symbols view

To run the image to the start of a function using the Symbols view:

  1. Select Symbols from the View menu to display the Symbols view. Figure 8.4 shows an example. If you have loaded multiple images to the target, then all the images are listed.

    Figure 8.4. Symbols view

    Symbols view

  2. Click the Functions tab. This lists the public and static functions in the image, shown in Figure 8.5.

    Figure 8.5. List of functions

    List of functions

  3. Locate the function where you want to stop execution.

  4. Right-click on the function entry to display the context menu.

  5. Select Run To Here from the context menu to start execution.

    Where appropriate, enter the required input to any prompts displayed by the image. Your image runs until the start address of the chosen function is reached. When the function is reached, one of the following actions occurs:

    • If the source file that defines the function is not open, then RealView Debugger opens the source file to show where execution has stopped.

    • If the function is not defined in your source code, then execution appears to stop at the source line where the function is first called in your source code.You might have to click the Disassembly tab to see the address where the function is defined.

      For example, if you choose the call to malloc at line 92 of dhry_1.c, then execution appears to stop at line 91. Click the Disassembly tab to see the address of the function code.

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0153K
Non-Confidential