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,  5:37pm, J. Johnston wrote:

> 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).

So what happens when we try to print a long double in a register?

> Anyway, this simple change fixes it so long doubles print correctly.
> 
> Ok to commit?

Sure.  I'm guessing that we still won't always print long doubles correctly,
but it looks like this gets us closer...

Kevin


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