This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/5] Update Valgrind GDB special case


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]