2.3.97. PRINTSYMBOLS

Displays information about the specified symbol including its name, data type, storage class, and memory location.

Syntax

PRINTSYMBOLS [{/C|/D|/E|/F|/M|/R|/T|/W}] [name[*]] [{\|\\|*}]

where:

/C

Displays functions and labels.

/D

Displays data and macros.

/E

Displays any symbol declaration conflicts.

Mismatch errors occur when global variables are declared with different types in different modules or global functions are declared with different return types or argument counts in different modules.

/F

Displays symbols in all roots (all contexts). All matching names in all roots are shown.

/M

Displays modules and module names.

/R

Displays reserved symbols, registers, internal variables, and any memory mapped registers.

/T

Displays types.

/W

Displays symbols in wide format (names only).

name

Specifies the symbolic unit:

  • symbol name

  • source code line number.

The wildcard character (*) can be used to match the first zero or more letters of a name. The * must be the last character in the partial name.

*

An asterisk as the only parameter displays all symbols in the current context.

\

Displays information about all modules.

\\

Displays information about debugger symbols.

Description

The PRINTSYMBOLS command displays information about the specified symbol including its name, data type, storage class, and memory location. If you want to see all modules in your current root, use only \ and \\. If you want to see all symbols in a particular function or module, append \ to the module name.

PRINTSYMBOLS with no options specified acts the same as the CONTEXT command. Also, PRINTSYMBOLS /F acts the same as CONTEXT /F.

Note

The symbol name must be specified in the correct case, even when a wildcard is used.

Examples

The following examples show how to use PRINTSYMBOLS:

printsymbols funct1\

Prints the names of all symbols within funct1, for example, all local variables.

ps #146.2

Prints details if the second statement on line 146 of the current source file. For example, for the dhry_1.c source file of the dhrystone image this command prints:

Module DHRY_1 Line 146..146 at 0x00008318

printsymbols /m *

Prints the names of all modules in the image. For example, for the dhrystone image this command prints:

@dhrystone\\DHRY_H    : Codeless Include File.
@dhrystone\\TIME_H    : Codeless Include File.
@dhrystone\\DHRY_1    : High level module.
                        Code section = 0x00008278 to 0x00008FB3
                        Code section = 0x0000D8BC to 0x0000D8BF
@dhrystone\\DHRY_2    : NON-LOADED module.
                        Code section = 0x0000807C to 0x0000826F
@dhrystone\\STARTUP_S : Assembly level module.
                        Code section = 0x00008000 to 0x00008007
@dhrystone\\SCATTER_S : Assembly level module.
                        Code section = 0x00008008 to 0x0000807B
@dhrystone\\SYSAPP    : Assembly level module.
                        Code section = 0x00008FB4 to 0x00008FF3
                        Code section = 0x0000AE20 to 0x0000AEE7
                        Code section = 0x0000D07C to 0x0000D093
...

Alias

PS is an alias of PRINTSYMBOLS.

See also

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0175N
Non-ConfidentialID052111