| |||
| Home > Executing Images > Running an image to a specific point > Running to the start of a function using the Symbols pane | |||
To run the image to the start of a function using the Symbols pane:
Select View ? Symbols from the Code window main menu.
The Symbols pane is displayed, shown in Figure 8.1. If you have loaded multiple images to the target, then all the images are listed.
Click the Functions tab.
This lists the public and static functions in the image, shown in Figure 8.2.
Locate the function where you want to stop execution.
Right-click on the function entry to display the context menu.
Select Go Until 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 function is defined in a different source file, 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 Dsm 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 Dsm tab to see
the address of the function code.