From 1f80e51546bf2bf77982fd013519631f4c86898b Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 24 Mar 2020 08:54:26 -0700 Subject: [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 --- lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index 3e93ddbf..f59b70a 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -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; -- cgit v1.1