diff options
author | Oleksiy Vyalov <ovyalov@google.com> | 2015-04-16 07:02:56 +0000 |
---|---|---|
committer | Oleksiy Vyalov <ovyalov@google.com> | 2015-04-16 07:02:56 +0000 |
commit | 7d9d941b9b66f9bb5495aee34cec83bcdf23e180 (patch) | |
tree | e14fb73a86308f7928f1332e49c9d7c3d3644c76 /lldb/source/Plugins/Process/gdb-remote | |
parent | 20e15563fff92cb1568770dc2170a61a06a74018 (diff) | |
download | bcm5719-llvm-7d9d941b9b66f9bb5495aee34cec83bcdf23e180.tar.gz bcm5719-llvm-7d9d941b9b66f9bb5495aee34cec83bcdf23e180.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 4 | ||||
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index 756406c4e8c..850c19e6179 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -3230,7 +3230,7 @@ GDBRemoteCommunicationClient::OpenFile (const lldb_private::FileSpec& file_spec, { lldb_private::StreamString stream; stream.PutCString("vFile:open:"); - std::string path (file_spec.GetPath()); + std::string path (file_spec.GetPath(false)); if (path.empty()) return UINT64_MAX; stream.PutCStringAsRawHex8(path.c_str()); @@ -3711,7 +3711,7 @@ GDBRemoteCommunicationClient::GetModuleInfo (const FileSpec& module_file_spec, const lldb_private::ArchSpec& arch_spec, ModuleSpec &module_spec) { - std::string module_path = module_file_spec.GetPath (); + std::string module_path = module_file_spec.GetPath (false); if (module_path.empty ()) return false; 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; |