> > On Wed, 21 Apr 2004, Peter W. Draper wrote:
>
> yes, gdb has gone through some painful times, I suspect you
> must be running an older version than me (5.3), or one
> without Fortran support compiled in correctly.
Peter,
Yes - it occured it on my desktop system which is *still* Redhat 7.1
> > In my example above "x/6f test" will print the 6 real values just
> > fine.
>
> That's a good trick (nice the way you can switch trivially between
> types).
Used to be very useful with Fortran CHARACTER variables. If gdb knows the
length it prints each byte separately as a character - for CHARACTER*(*)
arguments it thinks the length is 1. In both cases x/s will print as a
string. There was, however, some overrun until it hits the next zero byte!
Brian
|