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: Remote Serial Protocol


The answer used to be in remote.c but now its at the end of the
documentation:
read registers g 
Read general registers. 
reply XX... 
Each byte of register data is described by two hex digits. The bytes with 
the register are transmitted in target byte order. The size of each register 
and their position within the `g' packet are determined by the GDB 
internal macros REGISTER_RAW_SIZE and REGISTER_NAME macros. 

For instance, if your target had 4 32bit registers (for simplicity) and all the 
values were 0xdeadbeef, then the string your target would send back would
look like:
deadbeefdeadbeefdeadbeefdeadbeef

(With all the packet info stripped off.)

Tim.Combs@motorola.com

On Wed, Jan 23, 2002 at 01:18:49PM +0000, David Mc Kenna wrote:
> A question about the Remote Serial Protocol
> 
> When gdb issues the command : "+$g#67" , which reads the general registers,
> what is the format of the expected return.
> 
> 
> Debugging with gdb gives a vague reference but no solid info.
> 
> Thanks,
> Dave Mc Kenna
> 
> 
> 
> 
> --
> http://www.iol.ie


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