6.6.69. source

The source command displays the specified lines of the specified source file, in the following format:

linenumber<tab>sourcecode

The file must be associated with a loaded image.

The shorthand form of the source command is src.

Alias

type is an alias for source.

Syntax

src value1 [+]value2[ file]

where:

value1

Specifies the line number in the source file at which you want the listing to begin.

value2

Specifies either the last line number to be listed or, if preceded by +, the number of lines you want listed.

file

Specifies the source file you want to list (by default the command lists the file associated with the current context).

Example

src 111 +10

Displays lines 111 to 120 of source file dhry_1.c if you have the Dhrystone example program loaded and halted at the default breakpoint.

Copyright © 1999-2006 ARM Limited. All rights reserved.ARM DUI 0066G
Non-Confidential