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/API | |
| 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/API')
| -rw-r--r-- | lldb/source/API/SBDebugger.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index df2019f5a46..042e9c69cab 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -1000,6 +1000,17 @@ SBDebugger::RunCommandInterpreter (bool auto_handle_events, } } +SBError +SBDebugger::RunREPL (lldb::LanguageType language, const char *repl_options) +{ + SBError error; + if (m_opaque_sp) + error.ref() = m_opaque_sp->RunREPL(language, repl_options); + else + error.SetErrorString ("invalid debugger"); + return error; +} + void SBDebugger::reset (const DebuggerSP &debugger_sp) { |

