[Lldb-commits] [lldb] 1c046ca - [lldb] Fixed PlatformPOSIX::DoLoadImage() in case of the Windows host (#93345)

via lldb-commits lldb-commits at lists.llvm.org
Sun May 26 23:52:20 PDT 2024


Author: Dmitry Vasilyev
Date: 2024-05-27T10:52:16+04:00
New Revision: 1c046ca3f3254944483251bdc9c843e72d7f7796

URL: https://github.com/llvm/llvm-project/commit/1c046ca3f3254944483251bdc9c843e72d7f7796
DIFF: https://github.com/llvm/llvm-project/commit/1c046ca3f3254944483251bdc9c843e72d7f7796.diff

LOG: [lldb] Fixed PlatformPOSIX::DoLoadImage() in case of the Windows host (#93345)

Do not denormalize the path. This patch fixes #93092.

BTW, it would be great to be able to pass the style or triple to
SBFileSpec. Currently it is impossible to create a posix SBFileSpec on
the Windows host.

Added: 
    

Modified: 
    lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp b/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
index b4f1b76c39dbe..588b19dac6165 100644
--- a/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
+++ b/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
@@ -678,8 +678,8 @@ uint32_t PlatformPOSIX::DoLoadImage(lldb_private::Process *process,
     loaded_image->Clear();
 
   std::string path;
-  path = remote_file.GetPath();
-  
+  path = remote_file.GetPath(false);
+
   ThreadSP thread_sp = process->GetThreadList().GetExpressionExecutionThread();
   if (!thread_sp) {
     error.SetErrorString("dlopen error: no thread available to call dlopen.");


        


More information about the lldb-commits mailing list