LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 729|回复: 2

gdb是不是安装有误,还是配置有问题?

[复制链接]
发表于 2005-1-5 22:54:37 | 显示全部楼层 |阅读模式
请问一下大家,为什么我用gdb调试程序时,总是出现下面的提示呢?而且什么操作都不能,例如不能设置断点等,具体情况如下:
GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
Copyright 2004 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"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".


(gdb) file loveteller
Reading symbols from /home/asnoka/prog/loveteller...(no debugging symbols found)...done.
(gdb) break 3
No symbol table is loaded.  Use the "file" command.
(gdb)


小弟先谢谢了!!!
发表于 2005-1-5 23:23:59 | 显示全部楼层
没有调试标记,检查你编译源程序时是否加上了参数-g
 楼主| 发表于 2005-1-6 12:36:27 | 显示全部楼层
原来如此,看来是没有好好看书了,谢谢大哥!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表