diff options
author | Kuba Mracek <mracek@apple.com> | 2018-10-31 00:29:17 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2018-10-31 00:29:17 +0000 |
commit | 377f9f9b3f65b530887d6bf0042799d1765b42d6 (patch) | |
tree | a6cc9ffd81a1940ec9bcbf83598e27e3fc90d438 /lldb/scripts/Python/python-wrapper.swig | |
parent | 9fd397b423ba442808957e65e3ad25a07cd203e4 (diff) | |
download | bcm5719-llvm-377f9f9b3f65b530887d6bf0042799d1765b42d6.tar.gz bcm5719-llvm-377f9f9b3f65b530887d6bf0042799d1765b42d6.zip |
Revert r345678 (build failure on Linux machines).
llvm-svn: 345680
Diffstat (limited to 'lldb/scripts/Python/python-wrapper.swig')
-rw-r--r-- | lldb/scripts/Python/python-wrapper.swig | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/lldb/scripts/Python/python-wrapper.swig b/lldb/scripts/Python/python-wrapper.swig index e6a6b7afb8e..1679d895e4a 100644 --- a/lldb/scripts/Python/python-wrapper.swig +++ b/lldb/scripts/Python/python-wrapper.swig @@ -785,52 +785,6 @@ LLDBSWIGPythonCreateOSPlugin } SWIGEXPORT void* -LLDBSWIGPython_CreateFrameRecognizer -( - const char *python_class_name, - const char *session_dictionary_name -) -{ - using namespace lldb_private; - - if (python_class_name == NULL || python_class_name[0] == '\0' || !session_dictionary_name) - Py_RETURN_NONE; - - PyErr_Cleaner py_err_cleaner(true); - - auto dict = PythonModule::MainModule().ResolveName<PythonDictionary>(session_dictionary_name); - auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>(python_class_name, dict); - - if (!pfunc.IsAllocated()) - Py_RETURN_NONE; - - auto result = pfunc(); - - if (result.IsAllocated()) - return result.release(); - - Py_RETURN_NONE; -} - -SWIGEXPORT PyObject* -LLDBSwigPython_GetRecognizedArguments -( - PyObject *implementor, - const lldb::StackFrameSP& frame_sp -) -{ - using namespace lldb_private; - - static char callee_name[] = "get_recognized_arguments"; - - lldb::SBFrame frame_sb(frame_sp); - PyObject *arg = SBTypeToSWIGWrapper(frame_sb); - - PyObject* result = PyObject_CallMethodObjArgs(implementor, PyString_FromString(callee_name), arg, NULL); - return result; -} - -SWIGEXPORT void* LLDBSWIGPython_GetDynamicSetting (void* module, const char* setting, const lldb::TargetSP& target_sp) { using namespace lldb_private; |