From: Eli Zaretskii <eliz@gnu.org>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc] Remote file transfer support
Date: Wed, 31 Oct 2007 21:35:00 -0000 [thread overview]
Message-ID: <u4pg7qaq6.fsf@gnu.org> (raw)
In-Reply-To: <20071029203042.GA26597@caradoc.them.org> (message from Daniel Jacobowitz on Mon, 29 Oct 2007 16:30:42 -0400)
> Date: Mon, 29 Oct 2007 16:30:42 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> 2007-10-29 Daniel Jacobowitz <dan@codesourcery.com>
>
> * gdb.texinfo (Remote Debugging): Add File Transfer section.
> (Remote Configuration): Document Host I/O packets.
> (GDB/MI): Add GDB/MI File Transfer Commands section.
> (Remote Protocol): Add Host I/O Packets section.
> (Packets): Add vFile.
I have a few comments for this part.
> +@node File Transfer
> +@section Sending files to a remote system
> +@cindex remote target, file transfer
> +@cindex file transfer
Please add a @cindex entry as follows:
@cindex sending files to remote systems
> +for targets accessible through other means, e.g.@: GNU/Linux systems
^^^^^^^^^
I believe we want to use @sc{gnu}/Linux.
> +@item remote put @var{hostfile} @var{targetfile}
> +Copy @var{hostfile} from the host system (the machine running
> +@value{GDBN}) to the path @var{targetfile} on the target system.
GNU coding conventions frown on using "path" in the sense of a file
name or a fully qualified directory name. "Path" is reserved for
$PATH and other lists of directories, like the value of $MANPATH etc.
Also, I think it would help to say "file" at least once, to make sure
the reader understands that @var{hostfile} and other similar
parameters are file names:
Copy file @var{hostfile} from the host system ...
> +Perform a file operation on the target system. For details,
> +@xref{Host I/O Packets}.
@xref produces "See", with a capital `S', which looks as a typo in the
middle of a sentence. To avoid this, use @ref as follows:
For details, see @ref{Host I/O Packets}.
or reverse the order:
@xref{Host I/O Packets}, for details.
> The protocol has some common features with the File-I/O
> +protocol, e.g.@: all constants and data structures are encoded in the
> +same way.
I didn't understand this sentence. Can you explain what does it mean
to say?
> However, the packets are structured differently, because
> +requests are initiated by @value{GDBN}, and the target's memory is not
> +involved.
This is also unclear.
> For
> +operations which return data, @var{attachment} will be provided a
> +binary buffer.
Did you mean "as a binary buffer", perhaps?
> +The data read should be returned as a binary attachment on success,
> +even if zero bytes were read.
Ehm... how do you express a buffer of zero bytes?
> --- gdb/NEWS.orig 2007-10-29 15:20:55.000000000 -0400
> +++ gdb/NEWS 2007-10-29 16:11:11.000000000 -0400
This part is fine with me.
Thanks.
next prev parent reply other threads:[~2007-10-31 20:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 20:32 Daniel Jacobowitz
2007-10-31 21:35 ` Eli Zaretskii [this message]
2007-11-30 18:37 ` Daniel Jacobowitz
2007-11-30 21:22 ` Eli Zaretskii
2007-11-30 21:50 ` Daniel Jacobowitz
2007-12-01 4:10 ` Pedro Alves
2007-12-01 5:00 ` Daniel Jacobowitz
2007-12-03 9:51 ` Pierre Muller
2007-12-03 12:56 ` 'Daniel Jacobowitz'
2007-12-03 13:41 ` Pierre Muller
2007-12-16 21:54 ` 'Daniel Jacobowitz'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u4pg7qaq6.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox