首 页文章中心

Linux学习网

您的位置Linux学习网 > Linux程序开发 > 文章内容

gdb中加-g了,还是找不到执行文件

作者:佚名  来源:不详  发布时间:2007-5-31 8:10:00
我的编译文件是

mpif77 -g mdrdipord.f -c
mpif77 -g libmd.f -c
mpif77 -g dceign.f -c
mpif77 -g mdrdipord.o libmd.o dceign.o -o mdord.exe

明明加 -g 了,为什么还是找不到呢?具体操作如下:

[h@console ~]$ ./mdord.exe out.out
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
mdord.exe 000000000041E998 Unknown Unknown Unknown
mdord.exe 0000000000405C6A Unknown Unknown Unknown
mdord.exe 0000000000403074 Unknown Unknown Unknown
mdord.exe 000000000040302A Unknown Unknown Unknown
libc.so.6 000000378851C4BB Unknown Unknown Unknown
mdord.exe 0000000000402F6A Unknown Unknown Unknown

[h@console ~]$ gdb
GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
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 "x86_64-redhat-linux-gnu".
(gdb) run ./mdord.exe out.out
Starting program: ./mdord.exe out.out
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) q


前两天,我调试过一次,还好好的,昨天不知道为什么就找不到了。很郁闷啊
收藏本页到: 365Key | del.icio.us | | 添加到雅虎收藏+
  • 上一篇:arm-elf与arm-linux的区别
  • 下一篇:Linux+C book
  • 网站帮助 - 广告合作 - 网站地图