This is the mail archive of the gdb-patches@sourceware.org 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: [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


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