From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9134 invoked by alias); 28 May 2002 15:59:16 -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 9104 invoked from network); 28 May 2002 15:59:11 -0000 Received: from unknown (HELO branoic) (12.234.96.134) by sources.redhat.com with SMTP; 28 May 2002 15:59:11 -0000 Received: from drow by branoic with local (Exim 3.35 #1 (Debian)) id 17CjMr-0003Cj-00; Tue, 28 May 2002 11:58:37 -0400 Date: Tue, 28 May 2002 08:59:00 -0000 From: Daniel Jacobowitz To: "G. Helffrich" Cc: gdb-patches@sources.redhat.com Subject: Re: Patches to improve Fortran support in gdb Message-ID: <20020528155836.GA12301@branoic.them.org> Mail-Followup-To: "G. Helffrich" , gdb-patches@sources.redhat.com References: <200205281050.LAA00783@xterm1.gly.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205281050.LAA00783@xterm1.gly.bris.ac.uk> User-Agent: Mutt/1.3.28i X-SW-Source: 2002-05/txt/msg00969.txt.bz2 On Tue, May 28, 2002 at 11:50:38AM +0100, G. Helffrich wrote: > > Dear GDBers - > > I'm submitting these patches to 5.1.1 gdb to improve support for > debugging of Fortran programs. The patches were initially developed > on 4.16 gdb, and I ported them to 5.1.1. > > The patches fix bugs that are illustrated in the comments of the > following Fortran program (compiled under g77 version 2.95.2 19991024 (release) (from FSF-g77 version 0.5.25 19991024 (release))). > > C Test program for gdb debugger. This illustrates gdb problems in Fortran > C support in the following areas: > C 1 - complex variable printing: > C in gdb print cc ; print c > C (garbage printed in gdb-4.16, gdb-5.1.1) I don't have anything to say about the rest of these patches (except that it would probably be better if you could separate them and submit them one at a time); but I definitely object to this one, for the same reasons we had an argument about it on the GDB list. The current code is correct for several compiler versions. G77 should be changed to use 'R' unstead of the ambiguous 'r' symbol type. > * gdb.1: update documentation to mention debugging Fortran language. Does gdb.texinfo also need updating? > Here are the patches themselves. FYI, I am already an FSF-registered > contributor to g77. FYI, I believe you'll need a separate assignment on file for GDB. > Index: gdb-5.1.1/src/gdb/gdb.1 > =================================================================== > RCS file: /usr/src/local/cvsroot/gdb-5.1.1/src/gdb/gdb.1,v > retrieving revision 1.1.1.1 > retrieving revision 1.2 > diff -c -r1.1.1.1 -r1.2 > *** gdb-5.1.1/src/gdb/gdb.1 2002/02/02 11:34:20 1.1.1.1 > --- gdb-5.1.1/src/gdb/gdb.1 2002/05/22 12:25:15 1.2 > *************** > *** 1,7 **** > .\" Copyright 1991, 1999 Free Software Foundation, Inc. > .\" See section COPYING for conditions for redistribution > ! .\" $Id: gdb.1,v 1.1.1.1 2002/02/02 11:34:20 george Exp $ > ! .TH gdb 1 "4nov1991" "GNU Tools" "GNU Tools" > .SH NAME > gdb \- The GNU Debugger > .SH SYNOPSIS > --- 1,7 ---- > .\" Copyright 1991, 1999 Free Software Foundation, Inc. > .\" See section COPYING for conditions for redistribution > ! .\" $Id: gdb.1,v 1.2 2002/05/22 12:25:15 george Exp $ > ! .TH gdb 1 "22may2002" "GNU Tools" "GNU Tools" > .SH NAME > gdb \- The GNU Debugger > .SH SYNOPSIS > *************** > *** 70,77 **** > effects of one bug and go on to learn about another. > .PP > > ! You can use GDB to debug programs written in C, C++, and Modula-2. > ! Fortran support will be added when a GNU Fortran compiler is ready. > > GDB is invoked with the shell command \c > .B gdb\c > --- 70,76 ---- > effects of one bug and go on to learn about another. > .PP > > ! You can use GDB to debug programs written in C, C++, Fortran and Modula-2. > > GDB is invoked with the shell command \c > .B gdb\c Heh. Quite outdated... -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer