From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24819 invoked by alias); 22 Apr 2003 19:31:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24810 invoked from network); 22 Apr 2003 19:31:54 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 22 Apr 2003 19:31:54 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 1983Ut-0004zc-00; Tue, 22 Apr 2003 14:32:07 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 1983Ud-0006eA-00; Tue, 22 Apr 2003 15:31:51 -0400 Date: Tue, 22 Apr 2003 19:31:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: gdb@sources.redhat.com Subject: Re: long long considered harmful? Message-ID: <20030422193151.GB25488@nevyn.them.org> Mail-Followup-To: Kris Warkentin , gdb@sources.redhat.com References: <076701c308f6$2f017eb0$0202040a@catdog> <20030422174522.GA728@nevyn.them.org> <079701c308fa$3c6d0610$0202040a@catdog> <20030422182151.GA7232@nevyn.them.org> <07ce01c308fe$d6ae2c00$0202040a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07ce01c308fe$d6ae2c00$0202040a@catdog> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-04/txt/msg00257.txt.bz2 On Tue, Apr 22, 2003 at 02:41:51PM -0400, Kris Warkentin wrote: > > > > This is a target entity isn't it? You've got no business using > > > > "double" for a target float. Use the gdb type mechanism instead. > > > > > > Can you point to an example of how this is done? > > > > Check out floatformat_to_doublest. You may not even need it if you > > only pass the data to supply_register... > > Exactly. All we do is throw the bits around to supply register. I'm just > looking for a way to make the structures the right size without being > completely ugly. If you want structures to be a particular size, you have to either construct them using the type machinery or else just treat them as a list of offsets and a size (all ints). There's really nothing else portable. C'mon, I'll introduce you to a 32-bit-char host for fun and see how you like it. > Well, at the moment, the only host we build gdb for is i386 and Sparc > (Neutrino, Solaris and Win32) but conceivably we might want to build a gdb > for Neutrino on ppc or mips or some such. Once again, as far as gdb is > concerned, none of it really matters because this is just data coming over > the wire (or from a system call) and all it needs to know is which offset > into the structure to call supply_register on. Record only the offsets, then. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer