Separate initing the stdout/stderr for running the Python Script interpreter from initing the lldb.target/frame/etc globals,

and only do the latter when it makes sense to.

<rdar://problem/12554049>

llvm-svn: 169614
This commit is contained in:
Jim Ingham
2012-12-07 17:43:38 +00:00
parent ea2824dc88
commit 6a51085e09
3 changed files with 43 additions and 34 deletions

View File

@@ -1179,7 +1179,9 @@ Module::LoadScriptingResourceInTarget (Target *target, Error& error)
{
StreamString scripting_stream;
scripting_fspec.Dump(&scripting_stream);
bool did_load = script_interpreter->LoadScriptingModule(scripting_stream.GetData(), false, true, error);
const bool can_reload = false;
const bool init_lldb_globals = false;
bool did_load = script_interpreter->LoadScriptingModule(scripting_stream.GetData(), can_reload, init_lldb_globals, error);
if (!did_load)
return false;
}