From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20287 invoked by alias); 25 Jul 2005 07:31:35 -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 20277 invoked by uid 22791); 25 Jul 2005 07:31:31 -0000 Received: from ausmtp01.au.ibm.com (HELO ausmtp01.au.ibm.com) (202.81.18.186) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 25 Jul 2005 07:31:31 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp01.au.ibm.com (8.12.10/8.12.10) with ESMTP id j6P7XCZC097204 for ; Mon, 25 Jul 2005 17:33:15 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.250.237]) by sd0208e0.au.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j6P7XGcN157994 for ; Mon, 25 Jul 2005 17:33:18 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11/8.13.3) with ESMTP id j6P7UF0S016839 for ; Mon, 25 Jul 2005 17:30:19 +1000 Received: from [9.181.134.203] ([9.181.134.203]) by d23av04.au.ibm.com (8.12.11/8.12.11) with ESMTP id j6P7U6jv016632; Mon, 25 Jul 2005 17:30:11 +1000 Date: Mon, 25 Jul 2005 07:31:00 -0000 From: Wu Zhou To: kamaraju@gmail.com cc: fortran@gcc.gnu.org, gdb@sources.redhat.com Subject: Re: gfortran - gdb problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-07/txt/msg00228.txt.bz2 > $gdb ./a.out > GNU gdb 6.3-debian > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". > > (gdb) l > 1 ../sysdeps/i386/elf/start.S: No such file or directory. > in ../sysdeps/i386/elf/start.S > (gdb) > > > Normally, 'l' should display the source code. But it is giving some > error. I am using debian sid, kernel 2.6.9-1-686. I tested the same > thing with a helloworld program written in c and gdb works fine there. > > 1) I am wondering whether it is a bug in either gdb or gfortran or > packging of gfortran on Debian or some other thing? 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); > > 2) Could anyone reproduce this? I ever encountered similar problems on PPC platform. Regards - Wu Zhou