Skip to content

[lldb] Update swig bindings #9314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 46 additions & 1 deletion lldb/bindings/python/static-binding/LLDBWrapPython.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5653,7 +5653,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);
Expand All @@ -5664,6 +5664,22 @@ 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 ret_val;
}

void *lldb_private::python::SWIGBridge::LLDBSWIGPython_GetDynamicSetting(
void *module, const char *setting, const lldb::TargetSP &target_sp) {
if (!module || !setting)
Expand Down Expand Up @@ -37378,6 +37394,34 @@ SWIGINTERN PyObject *_wrap_SBFrame_IsArtificial(PyObject *self, PyObject *args)
}


SWIGINTERN PyObject *_wrap_SBFrame_IsHidden(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
bool result;

(void)self;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBFrame, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBFrame_IsHidden" "', argument " "1"" of type '" "lldb::SBFrame const *""'");
}
arg1 = reinterpret_cast< lldb::SBFrame * >(argp1);
{
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
result = (bool)((lldb::SBFrame const *)arg1)->IsHidden();
SWIG_PYTHON_THREAD_END_ALLOW;
}
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}


SWIGINTERN PyObject *_wrap_SBFrame_EvaluateExpression__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
Expand Down Expand Up @@ -96389,6 +96433,7 @@ static PyMethodDef SwigMethods[] = {
" capture a tail call). Local variables may not be available in an artificial\n"
" frame.\n"
""},
{ "SBFrame_IsHidden", _wrap_SBFrame_IsHidden, METH_O, "SBFrame_IsHidden(SBFrame self) -> bool"},
{ "SBFrame_EvaluateExpression", _wrap_SBFrame_EvaluateExpression, METH_VARARGS, "\n"
"SBFrame_EvaluateExpression(SBFrame self, char const * expr) -> SBValue\n"
"SBFrame_EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic) -> SBValue\n"
Expand Down
4 changes: 4 additions & 0 deletions lldb/bindings/python/static-binding/lldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6435,6 +6435,10 @@ def IsArtificial(self, *args):
"""
return _lldb.SBFrame_IsArtificial(self, *args)

def IsHidden(self):
r"""IsHidden(SBFrame self) -> bool"""
return _lldb.SBFrame_IsHidden(self)

def EvaluateExpression(self, *args):
r"""
EvaluateExpression(SBFrame self, char const * expr) -> SBValue
Expand Down