@@ -5238,6 +5238,30 @@ void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBBreakpoint(PyObject *
52385238 return sb_ptr;
52395239}
52405240
5241+ void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBFrame(PyObject * data) {
5242+ lldb::SBFrame *sb_ptr = nullptr;
5243+
5244+ int valid_cast =
5245+ SWIG_ConvertPtr(data, (void **)&sb_ptr, SWIGTYPE_p_lldb__SBFrame, 0);
5246+
5247+ if (valid_cast == -1)
5248+ return NULL;
5249+
5250+ return sb_ptr;
5251+ }
5252+
5253+ void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBBreakpointLocation(PyObject * data) {
5254+ lldb::SBBreakpointLocation *sb_ptr = nullptr;
5255+
5256+ int valid_cast =
5257+ SWIG_ConvertPtr(data, (void **)&sb_ptr, SWIGTYPE_p_lldb__SBBreakpointLocation, 0);
5258+
5259+ if (valid_cast == -1)
5260+ return NULL;
5261+
5262+ return sb_ptr;
5263+ }
5264+
52415265void *lldb_private::python::LLDBSWIGPython_CastPyObjectToSBAttachInfo(PyObject * data) {
52425266 lldb::SBAttachInfo *sb_ptr = nullptr;
52435267
@@ -11924,6 +11948,34 @@ SWIGINTERN PyObject *_wrap_SBBreakpoint_AddLocation(PyObject *self, PyObject *ar
1192411948}
1192511949
1192611950
11951+ SWIGINTERN PyObject *_wrap_SBBreakpoint_AddFacadeLocation(PyObject *self, PyObject *args) {
11952+ PyObject *resultobj = 0;
11953+ lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
11954+ void *argp1 = 0 ;
11955+ int res1 = 0 ;
11956+ PyObject *swig_obj[1] ;
11957+ lldb::SBBreakpointLocation result;
11958+
11959+ (void)self;
11960+ if (!args) SWIG_fail;
11961+ swig_obj[0] = args;
11962+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBBreakpoint, 0 | 0 );
11963+ if (!SWIG_IsOK(res1)) {
11964+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBBreakpoint_AddFacadeLocation" "', argument " "1"" of type '" "lldb::SBBreakpoint *""'");
11965+ }
11966+ arg1 = reinterpret_cast< lldb::SBBreakpoint * >(argp1);
11967+ {
11968+ SWIG_PYTHON_THREAD_BEGIN_ALLOW;
11969+ result = (arg1)->AddFacadeLocation();
11970+ SWIG_PYTHON_THREAD_END_ALLOW;
11971+ }
11972+ resultobj = SWIG_NewPointerObj((new lldb::SBBreakpointLocation(result)), SWIGTYPE_p_lldb__SBBreakpointLocation, SWIG_POINTER_OWN | 0 );
11973+ return resultobj;
11974+ fail:
11975+ return NULL;
11976+ }
11977+
11978+
1192711979SWIGINTERN PyObject *_wrap_SBBreakpoint_SerializeToStructuredData(PyObject *self, PyObject *args) {
1192811980 PyObject *resultobj = 0;
1192911981 lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
@@ -69598,13 +69650,104 @@ SWIGINTERN PyObject *_wrap_SBTarget_BreakpointCreateByName__SWIG_4(PyObject *sel
6959869650}
6959969651
6960069652
69653+ SWIGINTERN PyObject *_wrap_SBTarget_BreakpointCreateByName__SWIG_5(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
69654+ PyObject *resultobj = 0;
69655+ lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
69656+ char *arg2 = (char *) 0 ;
69657+ uint32_t arg3 ;
69658+ lldb::LanguageType arg4 ;
69659+ lldb::addr_t arg5 ;
69660+ bool arg6 ;
69661+ lldb::SBFileSpecList *arg7 = 0 ;
69662+ lldb::SBFileSpecList *arg8 = 0 ;
69663+ void *argp1 = 0 ;
69664+ int res1 = 0 ;
69665+ int res2 ;
69666+ char *buf2 = 0 ;
69667+ int alloc2 = 0 ;
69668+ unsigned int val3 ;
69669+ int ecode3 = 0 ;
69670+ int val4 ;
69671+ int ecode4 = 0 ;
69672+ unsigned long long val5 ;
69673+ int ecode5 = 0 ;
69674+ bool val6 ;
69675+ int ecode6 = 0 ;
69676+ void *argp7 = 0 ;
69677+ int res7 = 0 ;
69678+ void *argp8 = 0 ;
69679+ int res8 = 0 ;
69680+ lldb::SBBreakpoint result;
69681+
69682+ (void)self;
69683+ if ((nobjs < 8) || (nobjs > 8)) SWIG_fail;
69684+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_lldb__SBTarget, 0 | 0 );
69685+ if (!SWIG_IsOK(res1)) {
69686+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "1"" of type '" "lldb::SBTarget *""'");
69687+ }
69688+ arg1 = reinterpret_cast< lldb::SBTarget * >(argp1);
69689+ res2 = SWIG_AsCharPtrAndSize(swig_obj[1], &buf2, NULL, &alloc2);
69690+ if (!SWIG_IsOK(res2)) {
69691+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "2"" of type '" "char const *""'");
69692+ }
69693+ arg2 = reinterpret_cast< char * >(buf2);
69694+ ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
69695+ if (!SWIG_IsOK(ecode3)) {
69696+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "3"" of type '" "uint32_t""'");
69697+ }
69698+ arg3 = static_cast< uint32_t >(val3);
69699+ ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
69700+ if (!SWIG_IsOK(ecode4)) {
69701+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "4"" of type '" "lldb::LanguageType""'");
69702+ }
69703+ arg4 = static_cast< lldb::LanguageType >(val4);
69704+ ecode5 = SWIG_AsVal_unsigned_SS_long_SS_long(swig_obj[4], &val5);
69705+ if (!SWIG_IsOK(ecode5)) {
69706+ SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "5"" of type '" "lldb::addr_t""'");
69707+ }
69708+ arg5 = static_cast< lldb::addr_t >(val5);
69709+ ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
69710+ if (!SWIG_IsOK(ecode6)) {
69711+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "6"" of type '" "bool""'");
69712+ }
69713+ arg6 = static_cast< bool >(val6);
69714+ res7 = SWIG_ConvertPtr(swig_obj[6], &argp7, SWIGTYPE_p_lldb__SBFileSpecList, 0 | 0);
69715+ if (!SWIG_IsOK(res7)) {
69716+ SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "7"" of type '" "lldb::SBFileSpecList const &""'");
69717+ }
69718+ if (!argp7) {
69719+ SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "SBTarget_BreakpointCreateByName" "', argument " "7"" of type '" "lldb::SBFileSpecList const &""'");
69720+ }
69721+ arg7 = reinterpret_cast< lldb::SBFileSpecList * >(argp7);
69722+ res8 = SWIG_ConvertPtr(swig_obj[7], &argp8, SWIGTYPE_p_lldb__SBFileSpecList, 0 | 0);
69723+ if (!SWIG_IsOK(res8)) {
69724+ SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "SBTarget_BreakpointCreateByName" "', argument " "8"" of type '" "lldb::SBFileSpecList const &""'");
69725+ }
69726+ if (!argp8) {
69727+ SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "SBTarget_BreakpointCreateByName" "', argument " "8"" of type '" "lldb::SBFileSpecList const &""'");
69728+ }
69729+ arg8 = reinterpret_cast< lldb::SBFileSpecList * >(argp8);
69730+ {
69731+ SWIG_PYTHON_THREAD_BEGIN_ALLOW;
69732+ result = (arg1)->BreakpointCreateByName((char const *)arg2,arg3,arg4,arg5,arg6,(lldb::SBFileSpecList const &)*arg7,(lldb::SBFileSpecList const &)*arg8);
69733+ SWIG_PYTHON_THREAD_END_ALLOW;
69734+ }
69735+ resultobj = SWIG_NewPointerObj((new lldb::SBBreakpoint(result)), SWIGTYPE_p_lldb__SBBreakpoint, SWIG_POINTER_OWN | 0 );
69736+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
69737+ return resultobj;
69738+ fail:
69739+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
69740+ return NULL;
69741+ }
69742+
69743+
6960169744SWIGINTERN PyObject *_wrap_SBTarget_BreakpointCreateByName(PyObject *self, PyObject *args) {
6960269745 Py_ssize_t argc;
69603- PyObject *argv[7 ] = {
69746+ PyObject *argv[9 ] = {
6960469747 0
6960569748 };
6960669749
69607- if (!(argc = SWIG_Python_UnpackTuple(args, "SBTarget_BreakpointCreateByName", 0, 6 , argv))) SWIG_fail;
69750+ if (!(argc = SWIG_Python_UnpackTuple(args, "SBTarget_BreakpointCreateByName", 0, 8 , argv))) SWIG_fail;
6960869751 --argc;
6960969752 if (argc == 2) {
6961069753 int _v = 0;
@@ -69717,6 +69860,51 @@ SWIGINTERN PyObject *_wrap_SBTarget_BreakpointCreateByName(PyObject *self, PyObj
6971769860 }
6971869861 }
6971969862 }
69863+ if (argc == 8) {
69864+ int _v = 0;
69865+ void *vptr = 0;
69866+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBTarget, 0);
69867+ _v = SWIG_CheckState(res);
69868+ if (_v) {
69869+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
69870+ _v = SWIG_CheckState(res);
69871+ if (_v) {
69872+ {
69873+ int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
69874+ _v = SWIG_CheckState(res);
69875+ }
69876+ if (_v) {
69877+ {
69878+ int res = SWIG_AsVal_int(argv[3], NULL);
69879+ _v = SWIG_CheckState(res);
69880+ }
69881+ if (_v) {
69882+ {
69883+ int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[4], NULL);
69884+ _v = SWIG_CheckState(res);
69885+ }
69886+ if (_v) {
69887+ {
69888+ int res = SWIG_AsVal_bool(argv[5], NULL);
69889+ _v = SWIG_CheckState(res);
69890+ }
69891+ if (_v) {
69892+ int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_lldb__SBFileSpecList, SWIG_POINTER_NO_NULL | 0);
69893+ _v = SWIG_CheckState(res);
69894+ if (_v) {
69895+ int res = SWIG_ConvertPtr(argv[7], 0, SWIGTYPE_p_lldb__SBFileSpecList, SWIG_POINTER_NO_NULL | 0);
69896+ _v = SWIG_CheckState(res);
69897+ if (_v) {
69898+ return _wrap_SBTarget_BreakpointCreateByName__SWIG_5(self, argc, argv);
69899+ }
69900+ }
69901+ }
69902+ }
69903+ }
69904+ }
69905+ }
69906+ }
69907+ }
6972069908
6972169909fail:
6972269910 SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SBTarget_BreakpointCreateByName'.\n"
@@ -69725,7 +69913,8 @@ SWIGINTERN PyObject *_wrap_SBTarget_BreakpointCreateByName(PyObject *self, PyObj
6972569913 " lldb::SBTarget::BreakpointCreateByName(char const *)\n"
6972669914 " lldb::SBTarget::BreakpointCreateByName(char const *,lldb::SBFileSpecList const &,lldb::SBFileSpecList const &)\n"
6972769915 " lldb::SBTarget::BreakpointCreateByName(char const *,uint32_t,lldb::SBFileSpecList const &,lldb::SBFileSpecList const &)\n"
69728- " lldb::SBTarget::BreakpointCreateByName(char const *,uint32_t,lldb::LanguageType,lldb::SBFileSpecList const &,lldb::SBFileSpecList const &)\n");
69916+ " lldb::SBTarget::BreakpointCreateByName(char const *,uint32_t,lldb::LanguageType,lldb::SBFileSpecList const &,lldb::SBFileSpecList const &)\n"
69917+ " lldb::SBTarget::BreakpointCreateByName(char const *,uint32_t,lldb::LanguageType,lldb::addr_t,bool,lldb::SBFileSpecList const &,lldb::SBFileSpecList const &)\n");
6972969918 return 0;
6973069919}
6973169920
@@ -97056,7 +97245,16 @@ static PyMethodDef SwigMethods[] = {
9705697245 "breakpoint locations with hardware breakpoints. Returns an error if this\n"
9705797246 "fails, e.g. when there aren't enough hardware resources available.\n"
9705897247 ""},
97059- { "SBBreakpoint_AddLocation", _wrap_SBBreakpoint_AddLocation, METH_VARARGS, "SBBreakpoint_AddLocation(SBBreakpoint self, SBAddress address) -> SBError"},
97248+ { "SBBreakpoint_AddLocation", _wrap_SBBreakpoint_AddLocation, METH_VARARGS, "\n"
97249+ "Adds a location to the breakpoint at the address passed in.\n"
97250+ "Can only be called from a ScriptedBreakpointResolver...\n"
97251+ ""},
97252+ { "SBBreakpoint_AddFacadeLocation", _wrap_SBBreakpoint_AddFacadeLocation, METH_O, "\n"
97253+ "Add a \"Facade location\" to the breakpoint. This returns the Facade\n"
97254+ "Location that was added, which you can then use in\n"
97255+ "get_location_description and was_hit in your breakpoint resolver.\n"
97256+ "Can only be called from a ScriptedBreakpointResolver.\n"
97257+ ""},
9706097258 { "SBBreakpoint_SerializeToStructuredData", _wrap_SBBreakpoint_SerializeToStructuredData, METH_O, "SBBreakpoint_SerializeToStructuredData(SBBreakpoint self) -> SBStructuredData"},
9706197259 { "SBBreakpoint___repr__", _wrap_SBBreakpoint___repr__, METH_O, "SBBreakpoint___repr__(SBBreakpoint self) -> std::string"},
9706297260 { "SBBreakpoint_swigregister", SBBreakpoint_swigregister, METH_O, NULL},
@@ -101023,6 +101221,7 @@ static PyMethodDef SwigMethods[] = {
101023101221 "SBTarget_BreakpointCreateByName(SBTarget self, char const * symbol_name, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint\n"
101024101222 "SBTarget_BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t name_type_mask, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint\n"
101025101223 "SBTarget_BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint\n"
101224+ "SBTarget_BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, lldb::addr_t offset, bool offset_is_insn_count, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint\n"
101026101225 ""},
101027101226 { "SBTarget_BreakpointCreateByNames", _wrap_SBTarget_BreakpointCreateByNames, METH_VARARGS, "\n"
101028101227 "SBTarget_BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint\n"
@@ -105192,6 +105391,7 @@ SWIG_init(void) {
105192105391 SWIG_Python_SetConstant(d, "eLanguageTypeAssembly",SWIG_From_int(static_cast< int >(lldb::eLanguageTypeAssembly)));
105193105392 SWIG_Python_SetConstant(d, "eLanguageTypeC_sharp",SWIG_From_int(static_cast< int >(lldb::eLanguageTypeC_sharp)));
105194105393 SWIG_Python_SetConstant(d, "eLanguageTypeMojo",SWIG_From_int(static_cast< int >(lldb::eLanguageTypeMojo)));
105394+ SWIG_Python_SetConstant(d, "eLanguageTypeLastStandardLanguage",SWIG_From_int(static_cast< int >(lldb::eLanguageTypeLastStandardLanguage)));
105195105395 SWIG_Python_SetConstant(d, "eLanguageTypeMipsAssembler",SWIG_From_int(static_cast< int >(lldb::eLanguageTypeMipsAssembler)));
105196105396 SWIG_Python_SetConstant(d, "eNumLanguageTypes",SWIG_From_int(static_cast< int >(lldb::eNumLanguageTypes)));
105197105397 SWIG_Python_SetConstant(d, "eInstrumentationRuntimeTypeAddressSanitizer",SWIG_From_int(static_cast< int >(lldb::eInstrumentationRuntimeTypeAddressSanitizer)));
0 commit comments