public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: Remote Serial Protocol
@ 2002-01-23  5:56 David Mc Kenna
  2002-01-23  7:36 ` Andrew Cagney
  0 siblings, 1 reply; 5+ messages in thread
From: David Mc Kenna @ 2002-01-23  5:56 UTC (permalink / raw)
  To: Tim Combs, David Mc Kenna, gdb

Thanks for the quick reply,

Where are the macros for REGISTER_RAW_SIZE and REGISTER_NAME located ?

Thanks,
Dave McKenna
>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
>
>


--
http://www.iol.ie

^ permalink raw reply	[flat|nested] 5+ messages in thread
* remote serial protocol
@ 2003-09-05  5:39 Raja Saleru
  0 siblings, 0 replies; 5+ messages in thread
From: Raja Saleru @ 2003-09-05  5:39 UTC (permalink / raw)
  To: Raja Saleru, gdb

Dear all,



I have a question related remote serial protocol used in gdb and gdbserver
communication.

The command

                            Read Registers (g)

                            Ex:

                                          [gdb]  $g#67

                                          [target]
+0123456789abcdef0123456789..#xx



issued by gdb to request the values of all target registers. The target
replies with a single message containing ordered register values packed
end-to-end.



I wanted to know the ordering of the registers. Where it is documented?

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Remote Serial Protocol
@ 2002-01-23  5:37 David Mc Kenna
  2002-01-23  5:48 ` Tim Combs
  0 siblings, 1 reply; 5+ messages in thread
From: David Mc Kenna @ 2002-01-23  5:37 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-09-05  5:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-23  5:56 Remote Serial Protocol David Mc Kenna
2002-01-23  7:36 ` Andrew Cagney
  -- strict thread matches above, loose matches on Subject: below --
2003-09-05  5:39 remote serial protocol Raja Saleru
2002-01-23  5:37 Remote Serial Protocol David Mc Kenna
2002-01-23  5:48 ` Tim Combs

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).