This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Data order in GDB commands
- From: Daniel Jacobowitz <drow at false dot org>
- To: Guillaume MENANT <guillaume dot menant at geensys dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 23 Jan 2008 09:11:23 -0500
- Subject: Re: Data order in GDB commands
- References: <15042357.post@talk.nabble.com>
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