From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29671 invoked by alias); 11 Aug 2008 17:01:10 -0000 Received: (qmail 29663 invoked by uid 22791); 11 Aug 2008 17:01:09 -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; Mon, 11 Aug 2008 17:00:19 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 0F33B983B4; Mon, 11 Aug 2008 17:00:17 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D79CD98215; Mon, 11 Aug 2008 17:00:16 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KSakh-0007hX-Ml; Mon, 11 Aug 2008 13:00:15 -0400 Date: Mon, 11 Aug 2008 17:01:00 -0000 From: Daniel Jacobowitz To: Stan Shebs Cc: gdb-patches@sourceware.org Subject: Re: [RFA] ARM BE8 support Message-ID: <20080811170015.GA29587@caradoc.them.org> Mail-Followup-To: Stan Shebs , gdb-patches@sourceware.org References: <48971BD1.5020907@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48971BD1.5020907@codesourcery.com> 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-08/txt/msg00300.txt.bz2 On Mon, Aug 04, 2008 at 08:10:09AM -0700, Stan Shebs wrote: > ARM's BE8 format introduces yet another amusing variation on endianness, > in which the data is big-endian while the code is little-endian. The bits > for binutils went in a while ago, this patch extends GDB. In theory, we > should change functions like read_memory_unsigned_integer to have forms > for both code and data; in lieu of such a sweeping change for what is > rather a narrow use, I introduced macros to swap instruction bytes after > reading. Fortunately, GDB doesn't often need to examine instructions! This > was tested by passing --be8 to the linker and running under a hacked qemu > simulator, no hardware being available yet. FWIW, this looks good to me. -- Daniel Jacobowitz CodeSourcery