Skip to content

Commit 40f9432

Browse files
committed
[lldb] Regenerate the static bindings
1 parent cd62e2a commit 40f9432

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40700,6 +40700,22 @@ SWIGINTERN PyObject *_wrap_SBModule_GetNumberAllocatedModules(PyObject *SWIGUNUS
4070040700
}
4070140701

4070240702

40703+
SWIGINTERN PyObject *_wrap_SBModule_GarbageCollectAllocatedModules(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40704+
PyObject *resultobj = 0;
40705+
40706+
if (!SWIG_Python_UnpackTuple(args, "SBModule_GarbageCollectAllocatedModules", 0, 0, 0)) SWIG_fail;
40707+
{
40708+
SWIG_PYTHON_THREAD_BEGIN_ALLOW;
40709+
lldb::SBModule::GarbageCollectAllocatedModules();
40710+
SWIG_PYTHON_THREAD_END_ALLOW;
40711+
}
40712+
resultobj = SWIG_Py_Void();
40713+
return resultobj;
40714+
fail:
40715+
return NULL;
40716+
}
40717+
40718+
4070340719
SWIGINTERN PyObject *_wrap_SBModule___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4070440720
PyObject *resultobj = 0;
4070540721
lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
@@ -82548,6 +82564,17 @@ static PyMethodDef SwigMethods[] = {
8254882564
" @return\n"
8254982565
" The number of modules in the module cache.\n"
8255082566
""},
82567+
{ "SBModule_GarbageCollectAllocatedModules", _wrap_SBModule_GarbageCollectAllocatedModules, METH_NOARGS, "\n"
82568+
"SBModule_GarbageCollectAllocatedModules()\n"
82569+
"\n"
82570+
" Removes all modules which are no longer needed by any part of LLDB from\n"
82571+
" the module cache.\n"
82572+
"\n"
82573+
" This is an implementation detail exposed for testing and should not be\n"
82574+
" relied upon. Use SBDebugger::MemoryPressureDetected instead to reduce\n"
82575+
" LLDB's memory consumption during execution.\n"
82576+
"\n"
82577+
""},
8255182578
{ "SBModule___str__", _wrap_SBModule___str__, METH_O, "SBModule___str__(SBModule self) -> std::string"},
8255282579
{ "SBModule_swigregister", SBModule_swigregister, METH_O, NULL},
8255382580
{ "SBModule_swiginit", SBModule_swiginit, METH_VARARGS, NULL},

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7484,6 +7484,21 @@ def GetNumberAllocatedModules():
74847484
"""
74857485
return _lldb.SBModule_GetNumberAllocatedModules()
74867486

7487+
@staticmethod
7488+
def GarbageCollectAllocatedModules():
7489+
r"""
7490+
GarbageCollectAllocatedModules()
7491+
7492+
Removes all modules which are no longer needed by any part of LLDB from
7493+
the module cache.
7494+
7495+
This is an implementation detail exposed for testing and should not be
7496+
relied upon. Use SBDebugger::MemoryPressureDetected instead to reduce
7497+
LLDB's memory consumption during execution.
7498+
7499+
"""
7500+
return _lldb.SBModule_GarbageCollectAllocatedModules()
7501+
74877502
def __str__(self):
74887503
r"""__str__(SBModule self) -> std::string"""
74897504
return _lldb.SBModule___str__(self)
@@ -7716,6 +7731,20 @@ def SBModule_GetNumberAllocatedModules():
77167731
"""
77177732
return _lldb.SBModule_GetNumberAllocatedModules()
77187733

7734+
def SBModule_GarbageCollectAllocatedModules():
7735+
r"""
7736+
SBModule_GarbageCollectAllocatedModules()
7737+
7738+
Removes all modules which are no longer needed by any part of LLDB from
7739+
the module cache.
7740+
7741+
This is an implementation detail exposed for testing and should not be
7742+
relied upon. Use SBDebugger::MemoryPressureDetected instead to reduce
7743+
LLDB's memory consumption during execution.
7744+
7745+
"""
7746+
return _lldb.SBModule_GarbageCollectAllocatedModules()
7747+
77197748
class SBModuleSpec(object):
77207749
r"""Proxy of C++ lldb::SBModuleSpec class."""
77217750

0 commit comments

Comments
 (0)