From 7d9d941b9b66f9bb5495aee34cec83bcdf23e180 Mon Sep 17 00:00:00 2001 From: Oleksiy Vyalov Date: Thu, 16 Apr 2015 07:02:56 +0000 Subject: Pass normalized target file paths via GDB-remote to a target and denormalize them on the target. http://reviews.llvm.org/D8980 llvm-svn: 235077 --- .../Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp index 2e14c38ed44..e8b39eaeb5d 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp @@ -576,7 +576,8 @@ GDBRemoteCommunicationServerCommon::Handle_vFile_Open (StringExtractorGDBRemote { mode_t mode = packet.GetHexMaxU32(false, 0600); Error error; - int fd = ::open (path.c_str(), flags, mode); + const FileSpec path_spec(path.c_str(), true); + int fd = ::open (path_spec.GetPath().c_str(), flags, mode); const int save_errno = fd == -1 ? errno : 0; StreamString response; response.PutChar('F'); @@ -1162,7 +1163,8 @@ GDBRemoteCommunicationServerCommon::Handle_qModuleInfo (StringExtractorGDBRemote packet.GetHexByteString(triple); ArchSpec arch(triple.c_str()); - const FileSpec module_path_spec = FindModuleFile(module_path, arch); + const FileSpec req_module_path_spec(module_path.c_str(), true); + const FileSpec module_path_spec = FindModuleFile(req_module_path_spec.GetPath(), arch); const ModuleSpec module_spec(module_path_spec, arch); ModuleSpecList module_specs; -- cgit v1.2.3