This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gfortran - gdb problem
- From: Daniel Jacobowitz <drow at false dot org>
- To: Wu Zhou <woodzltc at cn dot ibm dot com>
- Cc: kamaraju at gmail dot com, fortran at gcc dot gnu dot org, gdb at sources dot redhat dot com
- Date: Mon, 25 Jul 2005 09:09:30 -0400
- Subject: Re: gfortran - gdb problem
- References: <Pine.LNX.4.63.0507221735500.17445@wks190384wss.cn.ibm.com>
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