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]

Re: GDB's remote protocol: rCommand



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.


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