From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20162 invoked by alias); 1 Jul 2008 02:14:56 -0000 Received: (qmail 20138 invoked by uid 22791); 1 Jul 2008 02:14:54 -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; Tue, 01 Jul 2008 02:14:35 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id ECCB698413; Tue, 1 Jul 2008 02:14:32 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 9AE7A9840B; Tue, 1 Jul 2008 02:14:32 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KDVO3-00045v-WE; Mon, 30 Jun 2008 22:14:32 -0400 Date: Tue, 01 Jul 2008 02:14:00 -0000 From: Daniel Jacobowitz To: Ananth Sowda Cc: gdb@sourceware.org Subject: Re: remote protocol target byte ordering question Message-ID: <20080701021431.GA15520@caradoc.them.org> Mail-Followup-To: Ananth Sowda , gdb@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-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00001.txt.bz2 On Mon, Jun 30, 2008 at 06:42:09PM -0700, Ananth Sowda wrote: > I know that GDB remote protocol uses target byte ordering for > multi-bytes values as in register set content, memory address or > values to be written to the target memory. I don't see where in the > GDB code this swapping from host to target byte order is done. Can > someone point to the right segment of the code? Thanks for any > pointers. Everywhere. The gdb convention is that all buffers are in target byte order. For instance, follow extract_unsigned_integer. -- Daniel Jacobowitz CodeSourcery