|
调试的时候出现这种情况
[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) |
|