| |||
Home > Examining the Target Execution Environment > Displaying function information from the Symbols view |
You can view information for a function, which includes the type declaration and where the function is located.
To display information for a function:
Select Symbols from the View menu to display the Symbols view. Figure 13.12 shows an example. 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. Figure 13.13 shows an example.
Locate the required function.
Right-click on the function entry to display the context menu.
Select the required option from the context menu:
Select Print Type Information, to display the type declaration for the function, and where the function is located.
This option issues a PRINTTYPE command.
Select Print Full Information, to display the address where the function is located, and location in your source code, if any.
This option issues a CEXPRESSION command.
The information is displayed in the Cmd tab.
For example, for the function, Func_1
in
the Dhrystone image, the following information is displayed in the Cmd tab:
for type information:
> printtype @dhrystone\\DHRY_2\Func_1
extern Enumeration Func_1(int, int);
-- In module DHRY_2, filename = 'dhry_2.c', starting at line 118
for full information:
> cexpr @dhrystone\\DHRY_2\Func_1
Result is: code address 0x00009048 @dhrystone\\DHRY_2\Func_1
Line 118..118 at 0x00009048..0x0000904F {Func_1}
See also:
the following in the RealView Debugger Command Line Reference Guide:
Alphabetical command reference for details of the CEXPRESSION command.