summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreterNone.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-07-30 22:33:14 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-07-30 22:33:14 +0000
commit7dc2e4784ed3c2f428c992e36f0022253d0a6590 (patch)
treed4664b6e9a111a26b3a14ddbf54b8f605b786bf5 /lldb/source/Interpreter/ScriptInterpreterNone.cpp
parentfe1a4944b18b702249115935234155047a4798c4 (diff)
downloadbcm5719-llvm-7dc2e4784ed3c2f428c992e36f0022253d0a6590.tar.gz
bcm5719-llvm-7dc2e4784ed3c2f428c992e36f0022253d0a6590.zip
We can do better when reporting the status of one-liner script execution.
Change the prototype of ScriptInterpreter::ExecuteOneLine() to return bool instead of void and take one additional parameter as CommandReturnObject *. Propagate the status of one-liner execution back appropriately. llvm-svn: 109899
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterNone.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterNone.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterNone.cpp b/lldb/source/Interpreter/ScriptInterpreterNone.cpp
index c9bd2827fc9..dad70aa93d5 100644
--- a/lldb/source/Interpreter/ScriptInterpreterNone.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreterNone.cpp
@@ -25,10 +25,11 @@ ScriptInterpreterNone::~ScriptInterpreterNone ()
{
}
-void
-ScriptInterpreterNone::ExecuteOneLine (CommandInterpreter &interpreter, const char *command)
+bool
+ScriptInterpreterNone::ExecuteOneLine (CommandInterpreter &interpreter, const char *command, CommandReturnObject *)
{
interpreter.GetDebugger().GetErrorStream().PutCString ("error: there is no embedded script interpreter in this mode.\n");
+ return false;
}
void
OpenPOWER on IntegriCloud