www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/04/10/14:14:50

Message-Id: <200004101801.OAA29968@delorie.com>
From: "Dieter Buerssner" <buers AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Date: Mon, 10 Apr 2000 21:03:16 +0200
MIME-Version: 1.0
Subject: Re: One more GDB for DJGPP little oddity
References: <200004101325 DOT JAA17297 AT delorie DOT com>
In-reply-to: <Pine.LNX.4.10.10004101647460.10326-100000@acp3bf>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019