This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Detecting and printing 128-bit long double values for PPC
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: luisgpm at linux dot vnet dot ibm dot com
- Cc: drow at false dot org (Daniel Jacobowitz), gdb-patches at sourceware dot org (gdb-patches ml)
- Date: Mon, 30 Apr 2007 14:27:43 +0200 (CEST)
- Subject: Re: [RFC] Detecting and printing 128-bit long double values for PPC
Luis Machado wrote:
> Isn't GDB currently able to detect the type length in runtime in order
> to correctly print those values?
No, it isn't. How should GDB recognize the difference?
> With this modification i've noticed that GDB cuts the extra precision
> bytes for a binary built with -mlong-double-64, while printing the value
> with the total avaiable precision when it's built with
> -mlong-double-128.
That's interesting. GDB will always read in 16 bytes after your
modification -- maybe the binary you're building with -mlong-double-64
happens to have zeros after the "long double" variable your're reading?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com