Article View: gnu.gdb.bug
Article #1190Re: Dose GDB support Fortran Cods?
From: Wu Zhou
Date: Mon, 08 Aug 2005 04:49
Date: Mon, 08 Aug 2005 04:49
33 lines
2964 bytes
2964 bytes
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
Technical Details
Message-ID:
<mailman.3740.1124043600.20277.bug-gdb@gnu.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<Pine.LNX.4.63.0508080953070.4895@linux.site> <3cba0545c8e7f2081629d88f12a85a9e@physics.uc.edu>Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,f403bb1885345f2,start X-Google-Attributes: gidf5053,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail From: Wu Zhou <woodzltc@cn.ibm.com> Newsgroups: gnu.gdb.bug Subject: Re: Dose GDB support Fortran Cods? Date: Mon, 8 Aug 2005 12:49:46 +0800 (CST) Lines: 35 Approved: bug-gdb@gnu.org Message-ID: <mailman.3740.1124043600.20277.bug-gdb@gnu.org> References: <Pine.LNX.4.63.0508080953070.4895@linux.site> <3cba0545c8e7f2081629d88f12a85a9e@physics.uc.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.Stanford.EDU 1124043394 18444 199.232.76.165 (14 Aug 2005 18:16:34 GMT) X-Complaints-To: news@news.stanford.edu Cc: gdb@sources.redhat.com, dinght@iopp.ccnu.edu.cn, fortran@gcc.gnu.org, bug-gdb@gnu.org To: Andrew Pinski <pinskia@physics.uc.edu> Envelope-to: bug-gdb@gnu.org X-X-Sender: woodzltc@linux.site In-Reply-To: <3cba0545c8e7f2081629d88f12a85a9e@physics.uc.edu> X-Mailman-Approved-At: Sun, 14 Aug 2005 14:19:57 -0400 X-BeenThere: bug-gdb@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/bug-gdb> List-Post: <mailto:bug-gdb@gnu.org> List-Help: <mailto:bug-gdb-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=subscribe>