Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb@sourceware.org
Subject: Re: RFC: File transfer commands
Date: Mon, 29 Oct 2007 20:40:00 -0000	[thread overview]
Message-ID: <20071029204052.GA875@caradoc.them.org> (raw)
In-Reply-To: <200710292029.l9TKTfow009984@d12av02.megacenter.de.ibm.com>

On Mon, Oct 29, 2007 at 09:29:41PM +0100, Ulrich Weigand wrote:
> 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 ...

Yeah, I did think about using qXfer.  Having to close and re-open the
file isn't a problem for me either, but that didn't allow for other
useful operations like delete.  I haven't implemented any more
operations than you see here, but it would be a reasonable addition
to implement "remote ls" - and the corresponding MI commands, which
might let us use a GUI file browser to select the target program
to execute.

I'd figured on retrieving remote shared libraries from memory, rather
than from the filesystem; we don't need the contents, just the dynamic
symbol table.  But that wouldn't take advantage of unstripped
libraries on the target with full symbols, so maybe the file would be
useful too.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2007-10-29 20:40 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
2007-10-29 20:40   ` Daniel Jacobowitz [this message]
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=20071029204052.GA875@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=uweigand@de.ibm.com \
    /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