- 论坛徽章:
- 0
|
编写的一个很简单的程序 通过 gcc -g -o sum sum.c编译后
在用gdb sum 调试 然后run运行时就会有下面的提醒:
[heng@localhost ~]$ gdb sum
GNU gdb Red Hat Linux (6.6-35.fc8rh)
Copyright (C) 2006 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/libthread_db.so.1".
(gdb) run
Starting program: /home/heng/sum
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/ac/2eeb206486bb7315d6ac4cd64de0cb50838ff6.debug
warning: Missing the separate debug info file: /usr/lib/debug/.build-id/ba/4ea1118691c826426e9410cafb798f25cefad5.debug
the sum of 1+2+...+99==4950
Program exited with code 033.
(gdb)
哪位大虾知道这是怎么回事阿 ?我是菜鸟,希望能给出具体的解决方法。谢谢 |
|