gdb bug in Fortran langauge mode
Jeffrey A Law
law@cygnus.com
Wed Jun 30 15:43:00 GMT 1999
In message < Pine.SGI.3.96.990615233907.730A-100000@maxwell.la.asu.edu >you wri
te:
> it on an RS6K, using the XLF compiler. 'objdump --syms badsym.o'
> produces:
One could just as easily claim the XLF compiler is backwards.
> Craig notes that the 'whatis' command of gdb produces the correct
> result. This is because gdb's 'whatis' command is buggy-- it prints
> the array elements in the wrong order!
Not necessarily.
> To resolve the problem, I ran gdb on a program compiled by IBM's XLF
> compiler. The array printing works fine and the 'whatis' was backwards.
> On an i86 with g77, the array printing doesn't work and 'whatis' does.
>
> The answer is that gcc/g77 is emitting the debug info for array elements
> in the wrong order. The reason the 'whatis' works on a g77 program is
> because things are reversed twice.
No, if you read the earlier messages, I think you'll find that folks here
think that that the order is correct.
jeff
More information about the Gcc
mailing list