* Data order in GDB commands
@ 2008-01-23 14:05 Guillaume MENANT
2008-01-23 14:11 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Guillaume MENANT @ 2008-01-23 14:05 UTC (permalink / raw)
To: gdb
I'm wondering what is the order of the data in the GDB commands like (G, g,
m, M...)
If i receive G0022f600...
What should I write in my register ? 0x0022F600 or 0x00F62200 or something
else ?
Thanks a lot for your answers :)
--
View this message in context: http://www.nabble.com/Data-order-in-GDB-commands-tp15042357p15042357.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Data order in GDB commands
2008-01-23 14:05 Data order in GDB commands Guillaume MENANT
@ 2008-01-23 14:11 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-01-23 14:11 UTC (permalink / raw)
To: Guillaume MENANT; +Cc: gdb
On Wed, Jan 23, 2008 at 06:04:45AM -0800, Guillaume MENANT wrote:
>
> I'm wondering what is the order of the data in the GDB commands like (G, g,
> m, M...)
>
> If i receive G0022f600...
>
> What should I write in my register ? 0x0022F600 or 0x00F62200 or something
> else ?
You should be able to figure this out by experimentation, very
easily. Set a register to a value and see what packet GDB sends.
It's target byte order.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-23 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-23 14:05 Data order in GDB commands Guillaume MENANT
2008-01-23 14:11 ` Daniel Jacobowitz
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).