[RFC] Detecting and printing 128-bit long double values for PPC

Luis Machado luisgpm@linux.vnet.ibm.com
Mon Apr 30 13:15:00 GMT 2007


> GDB will always read 16 bytes when it uses its built in notion of
> "long double".  But if it gets the type from DWARF info, then it will
> be an eight byte floating point type, and I bet GDB is automatically
> handling it as a double.
> 
> That means that the patch is still incorrect, but the consequences of
> getting this wrong are not the immediately obvious ones.  I don't know
> if saying (long double) in the command line is going to use the type
> from debug info or from the gdbarch; our handling of base types has
> always confused me somewhat.

Isn't the length of the data type supposed to be available from DWARF?
Or this should still be included by the binaries that actually generate
the DWARF info?

Regards,
Luis



More information about the Gdb-patches mailing list