| |||
| Home > RealView Debugger Commands > Alphabetical command reference > LIST | |||
The LIST command displays source code in the Code window.
LIST [ line_number | function_name |
@stack_level]
where:
line_numberSpecifies the number of the first line to be displayed.
function_nameSpecifies a function that is to have its source code displayed.
@stack_levelDisplays the line that is returned to after the
specified nesting level. For example, @1 represents
the instruction after the call to the current procedure.
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.
The following examples show how to use LIST:
listList the text of the current source file from the current PC location, if that refers to a source file with debugging information.
list #44List the text of the current source file from line 44.
list @1List the text of the source file containing the call to the current procedure, starting from the statement after the call.