gfortran - gdb problem
Daniel Jacobowitz
drow@false.org
Mon Jul 25 13:09:00 GMT 2005
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
More information about the Gdb
mailing list