This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patches to improve Fortran support in gdb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]