[RFA]: fix ia64 long double support

J. Johnston jjohnstn@redhat.com
Thu Dec 4 22:37:00 GMT 2003


Fix to a couple of problems.  First of all, we aren't setting up a long double 
format for the architecture so it defaults to double when you try and print a 
long double value via gdb.

Although the ia64 has a special long double format it specifies, this format is 
only valid for register values.  Values in memory use the x86 extended float 
format which is 80 bits.  Register long doubles are 82 bits (2 more bits of 
exponent).

Anyway, this simple change fixes it so long doubles print correctly.

Ok to commit?

-- Jeff J.

2003-12-04  Jeff Johnston  <jjohnstn@redhat.com>

	* ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
	format to be the i387 extended float format which is used for
	long double's in memory.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ia64-long-double.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20031204/a873de7a/attachment.ksh>


More information about the Gdb-patches mailing list