From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89119 invoked by alias); 29 Jul 2015 10:30:06 -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 89102 invoked by uid 89); 29 Jul 2015 10:30:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 29 Jul 2015 10:30:04 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 534929C0C0; Wed, 29 Jul 2015 10:30:03 +0000 (UTC) Received: from blade.nx (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6TAU1Xv009089; Wed, 29 Jul 2015 06:30:02 -0400 Received: by blade.nx (Postfix, from userid 1000) id 2E71E264F04; Wed, 29 Jul 2015 11:30:01 +0100 (BST) Date: Wed, 29 Jul 2015 10:30:00 -0000 From: Gary Benson To: Sandra Loosemore Cc: Doug Evans , gdb-patches@sourceware.org, Pedro Alves , Paul_Koning@Dell.com, Jan Kratochvil , Joel Brobecker Subject: Re: [PATCH 4/5] Use TARGET_FILENAME_PREFIX as the system root in some cases Message-ID: <20150729103001.GC19548@blade.nx> References: <001a11381844e0dffe051bf2e570@google.com> <55B7DF58.40008@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55B7DF58.40008@codesourcery.com> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00858.txt.bz2 Sandra Loosemore wrote: > On 07/28/2015 11:35 AM, Doug Evans wrote: > > If, after doing: > > > > (gdb) target remote :9999 > > > > the user was first prompted with something like: > > > > "Warning: I have no way to find files with debug info locally, > > and auto-target-prefix is set to "on", > > so I will try to fetch these files from the target. > > This may take time. If you want to avoid having me try to transfer > > files from the target, you can do the following: > > blah blah blah > > Are you sure you want to continue?" > > [suitably cleaned up, I didn't want to spend any time wordsmithing that] > > > > then that may be sufficient. What do others think? > > The problem with forcing the user to answer question here is that > it'll screw up a lot of GDB startup scripts. Maybe stuff like > launching GDB from Eclipse, too. Yeah, I don't like having questions. A warning followed by something the user can interrupt is something the user only has to deal with the once (by interrupting, adding something to their .gdbinit, and restarting). A question that the user has to answer *every time* is something the user has to deal with every time. > My preference would be to make GDB give a message when transferring > files from the target, like > > Reading /full/path/to/libc-2.21.so (12236020 bytes) from target. > Use "set sysroot" to set a local pathname for this file instead. > > and make the read operation interruptible so that if it's taking too > long, the user can stop the transfer and do the "set sysroot" thing > as suggested. Ok, I will look into this. Cheers, Gary -- http://gbenson.net/