list¶
List specified function or line.
list [-]|[[FILE:]LINENUM[,LINENUM]]|[FUNCTION]|[*ADDRESS]
With no argument, lists ten more lines after or around previous listing.
“list -” lists the ten lines before a previous ten-line listing.
One argument specifies a line, and ten lines are listed around that line.
Two arguments with comma between specify starting and ending lines to list.
- Lines can be specified in these ways:
- LINENUM – to list around that line in current file.
- FILE:LINENUM – to list around that line in given FILE.
- FUNCTION – to list around beginning of that function.
- ADDRESS – to list around the line containing that address.
With two args if one is empty it stands for ten lines away from the other arg.