This is the mail archive of the gdb@sourceware.org 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: Data order in GDB commands


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


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