This is the mail archive of the
mailing list for the GDB project.
Re: Endianness and remote debugging
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Jan Hoogerbrugge <hoogerbrugge at hotmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 17 Apr 2003 16:06:53 -0400
- Subject: Re: Endianness and remote debugging
- References: <Law9-F95a1kg3AmsfGd000015ce@hotmail.com>
My target runs in little endian and my host in big endian. On the line between the stub and gdb I see that data is communicated in little endian. That seems to work fine. However, queries dealing with thread stuff seem to assume big endian. For example, I see the mode field of the P query in big endian. Is this a bug or am I missing something?
You mean the P (write register) packet? According to the documentation
(http://sources.redhat.com/gdb/, follow documentation), the register
value is in target byte order.