[Bug fortran/34153] New: Unable to debug code compiled with gfortran on MacOSX 10.4.11
j dot wookey at bristol dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Mon Nov 19 16:12:00 GMT 2007
Hi,
I'm having a problem using gdb to debug code compiled with gfortran (v 4.3.0).
The code:
program test
i = 1
C Breakpoint here
end
when compiled with "gfortran -gstabs -o prog prog.f", debugged with "gdb prog"
demonstrates the error.
The commands:
(gdb) break 3
(gdb) run
produces the output:
> Starting program: /private/tmp/prog
> Reading symbols for shared libraries .++ done
>
> Breakpoint 1, main (argc=1, argv=0xbfffe9b8) at ../../../gcc-4.3-20070810/libgfortran/fmain.c:12
> 12 ../../../gcc-4.3-20070810/libgfortran/fmain.c: No such file or directory.
> in ../../../gcc-4.3-20070810/libgfortran/fmain.c
At this point commands to examine symbols fail:
(gdb) display i
No symbol "i" in current context.
The problem is the same on a PowerPC machine also.
--
Summary: Unable to debug code compiled with gfortran on MacOSX
10.4.11
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: j dot wookey at bristol dot ac dot uk
GCC host triplet: i386-apple-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34153
More information about the Gcc-bugs
mailing list