Mail Archives: djgpp-workers/2000/04/10/14:14:50
On 10 Apr 00, at 16:49, Hans-Bernhard Broeker wrote:
> But how is gdb supposed to know that? sizeof(long double) *is* 12, after
> all, and the p /x commands asks for display as single bytes. In that
> special case, I fail to see any error in displaying the two 'fill' bytes,
> additionally.
Gdb knows already, that floating point registers are 10 bytes. This
can be seen by info float, that displays the 10 bytes, while p /x
$st0 displays 12 bytes. p $st0 really asks to print the floating
point register, and not to dump the memory, where a long double is
stored.
But, actually, I don't care to much about this. Info float is more
useful anyway (but needs more screen space). Really useful would be,
to be able to use p floatvar, but in general, one can't :-(
--
Regards, Dieter
- Raw text -