This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] ARM BE8 support
- From: Daniel Jacobowitz <drow at false dot org>
- To: Stan Shebs <stan at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 11 Aug 2008 13:00:15 -0400
- Subject: Re: [RFA] ARM BE8 support
- References: <48971BD1.5020907@codesourcery.com>
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