mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 10:55:58 +08:00
Revert "[lldb] Extend frame recognizers to hide frames from backtraces (#104523)"
This reverts commit f01f80ce6c.
This commit introduces an msan violation. See the discussion on https://github.com/llvm/llvm-project/pull/104523.
This commit is contained in:
@@ -813,7 +813,7 @@ PythonObject lldb_private::python::SWIGBridge::LLDBSWIGPython_CreateFrameRecogni
|
||||
}
|
||||
|
||||
PyObject *lldb_private::python::SWIGBridge::LLDBSwigPython_GetRecognizedArguments(
|
||||
PyObject *implementor, const lldb::StackFrameSP &frame_sp) {
|
||||
PyObject * implementor, const lldb::StackFrameSP &frame_sp) {
|
||||
static char callee_name[] = "get_recognized_arguments";
|
||||
|
||||
PythonObject arg = SWIGBridge::ToSWIGWrapper(frame_sp);
|
||||
@@ -824,22 +824,6 @@ PyObject *lldb_private::python::SWIGBridge::LLDBSwigPython_GetRecognizedArgument
|
||||
return result;
|
||||
}
|
||||
|
||||
bool lldb_private::python::SWIGBridge::LLDBSwigPython_ShouldHide(
|
||||
PyObject *implementor, const lldb::StackFrameSP &frame_sp) {
|
||||
static char callee_name[] = "should_hide";
|
||||
|
||||
PythonObject arg = SWIGBridge::ToSWIGWrapper(frame_sp);
|
||||
|
||||
PythonString str(callee_name);
|
||||
|
||||
PyObject *result =
|
||||
PyObject_CallMethodObjArgs(implementor, str.get(), arg.get(), NULL);
|
||||
bool ret_val = result ? PyObject_IsTrue(result) : false;
|
||||
Py_XDECREF(result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
void *lldb_private::python::SWIGBridge::LLDBSWIGPython_GetDynamicSetting(
|
||||
void *module, const char *setting, const lldb::TargetSP &target_sp) {
|
||||
if (!module || !setting)
|
||||
|
||||
Reference in New Issue
Block a user