From patchwork Tue Jul 28 15:36:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 7898 Received: (qmail 21590 invoked by alias); 28 Jul 2015 15:45:51 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 21273 invoked by uid 89); 28 Jul 2015 15:45:47 -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:45:45 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 5AAC53640E9; 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-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6SFaFNM023848; Tue, 28 Jul 2015 11:36:15 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id C2620264F0F; 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 1/5] Revert default system root back to "" Date: Tue, 28 Jul 2015 16:36:08 +0100 Message-Id: <1438097772-31480-2-git-send-email-gbenson@redhat.com> In-Reply-To: <1438097772-31480-1-git-send-email-gbenson@redhat.com> References: <1438097772-31480-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes This commit reverts the default system root from "target:" to "". gdb/ChangeLog: * main.c (captured_main): Revert default sysroot back to "". * NEWS: Remove comment about default sysroot being "target:". --- gdb/ChangeLog | 5 +++++ gdb/NEWS | 3 +-- gdb/main.c | 7 ++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS index 7ce9758..7ecdf93 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -39,8 +39,7 @@ * Directory names supplied to the "set sysroot" commands may be prefixed with "target:" to tell GDB to access shared libraries from the target system, be it local or remote. This replaces the prefix - "remote:". The default sysroot has been changed from "" to - "target:". "remote:" is automatically converted to "target:" for + "remote:", which is automatically converted to "target:" for backward compatibility. * The system root specified by "set sysroot" will be prepended to the diff --git a/gdb/main.c b/gdb/main.c index aecd60a..2d642f9 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -545,11 +545,8 @@ captured_main (void *data) gdb_sysroot = relocate_gdb_directory (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_RELOCATABLE); - if (gdb_sysroot == NULL || *gdb_sysroot == '\0') - { - xfree (gdb_sysroot); - gdb_sysroot = xstrdup (TARGET_SYSROOT_PREFIX); - } + if (gdb_sysroot == NULL) + gdb_sysroot = xstrdup (""); debug_file_directory = relocate_gdb_directory (DEBUGDIR, DEBUGDIR_RELOCATABLE);