本版版主招募中

 
标题: [疑问] gdb不能工作了
fengyeyouni
LU新生
Rank: 1



UID 78325
精华 0
积分 1
帖子 1
活跃指数 1
LU金币 2 个
LU金条 0 个
阅读权限 10
注册 2007-2-12
 
发表于 2007-2-12 23:54  资料  个人空间  短消息  加为好友 
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: 不可识别的文件格式
请问这是为什么呀!  请教高手的指点!!

顶部
triphop
LU幼天使
Rank: 2


UID 13166
精华 0
积分 55
帖子 87
活跃指数 14
LU金币 2075 个
LU金条 0 个
阅读权限 20
注册 2004-2-27
 
发表于 2007-2-13 17:02  资料  个人空间  短消息  加为好友 
make sure that you are debugging the executable file.

顶部
 



当前时区 GMT+8, 现在时间是 2008-9-6 04:36
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.051104 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver