[RFA] ARM BE8 support

Daniel Jacobowitz drow@false.org
Mon Aug 11 17:01:00 GMT 2008


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



More information about the Gdb-patches mailing list