diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-03-24 08:54:26 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-03-24 08:54:26 -0700 |
commit | 1f80e51546bf2bf77982fd013519631f4c86898b (patch) | |
tree | d77f858545ed049ea99d437e016d2878dc238816 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | f8c79b94af710dbce35098bc23021ad88ba54966 (diff) | |
download | llvm-1f80e51546bf2bf77982fd013519631f4c86898b.zip llvm-1f80e51546bf2bf77982fd013519631f4c86898b.tar.gz llvm-1f80e51546bf2bf77982fd013519631f4c86898b.tar.bz2 |
[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
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |