GDB's remote protocol: rCommand

Eli Zaretskii eliz@is.elta.co.il
Wed Mar 21 15:59:00 GMT 2001


On Mon, 19 Mar 2001, Stephen Smith wrote:

> When reading chapter 13 of the gdb manual, the rcmd can be taken to mean one 
> of two things:
> 
> 1)  a command sent from the host machine to the target machine for the GDB server/stub to
> execute
> 
> 2)  a command sent from the target machine to the host machine for GDB to execute
> 
> Which is it supposed to be?

The former, of course.  The text before the table says:

    The host (GDB) sends COMMANDs, and the target (the debugging stub
    incorporated in your program) sends a RESPONSE.

This is to say, _all_ the commands in the table are sent from host to
target; the stab on the target only sends responses to those commands.

Please suggest how to make this point more clear in the manual.



More information about the Gdb mailing list