diff options
| author | Sean Callanan <scallanan@apple.com> | 2015-10-20 00:23:46 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2015-10-20 00:23:46 +0000 |
| commit | 3e7e915dca7dd543f11bdb6312e95a857df22618 (patch) | |
| tree | 3641b5e85d967bd28f923e234999388a24fbdfd9 /lldb/source/Expression/REPL.cpp | |
| parent | 7449ab983473b57a5b0980fb1cdbae8f67f43e60 (diff) | |
| download | bcm5719-llvm-3e7e915dca7dd543f11bdb6312e95a857df22618.tar.gz bcm5719-llvm-3e7e915dca7dd543f11bdb6312e95a857df22618.zip | |
Added support for the "--repl" argument to LLDB.
This makes LLDB launch and create a REPL, specifying no target so that the REPL
can create one for itself. Also added the "--repl-language" option, which
specifies the language to use. Plumbed the relevant arguments and errors
through the REPL creation mechanism.
llvm-svn: 250773
Diffstat (limited to 'lldb/source/Expression/REPL.cpp')
| -rw-r--r-- | lldb/source/Expression/REPL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/REPL.cpp b/lldb/source/Expression/REPL.cpp index 612a61c6544..472096ee044 100644 --- a/lldb/source/Expression/REPL.cpp +++ b/lldb/source/Expression/REPL.cpp @@ -23,14 +23,14 @@ using namespace lldb_private; lldb::REPLSP -REPL::Create(lldb::LanguageType language, Target *target) +REPL::Create(Error &err, lldb::LanguageType language, Target *target, const char *repl_options) { uint32_t idx = 0; lldb::REPLSP ret; while (REPLCreateInstance create_instance = PluginManager::GetREPLCreateCallbackAtIndex(idx++)) { - ret = (*create_instance)(language, target); + ret = (*create_instance)(err, language, target, repl_options); if (ret) { break; |

