Skip to content

Commit 4464585

Browse files
committed
[lldb] Update SWIG python static bindings
Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 51d8b4b commit 4464585

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60815,6 +60815,70 @@ SWIGINTERN PyObject *_wrap_SBTarget_GetABIName(PyObject *self, PyObject *args) {
6081560815
}
6081660816

6081760817

60818+
SWIGINTERN PyObject *_wrap_SBTarget_GetLabel(PyObject *self, PyObject *args) {
60819+
PyObject *resultobj = 0;
60820+
lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
60821+
void *argp1 = 0 ;
60822+
int res1 = 0 ;
60823+
PyObject *swig_obj[1] ;
60824+
char *result = 0 ;
60825+
60826+
if (!args) SWIG_fail;
60827+
swig_obj[0] = args;
60828+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBTarget, 0 | 0 );
60829+
if (!SWIG_IsOK(res1)) {
60830+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBTarget_GetLabel" "', argument " "1"" of type '" "lldb::SBTarget const *""'");
60831+
}
60832+
arg1 = reinterpret_cast< lldb::SBTarget * >(argp1);
60833+
{
60834+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
60835+
result = (char *)((lldb::SBTarget const *)arg1)->GetLabel();
60836+
SWIG_PYTHON_THREAD_END_ALLOW;
60837+
}
60838+
resultobj = SWIG_FromCharPtr((const char *)result);
60839+
return resultobj;
60840+
fail:
60841+
return NULL;
60842+
}
60843+
60844+
60845+
SWIGINTERN PyObject *_wrap_SBTarget_SetLabel(PyObject *self, PyObject *args) {
60846+
PyObject *resultobj = 0;
60847+
lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
60848+
char *arg2 = (char *) 0 ;
60849+
void *argp1 = 0 ;
60850+
int res1 = 0 ;
60851+
int res2 ;
60852+
char *buf2 = 0 ;
60853+
int alloc2 = 0 ;
60854+
PyObject *swig_obj[2] ;
60855+
lldb::SBError result;
60856+
60857+
if (!SWIG_Python_UnpackTuple(args, "SBTarget_SetLabel", 2, 2, swig_obj)) SWIG_fail;
60858+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBTarget, 0 | 0 );
60859+
if (!SWIG_IsOK(res1)) {
60860+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBTarget_SetLabel" "', argument " "1"" of type '" "lldb::SBTarget *""'");
60861+
}
60862+
arg1 = reinterpret_cast< lldb::SBTarget * >(argp1);
60863+
res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
60864+
if (!SWIG_IsOK(res2)) {
60865+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBTarget_SetLabel" "', argument " "2"" of type '" "char const *""'");
60866+
}
60867+
arg2 = reinterpret_cast< char * >(buf2);
60868+
{
60869+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
60870+
result = (arg1)->SetLabel((char const *)arg2);
60871+
SWIG_PYTHON_THREAD_END_ALLOW;
60872+
}
60873+
resultobj = SWIG_NewPointerObj((new lldb::SBError(result)), SWIGTYPE_p_lldb__SBError, SWIG_POINTER_OWN | 0 );
60874+
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
60875+
return resultobj;
60876+
fail:
60877+
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
60878+
return NULL;
60879+
}
60880+
60881+
6081860882
SWIGINTERN PyObject *_wrap_SBTarget_GetDataByteSize(PyObject *self, PyObject *args) {
6081960883
PyObject *resultobj = 0;
6082060884
lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
@@ -90469,6 +90533,8 @@ static PyMethodDef SwigMethods[] = {
9046990533
{ "SBTarget_GetAddressByteSize", _wrap_SBTarget_GetAddressByteSize, METH_O, "SBTarget_GetAddressByteSize(SBTarget self) -> uint32_t"},
9047090534
{ "SBTarget_GetTriple", _wrap_SBTarget_GetTriple, METH_O, "SBTarget_GetTriple(SBTarget self) -> char const *"},
9047190535
{ "SBTarget_GetABIName", _wrap_SBTarget_GetABIName, METH_O, "SBTarget_GetABIName(SBTarget self) -> char const *"},
90536+
{ "SBTarget_GetLabel", _wrap_SBTarget_GetLabel, METH_O, "SBTarget_GetLabel(SBTarget self) -> char const *"},
90537+
{ "SBTarget_SetLabel", _wrap_SBTarget_SetLabel, METH_VARARGS, "SBTarget_SetLabel(SBTarget self, char const * label) -> SBError"},
9047290538
{ "SBTarget_GetDataByteSize", _wrap_SBTarget_GetDataByteSize, METH_O, "\n"
9047390539
"SBTarget_GetDataByteSize(SBTarget self) -> uint32_t\n"
9047490540
"\n"

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10594,6 +10594,14 @@ def GetABIName(self):
1059410594
r"""GetABIName(SBTarget self) -> char const *"""
1059510595
return _lldb.SBTarget_GetABIName(self)
1059610596

10597+
def GetLabel(self):
10598+
r"""GetLabel(SBTarget self) -> char const *"""
10599+
return _lldb.SBTarget_GetLabel(self)
10600+
10601+
def SetLabel(self, label):
10602+
r"""SetLabel(SBTarget self, char const * label) -> SBError"""
10603+
return _lldb.SBTarget_SetLabel(self, label)
10604+
1059710605
def GetDataByteSize(self):
1059810606
r"""
1059910607
GetDataByteSize(SBTarget self) -> uint32_t

0 commit comments

Comments
 (0)