[2/5] Update Valgrind GDB special case

Message ID 1438097772-31480-3-git-send-email-gbenson@redhat.com
State New, archived
Headers

Commit Message

Gary Benson July 28, 2015, 3:36 p.m. UTC
  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(-)
  

Patch

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);