[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.
This commit is contained in:
Jonas Devlieghere 2020-09-02 20:48:50 -07:00
parent b16e8687ab
commit 426fa35b65
1 changed files with 4 additions and 3 deletions

View File

@ -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();
}