list在linux系统里的解释
(gdb)help list
List specified function or line.
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 that file,
FUNCTION, to list around beginning of that function,
FILE:FUNCTION, to distinguish among like-named static functions.
*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.nt
虽然是全英文的描述,但是如果你仔细去看的话,解释的还是很详细、通俗易懂的,不会的单词去查一下可能会让你的疑惑一下就解开了,比如里面的comma(逗号),一开始不知道它的意思就直接跳过,然后两个参数的情况总是写不对,后来弄懂这个单词的意思之后,觉得自己之前简直是太着急了。