Skip to content

Commit d20dcb0

Browse files
committed
Fix the static bindings, and adjust for non-removal of .i files.
1 parent ceef605 commit d20dcb0

File tree

4 files changed

+133
-0
lines changed

4 files changed

+133
-0
lines changed

lldb/bindings/interface/SBCommandInterpreter.i

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ public:
174174

175175
bool
176176
WasInterrupted () const;
177+
178+
bool
179+
InterruptCommand();
177180
};
178181

179182
} // namespace lldb

lldb/bindings/interface/SBDebugger.i

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ public:
263263
void
264264
HandleCommand (const char *command);
265265

266+
void RequestInterrupt();
267+
void CancelInterruptRequest();
268+
bool InterruptRequested();
269+
266270
lldb::SBListener
267271
GetListener ();
268272

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

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15861,6 +15861,33 @@ SWIGINTERN PyObject *_wrap_SBCommandInterpreter_WasInterrupted(PyObject *self, P
1586115861
}
1586215862

1586315863

15864+
SWIGINTERN PyObject *_wrap_SBCommandInterpreter_InterruptCommand(PyObject *self, PyObject *args) {
15865+
PyObject *resultobj = 0;
15866+
lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
15867+
void *argp1 = 0 ;
15868+
int res1 = 0 ;
15869+
PyObject *swig_obj[1] ;
15870+
bool result;
15871+
15872+
if (!args) SWIG_fail;
15873+
swig_obj[0] = args;
15874+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBCommandInterpreter, 0 | 0 );
15875+
if (!SWIG_IsOK(res1)) {
15876+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBCommandInterpreter_InterruptCommand" "', argument " "1"" of type '" "lldb::SBCommandInterpreter *""'");
15877+
}
15878+
arg1 = reinterpret_cast< lldb::SBCommandInterpreter * >(argp1);
15879+
{
15880+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
15881+
result = (bool)(arg1)->InterruptCommand();
15882+
SWIG_PYTHON_THREAD_END_ALLOW;
15883+
}
15884+
resultobj = SWIG_From_bool(static_cast< bool >(result));
15885+
return resultobj;
15886+
fail:
15887+
return NULL;
15888+
}
15889+
15890+
1586415891
SWIGINTERN PyObject *SBCommandInterpreter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1586515892
PyObject *obj;
1586615893
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
@@ -23013,6 +23040,85 @@ SWIGINTERN PyObject *_wrap_SBDebugger_HandleCommand(PyObject *self, PyObject *ar
2301323040
}
2301423041

2301523042

23043+
SWIGINTERN PyObject *_wrap_SBDebugger_RequestInterrupt(PyObject *self, PyObject *args) {
23044+
PyObject *resultobj = 0;
23045+
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
23046+
void *argp1 = 0 ;
23047+
int res1 = 0 ;
23048+
PyObject *swig_obj[1] ;
23049+
23050+
if (!args) SWIG_fail;
23051+
swig_obj[0] = args;
23052+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBDebugger, 0 | 0 );
23053+
if (!SWIG_IsOK(res1)) {
23054+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBDebugger_RequestInterrupt" "', argument " "1"" of type '" "lldb::SBDebugger *""'");
23055+
}
23056+
arg1 = reinterpret_cast< lldb::SBDebugger * >(argp1);
23057+
{
23058+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23059+
(arg1)->RequestInterrupt();
23060+
SWIG_PYTHON_THREAD_END_ALLOW;
23061+
}
23062+
resultobj = SWIG_Py_Void();
23063+
return resultobj;
23064+
fail:
23065+
return NULL;
23066+
}
23067+
23068+
23069+
SWIGINTERN PyObject *_wrap_SBDebugger_CancelInterruptRequest(PyObject *self, PyObject *args) {
23070+
PyObject *resultobj = 0;
23071+
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
23072+
void *argp1 = 0 ;
23073+
int res1 = 0 ;
23074+
PyObject *swig_obj[1] ;
23075+
23076+
if (!args) SWIG_fail;
23077+
swig_obj[0] = args;
23078+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBDebugger, 0 | 0 );
23079+
if (!SWIG_IsOK(res1)) {
23080+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBDebugger_CancelInterruptRequest" "', argument " "1"" of type '" "lldb::SBDebugger *""'");
23081+
}
23082+
arg1 = reinterpret_cast< lldb::SBDebugger * >(argp1);
23083+
{
23084+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23085+
(arg1)->CancelInterruptRequest();
23086+
SWIG_PYTHON_THREAD_END_ALLOW;
23087+
}
23088+
resultobj = SWIG_Py_Void();
23089+
return resultobj;
23090+
fail:
23091+
return NULL;
23092+
}
23093+
23094+
23095+
SWIGINTERN PyObject *_wrap_SBDebugger_InterruptRequested(PyObject *self, PyObject *args) {
23096+
PyObject *resultobj = 0;
23097+
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
23098+
void *argp1 = 0 ;
23099+
int res1 = 0 ;
23100+
PyObject *swig_obj[1] ;
23101+
bool result;
23102+
23103+
if (!args) SWIG_fail;
23104+
swig_obj[0] = args;
23105+
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBDebugger, 0 | 0 );
23106+
if (!SWIG_IsOK(res1)) {
23107+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBDebugger_InterruptRequested" "', argument " "1"" of type '" "lldb::SBDebugger *""'");
23108+
}
23109+
arg1 = reinterpret_cast< lldb::SBDebugger * >(argp1);
23110+
{
23111+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
23112+
result = (bool)(arg1)->InterruptRequested();
23113+
SWIG_PYTHON_THREAD_END_ALLOW;
23114+
}
23115+
resultobj = SWIG_From_bool(static_cast< bool >(result));
23116+
return resultobj;
23117+
fail:
23118+
return NULL;
23119+
}
23120+
23121+
2301623122
SWIGINTERN PyObject *_wrap_SBDebugger_GetListener(PyObject *self, PyObject *args) {
2301723123
PyObject *resultobj = 0;
2301823124
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
@@ -84396,6 +84502,7 @@ static PyMethodDef SwigMethods[] = {
8439684502
{ "SBCommandInterpreter_HandleCompletionWithDescriptions", _wrap_SBCommandInterpreter_HandleCompletionWithDescriptions, METH_VARARGS, "SBCommandInterpreter_HandleCompletionWithDescriptions(SBCommandInterpreter self, char const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, SBStringList matches, SBStringList descriptions) -> int"},
8439784503
{ "SBCommandInterpreter_IsActive", _wrap_SBCommandInterpreter_IsActive, METH_O, "SBCommandInterpreter_IsActive(SBCommandInterpreter self) -> bool"},
8439884504
{ "SBCommandInterpreter_WasInterrupted", _wrap_SBCommandInterpreter_WasInterrupted, METH_O, "SBCommandInterpreter_WasInterrupted(SBCommandInterpreter self) -> bool"},
84505+
{ "SBCommandInterpreter_InterruptCommand", _wrap_SBCommandInterpreter_InterruptCommand, METH_O, "SBCommandInterpreter_InterruptCommand(SBCommandInterpreter self) -> bool"},
8439984506
{ "SBCommandInterpreter_swigregister", SBCommandInterpreter_swigregister, METH_O, NULL},
8440084507
{ "SBCommandInterpreter_swiginit", SBCommandInterpreter_swiginit, METH_VARARGS, NULL},
8440184508
{ "new_SBCommandInterpreterRunOptions", _wrap_new_SBCommandInterpreterRunOptions, METH_NOARGS, "new_SBCommandInterpreterRunOptions() -> SBCommandInterpreterRunOptions"},
@@ -84641,6 +84748,9 @@ static PyMethodDef SwigMethods[] = {
8464184748
{ "SBDebugger_GetErrorFile", _wrap_SBDebugger_GetErrorFile, METH_O, "SBDebugger_GetErrorFile(SBDebugger self) -> SBFile"},
8464284749
{ "SBDebugger_GetCommandInterpreter", _wrap_SBDebugger_GetCommandInterpreter, METH_O, "SBDebugger_GetCommandInterpreter(SBDebugger self) -> SBCommandInterpreter"},
8464384750
{ "SBDebugger_HandleCommand", _wrap_SBDebugger_HandleCommand, METH_VARARGS, "SBDebugger_HandleCommand(SBDebugger self, char const * command)"},
84751+
{ "SBDebugger_RequestInterrupt", _wrap_SBDebugger_RequestInterrupt, METH_O, "SBDebugger_RequestInterrupt(SBDebugger self)"},
84752+
{ "SBDebugger_CancelInterruptRequest", _wrap_SBDebugger_CancelInterruptRequest, METH_O, "SBDebugger_CancelInterruptRequest(SBDebugger self)"},
84753+
{ "SBDebugger_InterruptRequested", _wrap_SBDebugger_InterruptRequested, METH_O, "SBDebugger_InterruptRequested(SBDebugger self) -> bool"},
8464484754
{ "SBDebugger_GetListener", _wrap_SBDebugger_GetListener, METH_O, "SBDebugger_GetListener(SBDebugger self) -> SBListener"},
8464584755
{ "SBDebugger_HandleProcessEvent", _wrap_SBDebugger_HandleProcessEvent, METH_VARARGS, "\n"
8464684756
"SBDebugger_HandleProcessEvent(SBDebugger self, SBProcess process, SBEvent event, SBFile out, SBFile err)\n"

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3241,6 +3241,10 @@ def WasInterrupted(self):
32413241
r"""WasInterrupted(SBCommandInterpreter self) -> bool"""
32423242
return _lldb.SBCommandInterpreter_WasInterrupted(self)
32433243

3244+
def InterruptCommand(self):
3245+
r"""InterruptCommand(SBCommandInterpreter self) -> bool"""
3246+
return _lldb.SBCommandInterpreter_InterruptCommand(self)
3247+
32443248
# Register SBCommandInterpreter in _lldb:
32453249
_lldb.SBCommandInterpreter_swigregister(SBCommandInterpreter)
32463250
class SBCommandInterpreterRunOptions(object):
@@ -4352,6 +4356,18 @@ def HandleCommand(self, command):
43524356
r"""HandleCommand(SBDebugger self, char const * command)"""
43534357
return _lldb.SBDebugger_HandleCommand(self, command)
43544358

4359+
def RequestInterrupt(self):
4360+
r"""RequestInterrupt(SBDebugger self)"""
4361+
return _lldb.SBDebugger_RequestInterrupt(self)
4362+
4363+
def CancelInterruptRequest(self):
4364+
r"""CancelInterruptRequest(SBDebugger self)"""
4365+
return _lldb.SBDebugger_CancelInterruptRequest(self)
4366+
4367+
def InterruptRequested(self):
4368+
r"""InterruptRequested(SBDebugger self) -> bool"""
4369+
return _lldb.SBDebugger_InterruptRequested(self)
4370+
43554371
def GetListener(self):
43564372
r"""GetListener(SBDebugger self) -> SBListener"""
43574373
return _lldb.SBDebugger_GetListener(self)

0 commit comments

Comments
 (0)