[lldb/Reproducers] Collect files imported by command script import
Files imported by the script interpreter aren't opened by LLDB so they don't end up in the reproducer. The solution is to explicitly add them to the FileCollector. Differential revision: https://reviews.llvm.org/D76626
This commit is contained in:
@@ -2772,6 +2772,7 @@ bool ScriptInterpreterPythonImpl::LoadScriptingModule(
|
||||
{
|
||||
FileSpec target_file(pathname);
|
||||
FileSystem::Instance().Resolve(target_file);
|
||||
FileSystem::Instance().Collect(target_file);
|
||||
std::string basename(target_file.GetFilename().GetCString());
|
||||
|
||||
StreamString command_stream;
|
||||
|
||||
Reference in New Issue
Block a user