2.3.79. LIST

Displays source code in the Code window.

Syntax

LIST [{#line_number | function_name | @stack_level}]

where:

line_number

Specifies the number of the first line to be displayed.

function_name

Specifies a function that is to have its source code displayed.

@stack_level

Displays the line that is returned to after the specified nesting level. For example, @1 represents the instruction after the call to the current procedure.

Description

The LIST command displays the source code in the Code window beginning at the specified line number, stack level, or function name.

You can qualify line number or procedure names by preceding them with a module name. If you do not specify a parameter for the LIST command, the line pointed to by the PC is displayed.

The LIST command runs asynchronously unless in a macro.

Example

The following examples show how to use LIST:

list

List the text of the current source file from the current PC location, if that refers to a source file with debugging information.

list #44

List the text of the current source file from line 44.

list @1

List the text of the source file containing the call to the current procedure, starting from the statement after the call.

See also

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