diff options
| author | Daniel Malea <daniel.malea@intel.com> | 2013-07-03 17:58:31 +0000 |
|---|---|---|
| committer | Daniel Malea <daniel.malea@intel.com> | 2013-07-03 17:58:31 +0000 |
| commit | 9a71a7d81bc6d0a70a702b9b242e72f9fa9ddaef (patch) | |
| tree | 15ba21d33a021eace460219fdfc9f6640d69592b /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
| parent | 4331ac7bd34e2776971392592a319051f1fa3857 (diff) | |
| download | bcm5719-llvm-9a71a7d81bc6d0a70a702b9b242e72f9fa9ddaef.tar.gz bcm5719-llvm-9a71a7d81bc6d0a70a702b9b242e72f9fa9ddaef.zip | |
Revert commits that cause broken builds on GCC buildbots
- build fails due to PyCallable template definition inside an extern "C" scope
This commit reverts 185240, 184893 and 184608.
llvm-svn: 185560
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 4e41d150842..e42ca6807ee 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -115,6 +115,7 @@ LLDBSwigPythonCallCommand (const char *python_function_name, const char *session_dictionary_name, lldb::DebuggerSP& debugger, const char* args, + std::string& err_msg, lldb_private::CommandReturnObject& cmd_retobj); extern "C" bool @@ -2969,7 +2970,7 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function, return false; } - bool ret_val = false; + bool ret_val; std::string err_msg; @@ -2994,11 +2995,12 @@ ScriptInterpreterPython::RunScriptBasedCommand(const char* impl_function, m_dictionary_name.c_str(), debugger_sp, args, + err_msg, cmd_retobj); } if (!ret_val) - error.SetErrorString("unable to execute script function"); + error.SetErrorString(err_msg.c_str()); else error.Clear(); |

