From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16409 invoked by alias); 11 Sep 2002 13:10:31 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16402 invoked from network); 11 Sep 2002 13:10:30 -0000 Received: from unknown (HELO max.phys.uu.nl) (131.211.32.73) by sources.redhat.com with SMTP; 11 Sep 2002 13:10:30 -0000 Received: from [131.211.32.140] (hst32140.phys.uu.nl [131.211.32.140]) by max.phys.uu.nl (8.9.3/8.9.3/hjm) with ESMTP id PAA111191 for ; Wed, 11 Sep 2002 15:10:29 +0200 (CEST) X-Sender: vndijk@mail.phys.uu.nl Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 11 Sep 2002 06:10:00 -0000 To: gdb@sources.redhat.com From: Arjan van Dijk Subject: Who uses gdb + fortran? X-SW-Source: 2002-09/txt/msg00094.txt.bz2 Hi, Last week I had problems running gdb on a fortran program. I'm still looking for someone who uses the combination of gdb + fortran. Problem: how do I get the value of a variable? According to the gdb manual the command "print MAIN__::i" should give the value of variable "i" in the main program. The result of this command is just "A parse error in expression, near ':i'. Only when I use the "display" command instead of "print", and set the display BEFORE I say "run" in gdb, then I get the values. HELP!!! Arjan Arjan van Dijk Institute for Marine and Atmospheric Research Utrecht Faculty of Physics and Astronomy Utrecht University Princetonplein 5 NL - 3584 CC Utrecht The Netherlands phone: +31 30 2532815 fax: +31 30 2543163 e-mail: mailto:A.vanDijk@phys.uu.nl homepage: http://www.phys.uu.nl/~vndijk