|
现在在LINUX下学习C,今天看了一些gdb调试程序的使用方法,拿来练习一下,不能list源文件。
出错如下:
[moxnet@localhost moxnet]$ gdb myc
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) list
1 ../sysdeps/i386/elf/start.S: 没有那个文件或目录.
in ../sysdeps/i386/elf/start.S
(gdb)
说明:
用户目录下有已经gcc编译过的c程序(@gcc -o myc myc.c) |
|