[Lldb-commits] [lldb] 426fa35 - [lldb] Always record both the working and home directory.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 2 20:53:19 PDT 2020


Author: Jonas Devlieghere
Date: 2020-09-02T20:53:11-07:00
New Revision: 426fa35b655ffb8647d9d69580a69627c0d19024

URL: https://github.com/llvm/llvm-project/commit/426fa35b655ffb8647d9d69580a69627c0d19024
DIFF: https://github.com/llvm/llvm-project/commit/426fa35b655ffb8647d9d69580a69627c0d19024.diff

LOG: [lldb] Always record both the working and home directory.

Treat the home directory like the current working directory and always
capture both in the VFS.

Added: 
    

Modified: 
    lldb/source/Initialization/SystemInitializerCommon.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Initialization/SystemInitializerCommon.cpp b/lldb/source/Initialization/SystemInitializerCommon.cpp
index d352173e1158..b29138c4884f 100644
--- a/lldb/source/Initialization/SystemInitializerCommon.cpp
+++ b/lldb/source/Initialization/SystemInitializerCommon.cpp
@@ -79,9 +79,10 @@ static llvm::Error InitializeFileSystem() {
     repro::FileProvider &fp = g->GetOrCreate<repro::FileProvider>();
     FileSystem::Initialize(fp.GetFileCollector());
 
-    repro::WorkingDirectoryProvider &wp =
-        g->GetOrCreate<repro::WorkingDirectoryProvider>();
-    fp.RecordInterestingDirectory(wp.GetDirectory());
+    fp.RecordInterestingDirectory(
+        g->GetOrCreate<repro::WorkingDirectoryProvider>().GetDirectory());
+    fp.RecordInterestingDirectory(
+        g->GetOrCreate<repro::HomeDirectoryProvider>().GetDirectory());
 
     return llvm::Error::success();
   }


        


More information about the lldb-commits mailing list