When target is NULL, provide a debugger so that REPLs can use that to create

their own target.

llvm-svn: 250869
This commit is contained in:
Sean Callanan
2015-10-21 00:28:44 +00:00
parent ced9941cd4
commit 3b682de6b1
5 changed files with 11 additions and 7 deletions

View File

@@ -23,14 +23,14 @@
using namespace lldb_private;
lldb::REPLSP
REPL::Create(Error &err, lldb::LanguageType language, Target *target, const char *repl_options)
REPL::Create(Error &err, lldb::LanguageType language, Debugger *debugger, Target *target, const char *repl_options)
{
uint32_t idx = 0;
lldb::REPLSP ret;
while (REPLCreateInstance create_instance = PluginManager::GetREPLCreateCallbackAtIndex(idx++))
{
ret = (*create_instance)(err, language, target, repl_options);
ret = (*create_instance)(err, language, debugger, target, repl_options);
if (ret)
{
break;