long_long.exp testsuite failure...
Andrew Cagney
ac131313@cygnus.com
Tue Oct 12 19:15:00 GMT 1999
Scott Bambrough wrote:
>
> Hi,
>
> The following is a fragment from testsuite/gdb.base/long_long.exp,
> modified to correct a problem on ARM Linux. It doesn't work however and
> I don't understand why.
>
> The test assigns an octal value to a long long variable oct then
> attempts to print it as floating point value.
>
> long long oct = 01234567123456701234567LL;
>
> The problem is the ARM floating point storage format is odd. It is
> little endian, with the words swapped to be big endian. As an example,
> the above number in hex is 0xa72ee53977053977. If in GDB, I swap the
> words, setting oct = 0x77053977a72ee539 and then p/f oct, I get the
> expected value -5.9822653797615723e-120. Without the swap, I get
> 2.1386676354387559e+265.
Just BTW, the problem is more common then you think :-) TI's c80 would
have similar problems.
Andrew
More information about the Gdb
mailing list