LoveUnix » 编程开发 & Rational » gdb不能工作了
让LU留住您的每

一天 让LU博客留住您的每一天
2007-2-12 23:54 fengyeyouni
gdb不能工作了

我用的是FC6 用gdb调试一个非常简单的程序,出现了
GNU gdb Red Hat Linux (6.5-8.fc6rh)
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"...“/home/feng/Ccode/main.c": not in executable format: 不可识别的文件格式
请问这是为什么呀!  请教高手的指点!!

2007-2-13 17:02 triphop
make sure that you are debugging the executable file.

页: [1]
查看完整版本: gdb不能工作了


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.