From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103780 invoked by alias); 28 Jul 2015 15:36:20 -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 103563 invoked by uid 89); 28 Jul 2015 15:36:19 -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; Tue, 28 Jul 2015 15:36:18 +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 5E859A37FE; Tue, 28 Jul 2015 15:36:16 +0000 (UTC) Received: from blade.nx (ovpn-116-19.ams2.redhat.com [10.36.116.19]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6SFaFpm031251; Tue, 28 Jul 2015 11:36:15 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id ABF2C264327; Tue, 28 Jul 2015 16:36:14 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Cc: Pedro Alves , Sandra Loosemore , Paul_Koning@Dell.com, Jan Kratochvil , Joel Brobecker Subject: [PATCH 0/5] Change how "target:" gets into filenames Date: Tue, 28 Jul 2015 15:36:00 -0000 Message-Id: <1438097772-31480-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00828.txt.bz2 Hi all, This is a continuation of this thread: https://sourceware.org/ml/gdb/2015-07/msg00038.html In summary, GDB since April automatically locates and fetches binary files from remote systems. A number of people would like this not to happen. This automation hinged on changing the default sysroot from "" to "target:". This series reverts that change, and instead updates solib_find_1 to use "target:" as the sysroot where it would be necessary to access the files. Most use cases proceed as before, but with this series the files are *not* transferred if you supply GDB an executable either on the command line or with a "file" command. Remote examples: $ gdb ./a.out (gdb) target remote :9999 # no "target:" prefix (=no files transferred) $ gdb (gdb) file a.out (gdb) target remote :9999 # no "target:" prefix (=no files transferred) $ gdb (gdb) target remote :9999 # "target:" prefix, files transferred Aside from fixing this issue, GDB with this change has the advantage that users don't see the "target:" prefix unless either they are using GDB in a way that didn't work in 7.9 (remote target without "file" and "set sysroot" commands, containerized target) or they explitictly set it themselves (e.g. "set sysroot target:/foo/bar"). I've Cc'd Joel because, if this is the way we want to go, it would be nice to have this in 7.10 as it minimises the difference from 7.9 and would avoid having 7.10 introduce the "target:" sysroot only for 7.11 to remove it. I've Cc'd Jan because he's working on making sysroot be a search path. (defaulting to something like "/", "target:/"). I think you could do that from this series by treating the auto-target-prefix boolean as a stepping-stone that could be removed. If nothing else this series is a map of the places you'll need to update :) Built and regtested on RHEL 6.6 x86_64. Opinions? (Should I commit this, and if so where?) Cheers, Gary -- http://gbenson.net/