This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] ARM BE8 support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]