* Endianness and remote debugging
@ 2003-04-17 14:42 Jan Hoogerbrugge
2003-04-21 14:05 ` Andrew Cagney
0 siblings, 1 reply; 4+ messages in thread
From: Jan Hoogerbrugge @ 2003-04-17 14:42 UTC (permalink / raw)
To: gdb
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?
(I am using gdb 5.3)
Thanks,
Jan
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Endianness and remote debugging
2003-04-17 14:42 Endianness and remote debugging Jan Hoogerbrugge
@ 2003-04-21 14:05 ` Andrew Cagney
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2003-04-21 14:05 UTC (permalink / raw)
To: Jan Hoogerbrugge; +Cc: gdb
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Endianness and remote debugging
2003-04-22 10:51 Jan Hoogerbrugge
@ 2003-04-22 17:06 ` Andrew Cagney
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2003-04-22 17:06 UTC (permalink / raw)
To: Jan Hoogerbrugge; +Cc: gdb
> The problem has been solved after that I discovered that register values are sent in target order while other values are sent in big endian order.
>
> BWT, I was refering to the 'qPmodethreadid' query of section D.4.
Ah, yes, that ID is in network byte order.
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Endianness and remote debugging
@ 2003-04-22 10:51 Jan Hoogerbrugge
2003-04-22 17:06 ` Andrew Cagney
0 siblings, 1 reply; 4+ messages in thread
From: Jan Hoogerbrugge @ 2003-04-22 10:51 UTC (permalink / raw)
To: ac131313; +Cc: gdb
>>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.
The problem has been solved after that I discovered that register values are
sent in target order while other values are sent in big endian order.
BWT, I was refering to the 'qPmodethreadid' query of section D.4.
Thanks,
Jan
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-22 17:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 14:42 Endianness and remote debugging Jan Hoogerbrugge
2003-04-21 14:05 ` Andrew Cagney
2003-04-22 10:51 Jan Hoogerbrugge
2003-04-22 17:06 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).