fortran arrays and gdb



Hi:
I'm trying to use gdb to debug a fortran code and am having trouble
printing array information. If I dynamically allocate a 3d array, for
example:

real :: a(mdx,mdy,mdz)

and I try to use gdb, I get the following messages:

(gdb) print a(1,1,1)
Wrong number of subscripts

(gdb) print a
$14 = (PTR TO -> ( real*8 (0:-1))) 0x99ccf10

So, how do I do this? If gdb can't do it is there a free fortran
debugger that is any better?

Thanks

.



Relevant Pages

  • Re: fortran arrays and gdb
    ... I'm trying to use gdb to debug a fortran code and am having trouble ... printing array information. ... If I dynamically allocate a 3d array, ...
    (comp.lang.fortran)
  • Re: Process for requesting reverting patch?
    ... > current32# which gdb ... right now, but wasn't it Fortran code, instead of C? ... web search. ...
    (freebsd-current)
  • unable to view symbols in gdb
    ... I am debugging a fortran code. ... I have set a breakpoint just after a ...
    (comp.lang.fortran)
  • debugging fortran code with gdb
    ... I am debugging a fortran code in gdb. ... Can anyone tell me how to create a temprary variable inside gdb. ... thnaks in advance ...
    (comp.lang.fortran)