From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29433 invoked by alias); 8 Aug 2005 05:29:17 -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 29426 invoked by uid 22791); 8 Aug 2005 05:29:13 -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, 08 Aug 2005 05:29:13 +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 j785VZa1121036 for ; Mon, 8 Aug 2005 15:31:35 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0208e0.au.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j785IkXu155598 for ; Mon, 8 Aug 2005 15:31:48 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11/8.13.3) with ESMTP id j7858mZF030135 for ; Mon, 8 Aug 2005 15:08:49 +1000 Received: from linux.cn.ibm.com (linux.cn.ibm.com [9.181.134.130]) by d23av02.au.ibm.com (8.12.11/8.12.11) with ESMTP id j7858kUT030034; Mon, 8 Aug 2005 15:08:46 +1000 Date: Mon, 08 Aug 2005 05:29:00 -0000 From: Wu Zhou X-X-Sender: woodzltc@linux.site To: Andrew Pinski cc: dinght@iopp.ccnu.edu.cn, fortran@gcc.gnu.org, bug-gdb@gnu.org, gdb@sources.redhat.com Subject: Re: Dose GDB support Fortran Cods? In-Reply-To: <3cba0545c8e7f2081629d88f12a85a9e@physics.uc.edu> Message-ID: References: <3cba0545c8e7f2081629d88f12a85a9e@physics.uc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-08/txt/msg00036.txt.bz2 On Sun, 7 Aug 2005, Andrew Pinski wrote: > > On Aug 7, 2005, at 10:06 PM, Wu Zhou wrote: > > > > > > command line,I use "gdb test",then I enter "list",but screen displays: > > > > > > 1 ../sysdeps/i386/elf/start.S: No such file or directory. > > > in ../sysdeps/i386/elf/start.S > > > > This is a bug in GDB, we ever discussed a similar problem in: > > http://sources.redhat.com/ml/gdb/2005-07/msg00228.html. > > > > BTW: there will be more chance you gdb/fortran problems get answered if > > you ask in gdb@sources.redhat.com or fortran@gcc.gnu.org. It seems that > > few people read bug-gdb@. :-) > > Actually it is really a bug in GCC for not emitting DW_AT_entry_point > (dwarf-2) or N_MAIN (stabs), see PR 23280 which I just filed. (I thought > there was already a bug filed but I could only find one for GCJ/java). OK. I am not that sure about how gdb handle that. Daniel ever told me that we can fix this in gdb's side by setting the main function to "MAIN__" for Fortran programs. It seems to me that emitting DW_AT_entry_point in gcc's side is a better idea. But I am not sure whether gdb could handle it. When gcc do emit DW_AT_entry_point, I will verify that. I had added myself into the cc-list. Regards - Wu Zhou