This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/5] Update Valgrind GDB special case
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Pedro Alves <palves at redhat dot com>, Sandra Loosemore <sandra at codesourcery dot com>, Paul_Koning at Dell dot com, Jan Kratochvil <jan dot kratochvil at redhat dot com>, Joel Brobecker <brobecker at adacore dot com>
- Date: Tue, 28 Jul 2015 16:36:09 +0100
- Subject: [PATCH 2/5] Update Valgrind GDB special case
- Authentication-results: sourceware.org; auth=none
- References: <1438097772-31480-1-git-send-email-gbenson at redhat dot com>
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);
--
1.7.1