From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3876 invoked by alias); 30 Jul 2008 18:49:27 -0000 Received: (qmail 3865 invoked by uid 22791); 30 Jul 2008 18:49:26 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jul 2008 18:49:06 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A4D4898243; Wed, 30 Jul 2008 18:49:04 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 385F898100; Wed, 30 Jul 2008 18:49:04 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KOGjO-0006iL-Rk; Wed, 30 Jul 2008 14:49:02 -0400 Date: Wed, 30 Jul 2008 18:49:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Bart Veer , gdb-patches@sourceware.org Subject: Re: minor doc fix Message-ID: <20080730184902.GA25746@caradoc.them.org> Mail-Followup-To: Eli Zaretskii , Bart Veer , gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00570.txt.bz2 On Wed, Jul 30, 2008 at 09:34:07PM +0300, Eli Zaretskii wrote: > > Date: Wed, 30 Jul 2008 19:17:02 +0100 > > From: Bart Veer > > CC: gdb-patches@sourceware.org > > > > The text is not talking about host-side or target-side data > > structures. It is describing a protocol, what gets transferred between > > host and target for a gettimeofday request, which happens to be 12 > > bytes and not 8. > > Sorry, you lost me. Perhaps I'm confused, but `long' takes 8 bytes > only on 64-bit Unix machines. Otherwise it's 4 bytes. What am I > missing? The answer's even in the manual! :-) In Protocol-specific Representation of Datatypes, see Integral Datatypes: `long' and `unsigned long' are implemented as 64 bit types. Then in struct timeval: struct timeval { time_t tv_sec; /* second */ long tv_usec; /* microsecond */ }; The integral datatypes conform to the definitions given in the appropriate section (see *note Integral Datatypes::, for details) so this structure is of size 8 bytes. -- Daniel Jacobowitz CodeSourcery