logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Patches to improve Fortran support in gdb: msg#00973

gdb.patches

Subject: 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



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo