[RFA]: fix ia64 long double support

J. Johnston jjohnstn@redhat.com
Sat Dec 6 00:18:00 GMT 2003


Kevin Buettner wrote:
> On Dec 4,  8:54pm, J. Johnston wrote:
> 
> 
>>Richard Henderson wrote:
>>
>>>On Thu, Dec 04, 2003 at 05:37:41PM -0500, J. Johnston wrote:
>>>
>>>
>>>>	* 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.
>>>
>>>This is os specific.  HPUX uses ieee quad format.
>>>
>>>r~
>>>
>>
>>The Intel doc doesn't differentiate for OS.  Kevin, is this something we should 
>>account for by calling a function in a native tdep file?
> 
> 
> Hmm.  I suppose we could introduce an ia64-linux-tdep.c (with the
> appropriate osabi machinery) to set this for linux.  If it was ever
> made to work with hpux, there'd be an ia64-hpux-tdep.c file which
> would set it to IEEE quad format.
> 
> If you feel up to this, go ahead.  Otherwise, just add a comment
> to ia64-tdep.c which indicates that the setting is Linux specific
> and that other OSes may use other types.  The comment should also
> indicate the correct way that it should be handled (via an OS-specific
> tdep.c file.)
> 
> Kevin
>

I have added a comment and checked the code in.

Thanks,

-- Jeff J.




More information about the Gdb-patches mailing list