This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: long_long.exp testsuite failure...


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]