From patchwork Tue Jul 28 15:36:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 7894 Received: (qmail 103335 invoked by alias); 28 Jul 2015 15:36:19 -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 102749 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-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 58FD48C1B9; 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-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6SFaFIt002278; Tue, 28 Jul 2015 11:36:15 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id E2CA0264F10; 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 2/5] Update Valgrind GDB special case Date: Tue, 28 Jul 2015 16:36:09 +0100 Message-Id: <1438097772-31480-3-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 updates the vgdb handling in remote_filesystem_is_local to reflect the new default system root of "". gdb/ChangeLog: * remote.c (remote_filesystem_is_local): Update vgdb handling. --- gdb/ChangeLog | 4 ++++ gdb/remote.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/remote.c b/gdb/remote.c index 69da508..8b7e9d1 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10567,9 +10567,8 @@ remote_filesystem_is_local (struct target_ops *self) on the local filesystem: it does not implement remote get and users are not expected to set a sysroot. To handle this case we treat the remote filesystem as local if the - sysroot is exactly TARGET_SYSROOT_PREFIX and if the stub - does not support vFile:open. */ - if (strcmp (gdb_sysroot, TARGET_SYSROOT_PREFIX) == 0) + sysroot is empty and the stub does not support vFile:open. */ + if (*gdb_sysroot == '\0') { enum packet_support ps = packet_support (PACKET_vFile_open);