Skip to content

Commit 58d3c85

Browse files
[lldb] Update swig bindings
1 parent 4f20946 commit 58d3c85

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

lldb/bindings/python/static-binding/LLDBWrapPython.cpp

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5653,7 +5653,7 @@ PythonObject lldb_private::python::SWIGBridge::LLDBSWIGPython_CreateFrameRecogni
56535653
}
56545654

56555655
PyObject *lldb_private::python::SWIGBridge::LLDBSwigPython_GetRecognizedArguments(
5656-
PyObject * implementor, const lldb::StackFrameSP &frame_sp) {
5656+
PyObject *implementor, const lldb::StackFrameSP &frame_sp) {
56575657
static char callee_name[] = "get_recognized_arguments";
56585658

56595659
PythonObject arg = SWIGBridge::ToSWIGWrapper(frame_sp);
@@ -5664,6 +5664,22 @@ PyObject *lldb_private::python::SWIGBridge::LLDBSwigPython_GetRecognizedArgument
56645664
return result;
56655665
}
56665666

5667+
bool lldb_private::python::SWIGBridge::LLDBSwigPython_ShouldHide(
5668+
PyObject *implementor, const lldb::StackFrameSP &frame_sp) {
5669+
static char callee_name[] = "should_hide";
5670+
5671+
PythonObject arg = SWIGBridge::ToSWIGWrapper(frame_sp);
5672+
5673+
PythonString str(callee_name);
5674+
5675+
PyObject *result =
5676+
PyObject_CallMethodObjArgs(implementor, str.get(), arg.get(), NULL);
5677+
bool ret_val = result ? PyObject_IsTrue(result) : false;
5678+
Py_XDECREF(result);
5679+
5680+
return ret_val;
5681+
}
5682+
56675683
void *lldb_private::python::SWIGBridge::LLDBSWIGPython_GetDynamicSetting(
56685684
void *module, const char *setting, const lldb::TargetSP &target_sp) {
56695685
if (!module || !setting)
@@ -37378,6 +37394,34 @@ SWIGINTERN PyObject *_wrap_SBFrame_IsArtificial(PyObject *self, PyObject *args)
3737837394
}
3737937395

3738037396

37397+
SWIGINTERN PyObject *_wrap_SBFrame_IsHidden(PyObject *self, PyObject *args) {
37398+
PyObject *resultobj = 0;
37399+
lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
37400+
void *argp1 = 0 ;
37401+
int res1 = 0 ;
37402+
PyObject *swig_obj[1] ;
37403+
bool result;
37404+
37405+
(void)self;
37406+
if (!args) SWIG_fail;
37407+
swig_obj[0] = args;
37408+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBFrame, 0 | 0 );
37409+
if (!SWIG_IsOK(res1)) {
37410+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBFrame_IsHidden" "', argument " "1"" of type '" "lldb::SBFrame const *""'");
37411+
}
37412+
arg1 = reinterpret_cast< lldb::SBFrame * >(argp1);
37413+
{
37414+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
37415+
result = (bool)((lldb::SBFrame const *)arg1)->IsHidden();
37416+
SWIG_PYTHON_THREAD_END_ALLOW;
37417+
}
37418+
resultobj = SWIG_From_bool(static_cast< bool >(result));
37419+
return resultobj;
37420+
fail:
37421+
return NULL;
37422+
}
37423+
37424+
3738137425
SWIGINTERN PyObject *_wrap_SBFrame_EvaluateExpression__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
3738237426
PyObject *resultobj = 0;
3738337427
lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
@@ -96389,6 +96433,7 @@ static PyMethodDef SwigMethods[] = {
9638996433
" capture a tail call). Local variables may not be available in an artificial\n"
9639096434
" frame.\n"
9639196435
""},
96436+
{ "SBFrame_IsHidden", _wrap_SBFrame_IsHidden, METH_O, "SBFrame_IsHidden(SBFrame self) -> bool"},
9639296437
{ "SBFrame_EvaluateExpression", _wrap_SBFrame_EvaluateExpression, METH_VARARGS, "\n"
9639396438
"SBFrame_EvaluateExpression(SBFrame self, char const * expr) -> SBValue\n"
9639496439
"SBFrame_EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic) -> SBValue\n"

lldb/bindings/python/static-binding/lldb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6435,6 +6435,10 @@ def IsArtificial(self, *args):
64356435
"""
64366436
return _lldb.SBFrame_IsArtificial(self, *args)
64376437

6438+
def IsHidden(self):
6439+
r"""IsHidden(SBFrame self) -> bool"""
6440+
return _lldb.SBFrame_IsHidden(self)
6441+
64386442
def EvaluateExpression(self, *args):
64396443
r"""
64406444
EvaluateExpression(SBFrame self, char const * expr) -> SBValue

0 commit comments

Comments
 (0)