This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gfortran - gdb problem


On Fri, Jul 22, 2005 at 05:43:51PM +0800, Wu Zhou wrote:
> > (gdb) l
> > 1       ../sysdeps/i386/elf/start.S: No such file or directory.
> >         in ../sysdeps/i386/elf/start.S

This happens if you have debugging information for start.S, but not for
main.

> Maybe it is a packaging problem.  On my Fedora Core 4, it shows the 
> following text:
> 
> (gdb) l
> 5          We call it from the main() function in this file.  */
> 6       void MAIN__ (void);
> 7
> 8       /* Main procedure for fortran programs.  All we do is set up the environment
> 9          for the Fortran program.  */
> 10      int
> 11      main (int argc, char *argv[])
> 12      {
> 13        /* Set up the runtime environment.  */
> 14        set_args (argc, argv);

This happens if you have debugging information for libfortran.

Really, GDB ought to know that the main function in a Fortran program
is named MAIN__ and set that to the default location.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]