endianness handling inside gdb

Paul_Koning@Dell.com Paul_Koning@Dell.com
Thu Oct 22 19:23:00 GMT 2015


> On Oct 22, 2015, at 3:01 PM, Ashutosh <ashutoshpal2006@gmail.com> wrote:
> 
> Hi Experts,
> 
> Does gdb handles the case where endianness of the ELF file is
> different from the endianness of the target processor? 

That doesn't make any sense.  The executable file (I assume that's what you're talking about) is built for the byte order being used.  A processor can only execute code that matches the byte order it's using.  Either because that's the way the processor is configured, or because it has selectable order and this particular process has selected that order.  But a mismatch between processor and executable file byte order doesn't make any more sense than, say, trying to debug on an x86 processor using a MIPS binary.

	paul



More information about the Gdb mailing list