[问题]gdb不能调试g77编译的程序

系统错误报告和讨论
回复
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
送出感谢: 0
接收感谢: 2 次
联系:

[问题]gdb不能调试g77编译的程序

#1

帖子 dbzhang800 » 2006-05-06 11:42

我不知道这是不是一个bug

gdb 和g77都是通过 apt-get 安装的

gdb调试gcc、g++编译的程序正常
但不能调试g77 编译的程序(应该包含调试信息了,加-g选项后,a.out的个头变大)

代码: 全选

dbzhang@xjtu-dbzhang:~/work/New curv$ g77 -g tempp1.f
dbzhang@xjtu-dbzhang:~/work/New curv$ gdb a.out
GNU gdb 6.3-debian
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 "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) l
1       ../sysdeps/i386/elf/start.S: 没有那个文件或目录.
        in ../sysdeps/i386/elf/start.S
(gdb)

回复

回到 “Ubuntu错误报告”