This is the mail archive of the gdb@sources.redhat.com 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: Endianness and remote debugging


Hi,

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.


Andrew



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