summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBCommandInterpreter.cpp
diff options
context:
space:
mode:
authorAdrian McCarthy <amccarth@google.com>2015-04-23 20:00:25 +0000
committerAdrian McCarthy <amccarth@google.com>2015-04-23 20:00:25 +0000
commit2304b6ff44e620a73a730a702f8ec603e94a3e13 (patch)
tree9009261d91d63472e2185d30dc82f8a51e61dab5 /lldb/source/API/SBCommandInterpreter.cpp
parent3286ec1484bb20d99c8d69f417b789c5da0b8166 (diff)
downloadbcm5719-llvm-2304b6ff44e620a73a730a702f8ec603e94a3e13.tar.gz
bcm5719-llvm-2304b6ff44e620a73a730a702f8ec603e94a3e13.zip
Factor resolution of abbreviations and aliases so that they can be tested directly. http://reviews.llvm.org/D9033
llvm-svn: 235633
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 61ae6fe1efa..dfa66f81e8a 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -462,6 +462,22 @@ SBCommandInterpreter::SetPromptOnQuit (bool b)
m_opaque_ptr->SetPromptOnQuit(b);
}
+void
+SBCommandInterpreter::ResolveCommand(const char *command_line, SBCommandReturnObject &result)
+{
+ result.Clear();
+ if (command_line && m_opaque_ptr)
+ {
+ m_opaque_ptr->ResolveCommand(command_line, result.ref());
+ }
+ else
+ {
+ result->AppendError("SBCommandInterpreter or the command line is not valid");
+ result->SetStatus(eReturnStatusFailed);
+ }
+}
+
+
CommandInterpreter *
SBCommandInterpreter::get ()
{
OpenPOWER on IntegriCloud