summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-08-16 23:24:13 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-08-16 23:24:13 +0000
commit223383ed6c77205c84e2061881206e5379f6442f (patch)
tree74d512533e99cacb0400131ee005754e5bbd6f8e /lldb/source/Interpreter/ScriptInterpreterPython.cpp
parent556e653b6ad9ba2bb6593cf8ba5857ec1384331a (diff)
downloadbcm5719-llvm-223383ed6c77205c84e2061881206e5379f6442f.tar.gz
bcm5719-llvm-223383ed6c77205c84e2061881206e5379f6442f.zip
Changes to Python commands:
- They now have an SBCommandReturnObject instead of an SBStream as third argument - The class CommandObjectPythonFunction has been merged into CommandObjectCommands.cpp - The command to manage them is now: command script with subcommands add, list, delete, clear command alias is returned to its previous functionality - Python commands are now part of an user dictionary, instead of being seen as aliases llvm-svn: 137785
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index e0a88cbc338..4db56d4ac23 100644
--- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
@@ -1909,7 +1909,7 @@ ScriptInterpreterPython::CastPyObjectToSBValue (void* data)
bool
ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function,
const char* args,
- lldb::SBStream& stream,
+ lldb_private::CommandReturnObject& cmd_retobj,
Error& error)
{
if (!impl_function)
@@ -1941,7 +1941,7 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function,
debugger_sp,
args,
err_msg,
- stream);
+ cmd_retobj);
python_interpreter->LeaveSession ();
}
else
@@ -1955,7 +1955,7 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function,
debugger_sp,
args,
err_msg,
- stream);
+ cmd_retobj);
python_interpreter->LeaveSession ();
ReleasePythonLock ();
}
OpenPOWER on IntegriCloud