LinuxSir.cn,穿越时空的Linuxsir!

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

socket程序怎么用gdb调试?

[复制链接]
发表于 2005-4-16 19:22:11 | 显示全部楼层 |阅读模式
list的时候怎么用错误?
  1. $ gdb tcpclient
  2. GNU gdb 6.2
  3. Copyright 2004 Free Software Foundation, Inc.
  4. GDB is free software, covered by the GNU General Public License, and you are
  5. welcome to change it and/or distribute copies of it under certain conditions.
  6. Type "show copying" to see the conditions.
  7. There is absolutely no warranty for GDB.  Type "show warranty" for details.
  8. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

  9. (gdb) l
  10. 1       /var/tmp/portage/glibc-2.3.4.20041102/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.S: No such file or directory.
  11.         in /var/tmp/portage/glibc-2.3.4.20041102/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.S
  12. (gdb)
复制代码


而其他程序就没有问题
 楼主| 发表于 2005-4-16 19:47:08 | 显示全部楼层
不好意思
浪费大家的时间了
是我粗心
第二此加-g编译的时候忘了用-o产生输出文件了

不好意思
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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