为什么gdb不能list源文件?

C、C++和Java语言
回复
VisionMiracle
帖子: 42
注册时间: 2006-08-20 8:20
送出感谢: 0
接收感谢: 0

为什么gdb不能list源文件?

#1

帖子 VisionMiracle » 2006-09-26 21:08

输入命令及显示信息如下:

thompson@thompson-desktop:~/TRIOT$ gdb TRIOT-MC
GNU gdb 6.4-debian
Copyright 2005 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 "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) list
1 ../sysdeps/i386/elf/start.S: No such file or directory.
in ../sysdeps/i386/elf/start.S
(gdb)
iltgcl
帖子: 16
注册时间: 2006-08-07 22:52
送出感谢: 0
接收感谢: 0

#2

帖子 iltgcl » 2006-09-26 22:30

先输入命令start看看
Redbad
帖子: 29
注册时间: 2006-05-30 14:28
来自: NUC
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 Redbad » 2006-09-27 8:43

编译的时候要使用-g选项啊
回复

回到 “C/C++/Java”