Fixed some SWIG interoperability issues
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@138154 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/ScriptInterpreterPython.cpp b/source/Interpreter/ScriptInterpreterPython.cpp
index 64efa52..588e2c1 100644
--- a/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/source/Interpreter/ScriptInterpreterPython.cpp
@@ -20,6 +20,7 @@
#include "lldb/API/SBFrame.h"
#include "lldb/API/SBBreakpointLocation.h"
+#include "lldb/API/SBCommandReturnObject.h"
#include "lldb/Breakpoint/StoppointCallbackContext.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Timer.h"
@@ -1930,7 +1931,7 @@
}
ScriptInterpreterPython *python_interpreter = this;
-
+
lldb::DebuggerSP debugger_sp = m_interpreter.GetDebugger().GetSP();
bool ret_val;
@@ -1946,7 +1947,7 @@
debugger_sp,
args,
err_msg,
- (void*)&cmd_retobj);
+ cmd_retobj);
python_interpreter->LeaveSession ();
}
else
@@ -1960,7 +1961,7 @@
debugger_sp,
args,
err_msg,
- (void*)&cmd_retobj);
+ cmd_retobj);
python_interpreter->LeaveSession ();
ReleasePythonLock ();
}
@@ -1969,7 +1970,7 @@
error.SetErrorString(err_msg.c_str());
else
error.Clear();
-
+
return ret_val;