Skip to content

Commit f04e63e

Browse files
authored
Merge pull request #2030 from Teemperor/swift/main-bindings-update
[lldb] Update static bindings
2 parents 56a74d3 + 77608cd commit f04e63e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7729,6 +7729,33 @@ SWIGINTERN PyObject *_wrap_SBBreakpoint_ClearAllBreakpointSites(PyObject *SWIGUN
77297729
}
77307730

77317731

7732+
SWIGINTERN PyObject *_wrap_SBBreakpoint_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7733+
PyObject *resultobj = 0;
7734+
lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
7735+
void *argp1 = 0 ;
7736+
int res1 = 0 ;
7737+
PyObject *swig_obj[1] ;
7738+
lldb::SBTarget result;
7739+
7740+
if (!args) SWIG_fail;
7741+
swig_obj[0] = args;
7742+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBBreakpoint, 0 | 0 );
7743+
if (!SWIG_IsOK(res1)) {
7744+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBBreakpoint_GetTarget" "', argument " "1"" of type '" "lldb::SBBreakpoint const *""'");
7745+
}
7746+
arg1 = reinterpret_cast< lldb::SBBreakpoint * >(argp1);
7747+
{
7748+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
7749+
result = ((lldb::SBBreakpoint const *)arg1)->GetTarget();
7750+
SWIG_PYTHON_THREAD_END_ALLOW;
7751+
}
7752+
resultobj = SWIG_NewPointerObj((new lldb::SBTarget(static_cast< const lldb::SBTarget& >(result))), SWIGTYPE_p_lldb__SBTarget, SWIG_POINTER_OWN | 0 );
7753+
return resultobj;
7754+
fail:
7755+
return NULL;
7756+
}
7757+
7758+
77327759
SWIGINTERN PyObject *_wrap_SBBreakpoint_FindLocationByAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
77337760
PyObject *resultobj = 0;
77347761
lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
@@ -81121,6 +81148,7 @@ static PyMethodDef SwigMethods[] = {
8112181148
{ "SBBreakpoint_IsValid", _wrap_SBBreakpoint_IsValid, METH_O, "SBBreakpoint_IsValid(SBBreakpoint self) -> bool"},
8112281149
{ "SBBreakpoint___nonzero__", _wrap_SBBreakpoint___nonzero__, METH_O, "SBBreakpoint___nonzero__(SBBreakpoint self) -> bool"},
8112381150
{ "SBBreakpoint_ClearAllBreakpointSites", _wrap_SBBreakpoint_ClearAllBreakpointSites, METH_O, "SBBreakpoint_ClearAllBreakpointSites(SBBreakpoint self)"},
81151+
{ "SBBreakpoint_GetTarget", _wrap_SBBreakpoint_GetTarget, METH_O, "SBBreakpoint_GetTarget(SBBreakpoint self) -> SBTarget"},
8112481152
{ "SBBreakpoint_FindLocationByAddress", _wrap_SBBreakpoint_FindLocationByAddress, METH_VARARGS, "SBBreakpoint_FindLocationByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> SBBreakpointLocation"},
8112581153
{ "SBBreakpoint_FindLocationIDByAddress", _wrap_SBBreakpoint_FindLocationIDByAddress, METH_VARARGS, "SBBreakpoint_FindLocationIDByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> lldb::break_id_t"},
8112681154
{ "SBBreakpoint_FindLocationByID", _wrap_SBBreakpoint_FindLocationByID, METH_VARARGS, "SBBreakpoint_FindLocationByID(SBBreakpoint self, lldb::break_id_t bp_loc_id) -> SBBreakpointLocation"},

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,6 +2171,10 @@ def ClearAllBreakpointSites(self):
21712171
r"""ClearAllBreakpointSites(SBBreakpoint self)"""
21722172
return _lldb.SBBreakpoint_ClearAllBreakpointSites(self)
21732173

2174+
def GetTarget(self):
2175+
r"""GetTarget(SBBreakpoint self) -> SBTarget"""
2176+
return _lldb.SBBreakpoint_GetTarget(self)
2177+
21742178
def FindLocationByAddress(self, vm_addr):
21752179
r"""FindLocationByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> SBBreakpointLocation"""
21762180
return _lldb.SBBreakpoint_FindLocationByAddress(self, vm_addr)

0 commit comments

Comments
 (0)