This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: fix ia64 long double support
- From: Kevin Buettner <kevinb at redhat dot com>
- To: "J. Johnston" <jjohnstn at redhat dot com>, gdb-patches at sources dot redhat dot com
- Cc: Kevin Buettner <kevinb at redhat dot com>
- Date: Thu, 4 Dec 2003 18:19:08 -0700
- Subject: Re: [RFA]: fix ia64 long double support
- References: <3FCFB735.80204@redhat.com>
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