From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10158 invoked by alias); 25 Jul 2005 13:09:50 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10035 invoked by uid 22791); 25 Jul 2005 13:09:43 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 25 Jul 2005 13:09:43 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1Dx2i2-0000YJ-HC; Mon, 25 Jul 2005 09:09:30 -0400 Date: Mon, 25 Jul 2005 13:09:00 -0000 From: Daniel Jacobowitz To: Wu Zhou Cc: kamaraju@gmail.com, fortran@gcc.gnu.org, gdb@sources.redhat.com Subject: Re: gfortran - gdb problem Message-ID: <20050725130929.GA2090@nevyn.them.org> Mail-Followup-To: Wu Zhou , kamaraju@gmail.com, fortran@gcc.gnu.org, gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00229.txt.bz2 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