From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47095 invoked by alias); 28 Jul 2015 20:02:25 -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 47084 invoked by uid 89); 28 Jul 2015 20:02:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Jul 2015 20:02:22 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1ZKB4r-0007QQ-Sg from Sandra_Loosemore@mentor.com ; Tue, 28 Jul 2015 13:02:17 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.3.224.2; Tue, 28 Jul 2015 13:02:16 -0700 Message-ID: <55B7DF58.40008@codesourcery.com> Date: Tue, 28 Jul 2015 20:02:00 -0000 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Doug Evans CC: Gary Benson , , Pedro Alves , , Jan Kratochvil , Joel Brobecker Subject: Re: [PATCH 4/5] Use TARGET_FILENAME_PREFIX as the system root in some cases References: <001a11381844e0dffe051bf2e570@google.com> In-Reply-To: <001a11381844e0dffe051bf2e570@google.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-07/txt/msg00840.txt.bz2 On 07/28/2015 11:35 AM, Doug Evans wrote: > > One thing that comes to mind is that there's no indication/warning > here of the potential massive responsiveness hit people may take > if they turn this feature on, plus an explanation of what's going > on, or how they can do things differently to avoid it. Yes. The delay would be more tolerable if users were given some clue what GDB is doing. > 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. 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. -Sandra