From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14212 invoked by alias); 30 Oct 2007 18:29:17 -0000 Received: (qmail 14193 invoked by uid 22791); 30 Oct 2007 18:29:16 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Oct 2007 18:29:14 +0000 Received: (qmail 18439 invoked from network); 30 Oct 2007 18:29:12 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Oct 2007 18:29:12 -0000 To: Ulrich Weigand Cc: gdb@sourceware.org Subject: Re: RFC: File transfer commands References: <20071029195510.GA18673@caradoc.them.org> <200710292029.l9TKTfow009984@d12av02.megacenter.de.ibm.com> <20071029204052.GA875@caradoc.them.org> From: Jim Blandy Date: Tue, 30 Oct 2007 18:29:00 -0000 In-Reply-To: <20071029204052.GA875@caradoc.them.org> (Daniel Jacobowitz's message of "Mon, 29 Oct 2007 16:40:52 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00299.txt.bz2 Daniel Jacobowitz writes: > 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. Yeah, 'remote ls' seems like the logical missing piece. Why not use 'vFile:' as the prefix for delete, and qXfer for read and write?