From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15688 invoked by alias); 1 Jul 2013 16:34:05 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15678 invoked by uid 89); 1 Jul 2013 16:34:04 -0000 X-Spam-SWARE-Status: No, score=-7.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 01 Jul 2013 16:34:04 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r61GY1dP028825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Jul 2013 12:34:01 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r61GXx3q002562; Mon, 1 Jul 2013 12:34:00 -0400 Message-ID: <51D1AF77.7040903@redhat.com> Date: Mon, 01 Jul 2013 16:34:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Tom Tromey CC: Eli Zaretskii , gdb-patches@sourceware.org Subject: Re: [PATCH] Make file transfer commands work with all (native) targets. References: <1371835506-15691-1-git-send-email-tromey@redhat.com> <1371835506-15691-5-git-send-email-tromey@redhat.com> <51C880C5.6050307@redhat.com> <87bo6rmhin.fsf@fleche.redhat.com> <51CDBAF6.4040209@redhat.com> <83txkidtap.fsf@gnu.org> <51CDD537.3040300@redhat.com> <83mwqadpf5.fsf@gnu.org> <87ehbiicc7.fsf@fleche.redhat.com> In-Reply-To: <87ehbiicc7.fsf@fleche.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-07/txt/msg00045.txt.bz2 On 07/01/2013 03:28 PM, Tom Tromey wrote: > Eli> But putting files on a remote target puts them on the board, no? > Eli> There's no analogous place in native debugging. > > There's the local filesystem. > You can run gdbserver locally and still use these commands. > >>>> Without a good use case, having "remote get" serve like a poor man's >>>> 'cp' is confusing, IMO. >>> >>> Would you be OK with, or prefer, adding "target get/put/delete", leaving >>> the "remote" variants in place? > > Eli> I guess so, but then won't you lose backward compatibility? > > He means to leave the "remote" variants in place. Yep. Though I somehow missed realizing "target get/put/delete" conflicts with the usual sense we use "target foo" commands for... The next obvious one, "file", is taken too... "target-file" or "fileio" would be my next choices. Either changes tab completion behavior for "target" and "file", forcing the user to type a space, so perhaps not 100% ideal. Making "remote put/get/delete" was a lot simpler. :-) For MI, I'd still make -target-file-get work with native targets without adding new commands. These are not documented as only working with remote targets. If the frontend wants to restrict them to remotes, it can do that itself before calling into GDB. -- Pedro Alves