Message-Id: <200004101801.OAA29968@delorie.com> From: "Dieter Buerssner" To: djgpp-workers AT delorie DOT com Date: Mon, 10 Apr 2000 21:03:16 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: One more GDB for DJGPP little oddity References: <200004101325 DOT JAA17297 AT delorie DOT com> In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12b) Reply-To: djgpp-workers AT delorie DOT com 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