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
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@137785 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/ScriptInterpreterPython.cpp b/source/Interpreter/ScriptInterpreterPython.cpp
index e0a88cb..4db56d4 100644
--- a/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/source/Interpreter/ScriptInterpreterPython.cpp
@@ -1909,7 +1909,7 @@
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 @@
debugger_sp,
args,
err_msg,
- stream);
+ cmd_retobj);
python_interpreter->LeaveSession ();
}
else
@@ -1955,7 +1955,7 @@
debugger_sp,
args,
err_msg,
- stream);
+ cmd_retobj);
python_interpreter->LeaveSession ();
ReleasePythonLock ();
}