This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB's remote protocol: rCommand
- To: Stephen Smith <ischis2 at home dot com>
- Subject: Re: GDB's remote protocol: rCommand
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Tue, 20 Mar 2001 11:31:02 +0200 (IST)
- cc: GDB <gdb at sources dot redhat dot com>
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.