From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61205 invoked by alias); 12 Aug 2015 09:48:36 -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 61196 invoked by uid 89); 12 Aug 2015 09:48:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no 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, 12 Aug 2015 09:48:35 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id D982E8EA32; Wed, 12 Aug 2015 09:48:33 +0000 (UTC) Received: from blade.nx (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7C9mWU5003887; Wed, 12 Aug 2015 05:48:33 -0400 Received: by blade.nx (Postfix, from userid 1000) id 4EB432643BC; Wed, 12 Aug 2015 10:48:31 +0100 (BST) Date: Wed, 12 Aug 2015 09:48:00 -0000 From: Gary Benson To: Joel Brobecker Cc: Doug Evans , Jan Kratochvil , gdb-patches , Sandra Loosemore , Pedro Alves , =?iso-8859-1?Q?Andr=E9_P=F6nitz?= , Paul Koning Subject: Re: [PATCH 0/2] Better handling of slow remote transfers Message-ID: <20150812094831.GD11096@blade.nx> References: <001a11c301b0388ac5051d0c5ab8@google.com> <20150811185519.GA28644@host1.jankratochvil.net> <20150811195943.GC22245@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150811195943.GC22245@adacore.com> X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00265.txt.bz2 Joel Brobecker wrote: > > At any rate, I think the default behaviour for 7.10 > > has to be the default behaviour of 7.9 > > (given that, for example, we're not going to make file transfer > > more adequately interruptible for 7.10). > > That makes sense to me. If we are to reset the default sysroot to "" then please consider the series I posted that added the auto-target-prefix functionality: https://sourceware.org/ml/gdb-patches/2015-07/msg00828.html With these patches the "target:" prefix is only enabled if the user does "target remote" with no sysroot or file specified, a case that in 7.9 would result in a debug session with no symbols. This has the following matrix of behaviours: * User wants to supply the file and not have libraries fetched (Sandra Loosemore's use case): bash$ gdb (gdb) file ./a.out (gdb) target remote :9999 and: bash$ gdb ./a.out (gdb) target remote :9999 7.9 -> no files transferred 7.10 -> no files transferred * User wants to specify a file AND have GDB pull libraries from the remote: bash$ gdb (gdb) file ./a.out (gdb) set sysroot remote: (gdb) target remote :9999 and: bash$ gdb ./a.out (gdb) set sysroot remote: (gdb) target remote :9999 7.9 -> libraries transferred, executable read locally 7.10 -> libraries transferred, executable read locally * User wants to connect to remote target and have GDB do the work: bash$ gdb (gdb) target remote :9999 7.9 -> no files transferred, debug session with no symbols 7.10 -> all files transferred, debug session with symbols If the user actually wants to debug with no symbols at all they can do this: bash$ gdb (gdb) set auto-target-prefix off (gdb) target remote :9999 With this series all 7.9 use cases are supported, and only the use case where the user wants no symbols requires extra typing. Most users are going to want symbols, and any user capable of debugging without symbols is capable of adding a line to their .gdbinit. Thanks, Gary -- http://gbenson.net/