Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Who uses gdb + fortran?
@ 2002-09-11  6:10 Arjan van Dijk
  2002-09-11  6:52 ` Petr Sorfa
  0 siblings, 1 reply; 2+ messages in thread
From: Arjan van Dijk @ 2002-09-11  6:10 UTC (permalink / raw)
  To: gdb

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-11 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-11  6:10 Who uses gdb + fortran? Arjan van Dijk
2002-09-11  6:52 ` Petr Sorfa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox