diff options
| author | Enrico Granata <granata.enrico@gmail.com> | 2011-08-19 23:56:34 +0000 |
|---|---|---|
| committer | Enrico Granata <granata.enrico@gmail.com> | 2011-08-19 23:56:34 +0000 |
| commit | 274fd6e965731fbfb0be9a2253c6378709aba69e (patch) | |
| tree | 2d46b216903a6579ede3525b07a6206a3f229944 /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
| parent | 38d813087ea899e5afbd7638f6084a63433ed01e (diff) | |
| download | bcm5719-llvm-274fd6e965731fbfb0be9a2253c6378709aba69e.tar.gz bcm5719-llvm-274fd6e965731fbfb0be9a2253c6378709aba69e.zip | |
Fixed some SWIG interoperability issues
llvm-svn: 138154
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 64efa528dd0..588e2c15651 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/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::RunScriptBasedCommand(const char* impl_function, } ScriptInterpreterPython *python_interpreter = this; - + lldb::DebuggerSP debugger_sp = m_interpreter.GetDebugger().GetSP(); bool ret_val; @@ -1946,7 +1947,7 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function, debugger_sp, args, err_msg, - (void*)&cmd_retobj); + cmd_retobj); python_interpreter->LeaveSession (); } else @@ -1960,7 +1961,7 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function, debugger_sp, args, err_msg, - (void*)&cmd_retobj); + cmd_retobj); python_interpreter->LeaveSession (); ReleasePythonLock (); } @@ -1969,7 +1970,7 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function, error.SetErrorString(err_msg.c_str()); else error.Clear(); - + return ret_val; |

