GNU gdb (GDB) Fedora (6.8.50.20090302-21.fc11)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i586-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/home/xiaoguang/sushu.c": not in executable format: 不可识别的文件格式
(gdb)
出现这样的问题该如何解决 ?
wwwwxiaoguang 于 2009-10-14 21:47:06发表:
谁有gdb的电子书籍?
wwwwxiaoguang 于 2009-10-13 15:43:54发表:
谁有gdb的电子书籍?
theset 于 2009-10-11 09:13:51发表:
同意二楼的意见
wwwwxiaoguang 于 2009-10-11 00:28:27发表:
非常感谢 我是刚开始使用gcc和gdb。
alick 于 2009-10-11 00:18:51发表:
gdb调试的文件是可执行文件,而不是源代码。
用gcc带-g选项编译源码,然后可以用gdb调试。如:
$gcc -g -o sushu sushu.c
$gdb sushu