Skip to content

Commit 426fa35

Browse files
committed
[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.
1 parent b16e868 commit 426fa35

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/source/Initialization/SystemInitializerCommon.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ static llvm::Error InitializeFileSystem() {
7979
repro::FileProvider &fp = g->GetOrCreate<repro::FileProvider>();
8080
FileSystem::Initialize(fp.GetFileCollector());
8181

82-
repro::WorkingDirectoryProvider &wp =
83-
g->GetOrCreate<repro::WorkingDirectoryProvider>();
84-
fp.RecordInterestingDirectory(wp.GetDirectory());
82+
fp.RecordInterestingDirectory(
83+
g->GetOrCreate<repro::WorkingDirectoryProvider>().GetDirectory());
84+
fp.RecordInterestingDirectory(
85+
g->GetOrCreate<repro::HomeDirectoryProvider>().GetDirectory());
8586

8687
return llvm::Error::success();
8788
}

0 commit comments

Comments
 (0)