Revert r345686 due to build failures

llvm-svn: 345688
This commit is contained in:
Kuba Mracek committed 2018-10-31 01:22:48 +00:00
1 parent f39a9bbe72
commit cb3628bcc0
24 files changed
+16 -1162

No files matched your search

-46
View File
@@ -784,52 +784,6 @@ LLDBSWIGPythonCreateOSPlugin
Py_RETURN_NONE;
}
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)
{