From: Arjan van Dijk <a.vandijk@phys.uu.nl>
To: gdb@sources.redhat.com
Subject: Who uses gdb + fortran?
Date: Wed, 11 Sep 2002 06:10:00 -0000 [thread overview]
Message-ID: <v03130305b9a4eff62c6c@[131.211.32.140]> (raw)
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
next reply other threads:[~2002-09-11 13:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-11 6:10 Arjan van Dijk [this message]
2002-09-11 6:52 ` Petr Sorfa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='v03130305b9a4eff62c6c@[131.211.32.140]' \
--to=a.vandijk@phys.uu.nl \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox