From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4717 invoked by alias); 1 Jul 2008 01:42:34 -0000 Received: (qmail 4697 invoked by uid 22791); 1 Jul 2008 01:42:33 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.240) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 01 Jul 2008 01:42:15 +0000 Received: by rv-out-0708.google.com with SMTP id b17so1428536rvf.48 for ; Mon, 30 Jun 2008 18:42:14 -0700 (PDT) Received: by 10.141.75.17 with SMTP id c17mr3088073rvl.212.1214876529852; Mon, 30 Jun 2008 18:42:09 -0700 (PDT) Received: by 10.141.50.10 with HTTP; Mon, 30 Jun 2008 18:42:09 -0700 (PDT) Message-ID: Date: Tue, 01 Jul 2008 01:42:00 -0000 From: "Ananth Sowda" To: gdb@sourceware.org Subject: remote protocol target byte ordering question MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/msg00000.txt.bz2 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.