LinuxSir.cn,穿越时空的Linuxsir!

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

我的GDB为什么会这样呢,以前还好的,不知什么时候就出了这种怪毛病

[复制链接]
发表于 2005-3-3 22:03:34 | 显示全部楼层 |阅读模式
调试的时候出现这种情况
[yyy@linux.cn c 22:01:13]$gdb add
GNU gdb Red Hat Linux (6.1post-1.20040607.41rh)
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"...Using host libthread_db library "/lib/tls/libthread_db.so.1".//我记得从前在省略号后就没有东西了啊,现在的这些不知道怎么回事

(gdb) break main
Breakpoint 1 at 0x8048384: file add.c, line 4.
(gdb) run
Starting program: /home/yyy/mine/c/add
warning: Child process unexpectedly missing: 没有子进程//这一行比较郁闷,哪位知道怎么回事,谢谢了。

Program terminated with signal ?, Unknown signal.
The program no longer exists.
You can't do that without a process to debug.
(gdb)
发表于 2005-3-4 09:11:25 | 显示全部楼层
Using host libthread_db library "/lib/tls/libthread_db.so.1".??
说明你的系统使用NPTL,NPTL需要TLS的支持,用ldd 就可以看到libpthread.so应该是位于/lib/tls目录下的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-7 17:54:18 | 显示全部楼层
谢谢老大,还没搞定,根底太差。仍在努力中
回复 支持 反对

使用道具 举报

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

本版积分规则

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