From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11950 invoked by alias); 28 Jun 2013 17:44:44 -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 11917 invoked by uid 89); 28 Jun 2013 17:44:44 -0000 X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 28 Jun 2013 17:44:42 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MP400M0068FN500@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Fri, 28 Jun 2013 20:44:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP400L236LQW9F0@a-mtaout22.012.net.il>; Fri, 28 Jun 2013 20:44:15 +0300 (IDT) Date: Fri, 28 Jun 2013 17:46:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Make file transfer commands work with all (native) targets. (was: Re: [PATCH 04/16] push remote_desc into struct remote_state) In-reply-to: <51CDBAF6.4040209@redhat.com> To: Pedro Alves Cc: tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83txkidtap.fsf@gnu.org> 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> X-SW-Source: 2013-06/txt/msg00916.txt.bz2 > Date: Fri, 28 Jun 2013 17:33:58 +0100 > From: Pedro Alves > CC: gdb-patches@sourceware.org > > > Pedro> remote_file_get could nowadays be using the target_fileio_XXX methods > > Pedro> instead of remote_hostio_XXX, and therefore the command could be > > Pedro> generalized to work with all targets. > > Actually, doing this is quite easy, so I went ahead, in the name > of local/remote feature parity. We can connect to a local gdbserver > and do file transfer in the local system; there seems to be no > reason we can't do it with native debugging too. > > WDYT? What is the use case? Without a good use case, having "remote get" serve like a poor man's 'cp' is confusing, IMO.