mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user