每一次调试完代码后,我想要看一下源码设置新断点,结果输出以下错误,求各路dl解答

关注【相关推荐】
(gdb) l main
29 * Input Args:
30 * Output Args:
31 * Return Value:
32 ********************************************************************************/
33 int main (int argc, char **argv)
34 {
35 int i;
36 long result = 0;
37 int sum = 0;
38 sum = func(10);
(gdb) help list //可以看到有关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.