This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Re: [RFA]: fix ia64 long double support


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


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