红联Linux门户
Linux帮助

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

发布时间:2007-05-29 18:51:23来源:红联作者:spring627
我的编译文件是

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


前两天,我调试过一次,还好好的,昨天不知道为什么就找不到了。很郁闷啊
文章评论

共有 1 条评论

  1. spring627 于 2007-05-29 18:52:14发表:

    用不用把gdb卸了再重装呢?