[lldb/Reproducers] Always record the current working directory
Setting the current working directory in the VFS will fail if the given path doesn't exist in the YAML mapping or on disk.
This commit is contained in:
@@ -94,6 +94,8 @@ llvm::Error SystemInitializerCommon::Initialize() {
|
||||
vp.SetVersion(lldb_private::GetVersion());
|
||||
repro::FileProvider &fp = g->GetOrCreate<repro::FileProvider>();
|
||||
FileSystem::Initialize(fp.GetFileCollector());
|
||||
repro::WorkingDirectoryProvider &wp = g->GetOrCreate<repro::WorkingDirectoryProvider>();
|
||||
fp.RecordInterestingDirectory(wp.GetWorkingDirectory());
|
||||
} else {
|
||||
FileSystem::Initialize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user