public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34153]  New: Unable to debug code compiled with gfortran on MacOSX 10.4.11
@ 2007-11-19 16:12 j dot wookey at bristol dot ac dot uk
  2007-11-20 11:34 ` [Bug fortran/34153] Debugging: Cannot set breakpoint in comment lines or "END PROGRAM" burnus at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: j dot wookey at bristol dot ac dot uk @ 2007-11-19 16:12 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-13 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-19 16:12 [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
2007-11-20 11:34 ` [Bug fortran/34153] Debugging: Cannot set breakpoint in comment lines or "END PROGRAM" burnus at gcc dot gnu dot org
2007-11-20 13:10 ` fxcoudert at gcc dot gnu dot org
2009-05-12 21:10 ` burnus at gcc dot gnu dot org
2009-05-13 14:53 ` burnus at gcc dot gnu dot org
2009-05-13 16:15 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).