From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 561 invoked by alias); 21 Jun 2005 14:32:47 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 552 invoked by uid 22791); 21 Jun 2005 14:32:44 -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; Tue, 21 Jun 2005 14:32:44 +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 j5LEZ8eU131642 for ; Wed, 22 Jun 2005 00:35:09 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j5LEZWqS130078 for ; Wed, 22 Jun 2005 00:35:33 +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 j5LEWc5O006508 for ; Wed, 22 Jun 2005 00:32:38 +1000 Received: from wks190384wss.cn.ibm.com (wks190384wss.cn.ibm.com [9.181.134.93]) by d23av02.au.ibm.com (8.12.11/8.12.11) with ESMTP id j5LEWZNO006464; Wed, 22 Jun 2005 00:32:37 +1000 Date: Tue, 21 Jun 2005 14:32:00 -0000 From: Wu Zhou To: Eli Zaretskii cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Add code to support evaluating Fortran exponentiation expression In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2005-06/txt/msg00334.txt.bz2 On Mon, 20 Jun 2005, Eli Zaretskii wrote: > By all means, please add anything you think might be of use to GDB > users who debug Fortran programs. Eli, It might be desirable to add the following text: GDB support Fortran language, but mainly support output from the GNU Fortran compiler(maybe more specifically GNU F77 compiler here?). It also has the following limitation: 1. You need to use "break MAIN__" to make the Fortran program to stop at the begining of the execution. To set breakpoint at a subroutine or function named "sub", you need to add a trailing underscore, to say "break sub_". 2. GDB can't handle the evaluation of exponentiation expression yet. 3. Current GDB can't handle the evaluation of substring expression. (There are some code intended to handle this, but it doesn't work with g77-3.2.3, g77-3.3.3 and g77-3.4.3. I will code a testcase to show this later. Not sure how to fix this yet.) 4. GDB can't handle the evaluation of Fortran intrinsic functions, such as "mod", "abs" and so on. 5. GDB can't handle some Fortran-90 or Fortran-95 extension, such as the self-defined data type, such as the array addition operation, array substraction operation... Maybe there are still others. There isn't much compilable Fortran testcases in current testsuite. So it is hard to say what works and what not. BTW, I am thinking of doing something to enhance GDB's support of Fortran language (not only f77, but also f95 or some other fortran compiler). Do you have any suggestion on this? Thanks! Cheers - Wu Zhou