mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
Revert r345686 due to build failures
llvm-svn: 345688
This commit is contained in:
1 parent
f39a9bbe72
commit
cb3628bcc0
24 files changed
+16
-1162
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user