From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: drow@false.org (Daniel Jacobowitz)
Cc: gdb@sourceware.org
Subject: Re: RFC: File transfer commands
Date: Mon, 29 Oct 2007 20:29:00 -0000 [thread overview]
Message-ID: <200710292029.l9TKTfow009984@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20071029195510.GA18673@caradoc.them.org> from "Daniel Jacobowitz" at Oct 29, 2007 03:55:10 PM
Daniel Jacobowitz wrote:
> Two years ago, I worked on a GDB port to SymbianOS. The SymbianOS
> target was interesting in a couple of ways that required changes to
> GDB. One was the target shared library list, which is included in
> GDB 6.7. Another was the need to specify a running process to attach
> to over a remote connection, which I'll be posting about in a few days
> or a week. And a third way was the need for file transfer commands.
That's interesting, as remote file transfer is on my current to-do
list ;-) I'd like to remove the requirement to have exact copies
of target shared libraries available on the host system when doing
remote debugging via gdbserver; this is an annoyingly frequent cause
of user complaints ... To fix this, I'm thinking of extending the
shared library layer to directly access the shared library files
available on the target instead of searching for copies on the host.
This would use some sort of file access via the remote protocol.
> Here is the documentation I've written for it. There are three new
> CLI commands (remote put, remote get, remote delete); three new MI
> commands (-target-file-put, -target-file-get, -target-file-delete);
> and five new remote protocol packets (vFile:open, vFile:close,
> vFile:pread, vFile:pwrite, vFile:unlink). I'm not committed to any
> of the command names or packets; alternatives welcome.
>
> Should GDB have this feature? Are these the right commands for it?
Hmm, I'd have chosen to use a new target object (TARGET_OBJECT_FILE)
and corresponding qXfer packet; the "annex" would obviously be the
remote file name.
However, that would not support unlink, and it would cause the
target to re-open the file for each access. That wouldn't matter
for my intended use scenario, not sure if it would in yours ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2007-10-29 20:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 19:55 Daniel Jacobowitz
2007-10-29 20:29 ` Ulrich Weigand [this message]
2007-10-29 20:40 ` Daniel Jacobowitz
2007-10-30 18:29 ` Jim Blandy
2007-10-30 18:41 ` Daniel Jacobowitz
2007-11-01 0:24 ` Jim Blandy
2007-10-29 23:39 ` Pedro Alves
2007-10-29 23: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=200710292029.l9TKTfow009984@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=drow@false.org \
--cc=gdb@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