Bug Summary

File:build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp
Warning:line 69017, column 13
Potential leak of memory pointed to by 'result'

Annotated Source Code

1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 3.0.10
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11
12#ifndef SWIGPYTHON
13#define SWIGPYTHON
14#endif
15
16#define SWIG_PYTHON_THREADS
17#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
18
19
20#ifdef __cplusplus201103L
21/* SwigValueWrapper is described in swig.swg */
22template<typename T> class SwigValueWrapper {
23 struct SwigMovePointer {
24 T *ptr;
25 SwigMovePointer(T *p) : ptr(p) { }
26 ~SwigMovePointer() { delete ptr; }
27 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
28 } pointer;
29 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
30 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
31public:
32 SwigValueWrapper() : pointer(0) { }
33 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
34 operator T&() const { return *pointer.ptr; }
35 T *operator&() { return pointer.ptr; }
36};
37
38template <typename T> T SwigValueInit() {
39 return T();
40}
41#endif
42
43/* -----------------------------------------------------------------------------
44 * This section contains generic SWIG labels for method/variable
45 * declarations/attributes, and other compiler dependent labels.
46 * ----------------------------------------------------------------------------- */
47
48/* template workaround for compilers that cannot correctly implement the C++ standard */
49#ifndef SWIGTEMPLATEDISAMBIGUATOR
50# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
51# define SWIGTEMPLATEDISAMBIGUATOR template
52# elif defined(__HP_aCC)
53/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
54/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
55# define SWIGTEMPLATEDISAMBIGUATOR template
56# else
57# define SWIGTEMPLATEDISAMBIGUATOR
58# endif
59#endif
60
61/* inline attribute */
62#ifndef SWIGINLINEinline
63# if defined(__cplusplus201103L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__1))
64# define SWIGINLINEinline inline
65# else
66# define SWIGINLINEinline
67# endif
68#endif
69
70/* attribute recognised by some compilers to avoid 'unused' warnings */
71#ifndef SWIGUNUSED__attribute__ ((__unused__))
72# if defined(__GNUC__4)
73# if !(defined(__cplusplus201103L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
74# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
75# else
76# define SWIGUNUSED__attribute__ ((__unused__))
77# endif
78# elif defined(__ICC)
79# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
80# else
81# define SWIGUNUSED__attribute__ ((__unused__))
82# endif
83#endif
84
85#ifndef SWIG_MSC_UNSUPPRESS_4505
86# if defined(_MSC_VER)
87# pragma warning(disable : 4505) /* unreferenced local function has been removed */
88# endif
89#endif
90
91#ifndef SWIGUNUSEDPARM
92# ifdef __cplusplus201103L
93# define SWIGUNUSEDPARM(p)
94# else
95# define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__))
96# endif
97#endif
98
99/* internal SWIG method */
100#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
101# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
102#endif
103
104/* internal inline SWIG method */
105#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
106# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
107#endif
108
109/* exporting methods */
110#if defined(__GNUC__4)
111# if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
112# ifndef GCC_HASCLASSVISIBILITY
113# define GCC_HASCLASSVISIBILITY
114# endif
115# endif
116#endif
117
118#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
119# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
120# if defined(STATIC_LINKED)
121# define SWIGEXPORT__attribute__ ((visibility("default")))
122# else
123# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
124# endif
125# else
126# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
127# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
128# else
129# define SWIGEXPORT__attribute__ ((visibility("default")))
130# endif
131# endif
132#endif
133
134/* calling conventions for Windows */
135#ifndef SWIGSTDCALL
136# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
137# define SWIGSTDCALL __stdcall
138# else
139# define SWIGSTDCALL
140# endif
141#endif
142
143/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
144#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
145# define _CRT_SECURE_NO_DEPRECATE
146#endif
147
148/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
149#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
150# define _SCL_SECURE_NO_DEPRECATE
151#endif
152
153/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
154#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
155# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
156#endif
157
158/* Intel's compiler complains if a variable which was never initialised is
159 * cast to void, which is a common idiom which we use to indicate that we
160 * are aware a variable isn't used. So we just silence that warning.
161 * See: https://github.com/swig/swig/issues/192 for more discussion.
162 */
163#ifdef __INTEL_COMPILER
164# pragma warning disable 592
165#endif
166
167
168#if defined(_DEBUG1) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
169/* Use debug wrappers with the Python release dll */
170# undef _DEBUG1
171# include <Python.h>
172# define _DEBUG1
173#else
174# include <Python.h>
175#endif
176
177/* -----------------------------------------------------------------------------
178 * swigrun.swg
179 *
180 * This file contains generic C API SWIG runtime support for pointer
181 * type checking.
182 * ----------------------------------------------------------------------------- */
183
184/* This should only be incremented when either the layout of swig_type_info changes,
185 or for whatever reason, the runtime changes incompatibly */
186#define SWIG_RUNTIME_VERSION"4" "4"
187
188/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
189#ifdef SWIG_TYPE_TABLE
190# define SWIG_QUOTE_STRING(x) #x
191# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
192# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
193#else
194# define SWIG_TYPE_TABLE_NAME
195#endif
196
197/*
198 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
199 creating a static or dynamic library from the SWIG runtime code.
200 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
201
202 But only do this if strictly necessary, ie, if you have problems
203 with your compiler or suchlike.
204*/
205
206#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
207# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
208#endif
209
210#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
211# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
212#endif
213
214/* Generic buffer size */
215#ifndef SWIG_BUFFER_SIZE1024
216# define SWIG_BUFFER_SIZE1024 1024
217#endif
218
219/* Flags for pointer conversions */
220#define SWIG_POINTER_DISOWN0x1 0x1
221#define SWIG_CAST_NEW_MEMORY0x2 0x2
222
223/* Flags for new pointer objects */
224#define SWIG_POINTER_OWN0x1 0x1
225
226
227/*
228 Flags/methods for returning states.
229
230 The SWIG conversion methods, as ConvertPtr, return an integer
231 that tells if the conversion was successful or not. And if not,
232 an error code can be returned (see swigerrors.swg for the codes).
233
234 Use the following macros/flags to set or process the returning
235 states.
236
237 In old versions of SWIG, code such as the following was usually written:
238
239 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
240 // success code
241 } else {
242 //fail code
243 }
244
245 Now you can be more explicit:
246
247 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
248 if (SWIG_IsOK(res)) {
249 // success code
250 } else {
251 // fail code
252 }
253
254 which is the same really, but now you can also do
255
256 Type *ptr;
257 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
258 if (SWIG_IsOK(res)) {
259 // success code
260 if (SWIG_IsNewObj(res) {
261 ...
262 delete *ptr;
263 } else {
264 ...
265 }
266 } else {
267 // fail code
268 }
269
270 I.e., now SWIG_ConvertPtr can return new objects and you can
271 identify the case and take care of the deallocation. Of course that
272 also requires SWIG_ConvertPtr to return new result values, such as
273
274 int SWIG_ConvertPtr(obj, ptr,...) {
275 if (<obj is ok>) {
276 if (<need new object>) {
277 *ptr = <ptr to new allocated object>;
278 return SWIG_NEWOBJ;
279 } else {
280 *ptr = <ptr to old object>;
281 return SWIG_OLDOBJ;
282 }
283 } else {
284 return SWIG_BADOBJ;
285 }
286 }
287
288 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
289 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
290 SWIG errors code.
291
292 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
293 allows to return the 'cast rank', for example, if you have this
294
295 int food(double)
296 int fooi(int);
297
298 and you call
299
300 food(1) // cast rank '1' (1 -> 1.0)
301 fooi(1) // cast rank '0'
302
303 just use the SWIG_AddCast()/SWIG_CheckState()
304*/
305
306#define SWIG_OK(0) (0)
307#define SWIG_ERROR(-1) (-1)
308#define SWIG_IsOK(r)(r >= 0) (r >= 0)
309#define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5)
310
311/* The CastRankLimit says how many bits are used for the cast rank */
312#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
313/* The NewMask denotes the object was created (using new/malloc) */
314#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
315/* The TmpMask is for in/out typemaps that use temporal objects */
316#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
317/* Simple returning values */
318#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
319#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
320#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
321#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
322/* Check, add and del mask methods */
323#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
324#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
325#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
326#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
327#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
328#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
329
330/* Cast-Rank Mode */
331#if defined(SWIG_CASTRANK_MODE)
332# ifndef SWIG_TypeRank
333# define SWIG_TypeRank unsigned long
334# endif
335# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
336# define SWIG_MAXCASTRANK (2)
337# endif
338# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
339# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
340SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) {
341 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
342}
343SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
344 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
345}
346#else /* no cast-rank mode */
347# define SWIG_AddCast(r)(r) (r)
348# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
349#endif
350
351
352#include <string.h>
353
354#ifdef __cplusplus201103L
355extern "C" {
356#endif
357
358typedef void *(*swig_converter_func)(void *, int *);
359typedef struct swig_type_info *(*swig_dycast_func)(void **);
360
361/* Structure to store information on one type */
362typedef struct swig_type_info {
363 const char *name; /* mangled name of this type */
364 const char *str; /* human readable name of this type */
365 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
366 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
367 void *clientdata; /* language specific type data */
368 int owndata; /* flag if the structure owns the clientdata */
369} swig_type_info;
370
371/* Structure to store a type and conversion function used for casting */
372typedef struct swig_cast_info {
373 swig_type_info *type; /* pointer to type that is equivalent to this type */
374 swig_converter_func converter; /* function to cast the void pointers */
375 struct swig_cast_info *next; /* pointer to next cast in linked list */
376 struct swig_cast_info *prev; /* pointer to the previous cast */
377} swig_cast_info;
378
379/* Structure used to store module information
380 * Each module generates one structure like this, and the runtime collects
381 * all of these structures and stores them in a circularly linked list.*/
382typedef struct swig_module_info {
383 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
384 size_t size; /* Number of types in this module */
385 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
386 swig_type_info **type_initial; /* Array of initially generated type structures */
387 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
388 void *clientdata; /* Language specific module data */
389} swig_module_info;
390
391/*
392 Compare two type names skipping the space characters, therefore
393 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
394
395 Return 0 when the two name types are equivalent, as in
396 strncmp, but skipping ' '.
397*/
398SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
399SWIG_TypeNameComp(const char *f1, const char *l1,
400 const char *f2, const char *l2) {
401 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
402 while ((*f1 == ' ') && (f1 != l1)) ++f1;
403 while ((*f2 == ' ') && (f2 != l2)) ++f2;
404 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
405 }
406 return (int)((l1 - f1) - (l2 - f2));
407}
408
409/*
410 Check type equivalence in a name list like <name1>|<name2>|...
411 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
412*/
413SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
414SWIG_TypeCmp(const char *nb, const char *tb) {
415 int equiv = 1;
416 const char* te = tb + strlen(tb);
417 const char* ne = nb;
418 while (equiv != 0 && *ne) {
419 for (nb = ne; *ne; ++ne) {
420 if (*ne == '|') break;
421 }
422 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
423 if (*ne) ++ne;
424 }
425 return equiv;
426}
427
428/*
429 Check type equivalence in a name list like <name1>|<name2>|...
430 Return 0 if not equal, 1 if equal
431*/
432SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
433SWIG_TypeEquiv(const char *nb, const char *tb) {
434 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
435}
436
437/*
438 Check the typename
439*/
440SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
441SWIG_TypeCheck(const char *c, swig_type_info *ty) {
442 if (ty) {
443 swig_cast_info *iter = ty->cast;
444 while (iter) {
445 if (strcmp(iter->type->name, c) == 0) {
446 if (iter == ty->cast)
447 return iter;
448 /* Move iter to the top of the linked list */
449 iter->prev->next = iter->next;
450 if (iter->next)
451 iter->next->prev = iter->prev;
452 iter->next = ty->cast;
453 iter->prev = 0;
454 if (ty->cast) ty->cast->prev = iter;
455 ty->cast = iter;
456 return iter;
457 }
458 iter = iter->next;
459 }
460 }
461 return 0;
462}
463
464/*
465 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
466*/
467SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
468SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
469 if (ty) {
470 swig_cast_info *iter = ty->cast;
471 while (iter) {
472 if (iter->type == from) {
473 if (iter == ty->cast)
474 return iter;
475 /* Move iter to the top of the linked list */
476 iter->prev->next = iter->next;
477 if (iter->next)
478 iter->next->prev = iter->prev;
479 iter->next = ty->cast;
480 iter->prev = 0;
481 if (ty->cast) ty->cast->prev = iter;
482 ty->cast = iter;
483 return iter;
484 }
485 iter = iter->next;
486 }
487 }
488 return 0;
489}
490
491/*
492 Cast a pointer up an inheritance hierarchy
493*/
494SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
495SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
496 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
497}
498
499/*
500 Dynamic pointer casting. Down an inheritance hierarchy
501*/
502SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
503SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
504 swig_type_info *lastty = ty;
505 if (!ty || !ty->dcast) return ty;
506 while (ty && (ty->dcast)) {
507 ty = (*ty->dcast)(ptr);
508 if (ty) lastty = ty;
509 }
510 return lastty;
511}
512
513/*
514 Return the name associated with this type
515*/
516SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
517SWIG_TypeName(const swig_type_info *ty) {
518 return ty->name;
519}
520
521/*
522 Return the pretty name associated with this type,
523 that is an unmangled type name in a form presentable to the user.
524*/
525SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
526SWIG_TypePrettyName(const swig_type_info *type) {
527 /* The "str" field contains the equivalent pretty names of the
528 type, separated by vertical-bar characters. We choose
529 to print the last name, as it is often (?) the most
530 specific. */
531 if (!type) return NULL__null;
532 if (type->str != NULL__null) {
533 const char *last_name = type->str;
534 const char *s;
535 for (s = type->str; *s; s++)
536 if (*s == '|') last_name = s+1;
537 return last_name;
538 }
539 else
540 return type->name;
541}
542
543/*
544 Set the clientdata field for a type
545*/
546SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
547SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
548 swig_cast_info *cast = ti->cast;
549 /* if (ti->clientdata == clientdata) return; */
550 ti->clientdata = clientdata;
551
552 while (cast) {
553 if (!cast->converter) {
554 swig_type_info *tc = cast->type;
555 if (!tc->clientdata) {
556 SWIG_TypeClientData(tc, clientdata);
557 }
558 }
559 cast = cast->next;
560 }
561}
562SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
563SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
564 SWIG_TypeClientData(ti, clientdata);
565 ti->owndata = 1;
566}
567
568/*
569 Search for a swig_type_info structure only by mangled name
570 Search is a O(log #types)
571
572 We start searching at module start, and finish searching when start == end.
573 Note: if start == end at the beginning of the function, we go all the way around
574 the circular list.
575*/
576SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
577SWIG_MangledTypeQueryModule(swig_module_info *start,
578 swig_module_info *end,
579 const char *name) {
580 swig_module_info *iter = start;
581 do {
582 if (iter->size) {
583 size_t l = 0;
584 size_t r = iter->size - 1;
585 do {
586 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
587 size_t i = (l + r) >> 1;
588 const char *iname = iter->types[i]->name;
589 if (iname) {
590 int compare = strcmp(name, iname);
591 if (compare == 0) {
592 return iter->types[i];
593 } else if (compare < 0) {
594 if (i) {
595 r = i - 1;
596 } else {
597 break;
598 }
599 } else if (compare > 0) {
600 l = i + 1;
601 }
602 } else {
603 break; /* should never happen */
604 }
605 } while (l <= r);
606 }
607 iter = iter->next;
608 } while (iter != end);
609 return 0;
610}
611
612/*
613 Search for a swig_type_info structure for either a mangled name or a human readable name.
614 It first searches the mangled names of the types, which is a O(log #types)
615 If a type is not found it then searches the human readable names, which is O(#types).
616
617 We start searching at module start, and finish searching when start == end.
618 Note: if start == end at the beginning of the function, we go all the way around
619 the circular list.
620*/
621SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
622SWIG_TypeQueryModule(swig_module_info *start,
623 swig_module_info *end,
624 const char *name) {
625 /* STEP 1: Search the name field using binary search */
626 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
627 if (ret) {
628 return ret;
629 } else {
630 /* STEP 2: If the type hasn't been found, do a complete search
631 of the str field (the human readable name) */
632 swig_module_info *iter = start;
633 do {
634 size_t i = 0;
635 for (; i < iter->size; ++i) {
636 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
637 return iter->types[i];
638 }
639 iter = iter->next;
640 } while (iter != end);
641 }
642
643 /* neither found a match */
644 return 0;
645}
646
647/*
648 Pack binary data into a string
649*/
650SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
651SWIG_PackData(char *c, void *ptr, size_t sz) {
652 static const char hex[17] = "0123456789abcdef";
653 const unsigned char *u = (unsigned char *) ptr;
654 const unsigned char *eu = u + sz;
655 for (; u != eu; ++u) {
656 unsigned char uu = *u;
657 *(c++) = hex[(uu & 0xf0) >> 4];
658 *(c++) = hex[uu & 0xf];
659 }
660 return c;
661}
662
663/*
664 Unpack binary data from a string
665*/
666SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
667SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
668 unsigned char *u = (unsigned char *) ptr;
669 const unsigned char *eu = u + sz;
670 for (; u != eu; ++u) {
671 char d = *(c++);
672 unsigned char uu;
673 if ((d >= '0') && (d <= '9'))
674 uu = (unsigned char)((d - '0') << 4);
675 else if ((d >= 'a') && (d <= 'f'))
676 uu = (unsigned char)((d - ('a'-10)) << 4);
677 else
678 return (char *) 0;
679 d = *(c++);
680 if ((d >= '0') && (d <= '9'))
681 uu |= (unsigned char)(d - '0');
682 else if ((d >= 'a') && (d <= 'f'))
683 uu |= (unsigned char)(d - ('a'-10));
684 else
685 return (char *) 0;
686 *u = uu;
687 }
688 return c;
689}
690
691/*
692 Pack 'void *' into a string buffer.
693*/
694SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
695SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
696 char *r = buff;
697 if ((2*sizeof(void *) + 2) > bsz) return 0;
698 *(r++) = '_';
699 r = SWIG_PackData(r,&ptr,sizeof(void *));
700 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
701 strcpy(r,name);
702 return buff;
703}
704
705SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
706SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
707 if (*c != '_') {
708 if (strcmp(c,"NULL") == 0) {
709 *ptr = (void *) 0;
710 return name;
711 } else {
712 return 0;
713 }
714 }
715 return SWIG_UnpackData(++c,ptr,sizeof(void *));
716}
717
718SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
719SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
720 char *r = buff;
721 size_t lname = (name ? strlen(name) : 0);
722 if ((2*sz + 2 + lname) > bsz) return 0;
723 *(r++) = '_';
724 r = SWIG_PackData(r,ptr,sz);
725 if (lname) {
726 strncpy(r,name,lname+1);
727 } else {
728 *r = 0;
729 }
730 return buff;
731}
732
733SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
734SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
735 if (*c != '_') {
736 if (strcmp(c,"NULL") == 0) {
737 memset(ptr,0,sz);
738 return name;
739 } else {
740 return 0;
741 }
742 }
743 return SWIG_UnpackData(++c,ptr,sz);
744}
745
746#ifdef __cplusplus201103L
747}
748#endif
749
750/* Errors in SWIG */
751#define SWIG_UnknownError-1 -1
752#define SWIG_IOError-2 -2
753#define SWIG_RuntimeError-3 -3
754#define SWIG_IndexError-4 -4
755#define SWIG_TypeError-5 -5
756#define SWIG_DivisionByZero-6 -6
757#define SWIG_OverflowError-7 -7
758#define SWIG_SyntaxError-8 -8
759#define SWIG_ValueError-9 -9
760#define SWIG_SystemError-10 -10
761#define SWIG_AttributeError-11 -11
762#define SWIG_MemoryError-12 -12
763#define SWIG_NullReferenceError-13 -13
764
765
766
767/* Compatibility macros for Python 3 */
768#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
769
770#define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
771#define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0
)
PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<
24))) != 0)
772#define PyInt_AsLong(x) PyLong_AsLong(x)
773#define PyInt_FromLong(x) PyLong_FromLong(x)
774#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
775#define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
776#define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS4_FromString(x)
777#define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS4_Format(fmt, args)
778#define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str)
779#define PyString_Size(str) PyBytes_SizePyString_Size(str)
780#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
781#define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10)
782#define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x)
783#define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
784
785#endif
786
787#ifndef Py_TYPE
788# define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type)
789#endif
790
791/* SWIG APIs for compatibility of both Python 2 & 3 */
792
793#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
794# define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS4_FromFormat
795#else
796# define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat
797#endif
798
799
800/* Warning: This function will allocate a new string in Python 3,
801 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
802 */
803SWIGINTERNstatic __attribute__ ((__unused__)) char*
804SWIG_Python_str_AsChar(PyObject *str)
805{
806#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
807 char *cstr;
808 char *newstr;
809 Py_ssize_t len;
810 str = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(str);
811 PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len);
812 newstr = (char *) malloc(len+1);
813 memcpy(newstr, cstr, len+1);
814 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
815 return newstr;
816#else
817 return PyString_AsString(str);
818#endif
819}
820
821#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
822# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
823#else
824# define SWIG_Python_str_DelForPy3(x)
825#endif
826
827
828SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
829SWIG_Python_str_FromChar(const char *c)
830{
831#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
832 return PyUnicode_FromStringPyUnicodeUCS4_FromString(c);
833#else
834 return PyString_FromString(c);
835#endif
836}
837
838/* Add PyOS_snprintf for old Pythons */
839#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
840# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
841# define PyOS_snprintf _snprintf
842# else
843# define PyOS_snprintf snprintf
844# endif
845#endif
846
847/* A crude PyString_FromFormat implementation for old Pythons */
848#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
849
850#ifndef SWIG_PYBUFFER_SIZE
851# define SWIG_PYBUFFER_SIZE 1024
852#endif
853
854static PyObject *
855PyString_FromFormat(const char *fmt, ...) {
856 va_list ap;
857 char buf[SWIG_PYBUFFER_SIZE * 2];
858 int res;
859 va_start(ap, fmt)__builtin_va_start(ap, fmt);
860 res = vsnprintf(buf, sizeof(buf), fmt, ap);
861 va_end(ap)__builtin_va_end(ap);
862 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
863}
864#endif
865
866#ifndef PyObject_DELPyObject_Free
867# define PyObject_DELPyObject_Free PyObject_DelPyObject_Free
868#endif
869
870/* A crude PyExc_StopIteration exception for old Pythons */
871#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
872# ifndef PyExc_StopIteration
873# define PyExc_StopIteration PyExc_RuntimeError
874# endif
875# ifndef PyObject_GenericGetAttr
876# define PyObject_GenericGetAttr 0
877# endif
878#endif
879
880/* Py_NotImplemented is defined in 2.1 and up. */
881#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
882# ifndef Py_NotImplemented(&_Py_NotImplementedStruct)
883# define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError
884# endif
885#endif
886
887/* A crude PyString_AsStringAndSize implementation for old Pythons */
888#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
889# ifndef PyString_AsStringAndSize
890# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
891# endif
892#endif
893
894/* PySequence_Size for old Pythons */
895#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02000000
896# ifndef PySequence_Size
897# define PySequence_Size PySequence_LengthPySequence_Size
898# endif
899#endif
900
901/* PyBool_FromLong for old Pythons */
902#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
903static
904PyObject *PyBool_FromLong(long ok)
905{
906 PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct);
907 Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++);
908 return result;
909}
910#endif
911
912/* Py_ssize_t for old Pythons */
913/* This code is as recommended by: */
914/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
915#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1))
916typedef int Py_ssize_t;
917# define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647
918# define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1)
919typedef inquiry lenfunc;
920typedef intargfunc ssizeargfunc;
921typedef intintargfunc ssizessizeargfunc;
922typedef intobjargproc ssizeobjargproc;
923typedef intintobjargproc ssizessizeobjargproc;
924typedef getreadbufferproc readbufferproc;
925typedef getwritebufferproc writebufferproc;
926typedef getsegcountproc segcountproc;
927typedef getcharbufferproc charbufferproc;
928static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
929{
930 long result = 0;
931 PyObject *i = PyNumber_Int(x);
932 if (i) {
933 result = PyInt_AsLong(i);
934 Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(i)))); } while (0)
;
935 }
936 return result;
937}
938#endif
939
940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000
941#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
942#endif
943
944#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02040000
945#define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret
) return vret; } } while (0)
\
946 do { \
947 if (op) { \
948 int vret = visit((op), arg); \
949 if (vret) \
950 return vret; \
951 } \
952 } while (0)
953#endif
954
955#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
956typedef struct {
957 PyTypeObject type;
958 PyNumberMethods as_number;
959 PyMappingMethods as_mapping;
960 PySequenceMethods as_sequence;
961 PyBufferProcs as_buffer;
962 PyObject *name, *slots;
963} PyHeapTypeObject;
964#endif
965
966#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
967typedef destructor freefunc;
968#endif
969
970#if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \
971 (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \
972 (PY_MAJOR_VERSION2 > 3))
973# define SWIGPY_USE_CAPSULE
974# define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
975#endif
976
977#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03020000
978#define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type)
979#define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name)
980#endif
981
982/* -----------------------------------------------------------------------------
983 * error manipulation
984 * ----------------------------------------------------------------------------- */
985
986SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
987SWIG_Python_ErrorType(int code) {
988 PyObject* type = 0;
989 switch(code) {
990 case SWIG_MemoryError-12:
991 type = PyExc_MemoryError;
992 break;
993 case SWIG_IOError-2:
994 type = PyExc_IOError;
995 break;
996 case SWIG_RuntimeError-3:
997 type = PyExc_RuntimeError;
998 break;
999 case SWIG_IndexError-4:
1000 type = PyExc_IndexError;
1001 break;
1002 case SWIG_TypeError-5:
1003 type = PyExc_TypeError;
1004 break;
1005 case SWIG_DivisionByZero-6:
1006 type = PyExc_ZeroDivisionError;
1007 break;
1008 case SWIG_OverflowError-7:
1009 type = PyExc_OverflowError;
1010 break;
1011 case SWIG_SyntaxError-8:
1012 type = PyExc_SyntaxError;
1013 break;
1014 case SWIG_ValueError-9:
1015 type = PyExc_ValueError;
1016 break;
1017 case SWIG_SystemError-10:
1018 type = PyExc_SystemError;
1019 break;
1020 case SWIG_AttributeError-11:
1021 type = PyExc_AttributeError;
1022 break;
1023 default:
1024 type = PyExc_RuntimeError;
1025 }
1026 return type;
1027}
1028
1029
1030SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1031SWIG_Python_AddErrorMsg(const char* mesg)
1032{
1033 PyObject *type = 0;
1034 PyObject *value = 0;
1035 PyObject *traceback = 0;
1036
1037 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1038 if (value) {
1039 char *tmp;
1040 PyObject *old_str = PyObject_Str(value);
1041 PyErr_Clear();
1042 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
1043
1044 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1045 SWIG_Python_str_DelForPy3(tmp);
1046 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
1047 Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(value)))); } while (0)
;
1048 } else {
1049 PyErr_SetString(PyExc_RuntimeError, mesg);
1050 }
1051}
1052
1053#if defined(SWIG_PYTHON_NO_THREADS)
1054# if defined(SWIG_PYTHON_THREADS)
1055# undef SWIG_PYTHON_THREADS
1056# endif
1057#endif
1058#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1059# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1060# if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1061# define SWIG_PYTHON_USE_GIL
1062# endif
1063# endif
1064# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1065# ifndef SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads()
1066# define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads() PyEval_InitThreads()
1067# endif
1068# ifdef __cplusplus201103L /* C++ code */
1069 class SWIG_Python_Thread_Block {
1070 bool status;
1071 PyGILState_STATE state;
1072 public:
1073 void end() { if (status) { PyGILState_Release(state); status = false;} }
1074 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1075 ~SWIG_Python_Thread_Block() { end(); }
1076 };
1077 class SWIG_Python_Thread_Allow {
1078 bool status;
1079 PyThreadState *save;
1080 public:
1081 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1082 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1083 ~SWIG_Python_Thread_Allow() { end(); }
1084 };
1085# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block SWIG_Python_Thread_Block _swig_thread_block
1086# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() _swig_thread_block.end()
1087# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow SWIG_Python_Thread_Allow _swig_thread_allow
1088# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() _swig_thread_allow.end()
1089# else /* C code */
1090# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1091# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() PyGILState_Release(_swig_thread_block)
1092# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1093# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() PyEval_RestoreThread(_swig_thread_allow)
1094# endif
1095# else /* Old thread way, not implemented, user must provide it */
1096# if !defined(SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads())
1097# define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads()
1098# endif
1099# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block)
1100# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block
1101# endif
1102# if !defined(SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end())
1103# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end()
1104# endif
1105# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow)
1106# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow
1107# endif
1108# if !defined(SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end())
1109# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end()
1110# endif
1111# endif
1112#else /* No thread support */
1113# define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads()
1114# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block
1115# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end()
1116# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow
1117# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end()
1118#endif
1119
1120/* -----------------------------------------------------------------------------
1121 * Python API portion that goes into the runtime
1122 * ----------------------------------------------------------------------------- */
1123
1124#ifdef __cplusplus201103L
1125extern "C" {
1126#endif
1127
1128/* -----------------------------------------------------------------------------
1129 * Constant declarations
1130 * ----------------------------------------------------------------------------- */
1131
1132/* Constant Types */
1133#define SWIG_PY_POINTER4 4
1134#define SWIG_PY_BINARY5 5
1135
1136/* Constant information structure */
1137typedef struct swig_const_info {
1138 int type;
1139 char *name;
1140 long lvalue;
1141 double dvalue;
1142 void *pvalue;
1143 swig_type_info **ptype;
1144} swig_const_info;
1145
1146
1147/* -----------------------------------------------------------------------------
1148 * Wrapper of PyInstanceMethod_New() used in Python 3
1149 * It is exported to the generated module, used for -fastproxy
1150 * ----------------------------------------------------------------------------- */
1151#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1152SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1153{
1154 return PyInstanceMethod_New(func);
1155}
1156#else
1157SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1158{
1159 return NULL__null;
1160}
1161#endif
1162
1163#ifdef __cplusplus201103L
1164}
1165#endif
1166
1167
1168/* -----------------------------------------------------------------------------
1169 * pyrun.swg
1170 *
1171 * This file contains the runtime support for Python modules
1172 * and includes code for managing global variables and pointer
1173 * type checking.
1174 *
1175 * ----------------------------------------------------------------------------- */
1176
1177/* Common SWIG API */
1178
1179/* for raw pointers */
1180#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1181#define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1182#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1183
1184#ifdef SWIGPYTHON_BUILTIN
1185#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1186#else
1187#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1188#endif
1189
1190#define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1191
1192#define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1193#define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1194#define swig_owntypeint int
1195
1196/* for raw packed data */
1197#define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1198#define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1199
1200/* for class or struct pointers */
1201#define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1202#define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags)
1203
1204/* for C or C++ function pointers */
1205#define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1206#define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0)
1207
1208/* for C++ member pointers, ie, member methods */
1209#define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1210#define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1211
1212
1213/* Runtime API */
1214
1215#define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1216#define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer)
1217#define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj)
1218
1219#define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj
1220#define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg
1221#define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code)
1222#define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg)
1223#define SWIG_failgoto fail goto fail
1224
1225
1226/* Runtime API implementation */
1227
1228/* Error manipulation */
1229
1230SWIGINTERNstatic __attribute__ ((__unused__)) void
1231SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1232 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
1233 PyErr_SetObject(errtype, obj);
1234 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1235 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
1236}
1237
1238SWIGINTERNstatic __attribute__ ((__unused__)) void
1239SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1240 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
1241 PyErr_SetString(errtype, msg);
1242 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
1243}
1244
1245#define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1246
1247/* Set a constant value */
1248
1249#if defined(SWIGPYTHON_BUILTIN)
1250
1251SWIGINTERNstatic __attribute__ ((__unused__)) void
1252SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1253 PyObject *s = PyString_InternFromString(key);
1254 PyList_Append(seq, s);
1255 Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(s)))); } while (0)
;
1256}
1257
1258SWIGINTERNstatic __attribute__ ((__unused__)) void
1259SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1260#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1261 PyDict_SetItemString(d, (char *)name, obj);
1262#else
1263 PyDict_SetItemString(d, name, obj);
1264#endif
1265 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1266 if (public_interface)
1267 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1268}
1269
1270#else
1271
1272SWIGINTERNstatic __attribute__ ((__unused__)) void
1273SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1274#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1275 PyDict_SetItemString(d, (char *)name, obj);
1276#else
1277 PyDict_SetItemString(d, name, obj);
1278#endif
1279 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1280}
1281
1282#endif
1283
1284/* Append a value to the result obj */
1285
1286SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1287SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1288#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1289 if (!result) {
1290 result = obj;
1291 } else if (result == Py_None(&_Py_NoneStruct)) {
1292 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1293 result = obj;
1294 } else {
1295 if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<25))) != 0)
) {
1296 PyObject *o2 = result;
1297 result = PyList_New(1);
1298 PyList_SetItem(result, 0, o2);
1299 }
1300 PyList_Append(result,obj);
1301 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1302 }
1303 return result;
1304#else
1305 PyObject* o2;
1306 PyObject* o3;
1307 if (!result) {
1308 result = obj;
1309 } else if (result == Py_None(&_Py_NoneStruct)) {
1310 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1311 result = obj;
1312 } else {
1313 if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<26))) != 0)
) {
1314 o2 = result;
1315 result = PyTuple_New(1);
1316 PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2);
1317 }
1318 o3 = PyTuple_New(1);
1319 PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj);
1320 o2 = result;
1321 result = PySequence_Concat(o2, o3);
1322 Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o2)))); } while (0)
;
1323 Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o3)))); } while (0)
;
1324 }
1325 return result;
1326#endif
1327}
1328
1329/* Unpack the argument tuple */
1330
1331SWIGINTERNstatic __attribute__ ((__unused__)) Py_ssize_t
1332SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1333{
1334 if (!args) {
1335 if (!min && !max) {
1336 return 1;
1337 } else {
1338 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1339 name, (min == max ? "" : "at least "), (int)min);
1340 return 0;
1341 }
1342 }
1343 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) {
1344 if (min <= 1 && max >= 1) {
1345 Py_ssize_t i;
1346 objs[0] = args;
1347 for (i = 1; i < max; ++i) {
1348 objs[i] = 0;
1349 }
1350 return 2;
1351 }
1352 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1353 return 0;
1354 } else {
1355 Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size);
1356 if (l < min) {
1357 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1358 name, (min == max ? "" : "at least "), (int)min, (int)l);
1359 return 0;
1360 } else if (l > max) {
1361 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1362 name, (min == max ? "" : "at most "), (int)max, (int)l);
1363 return 0;
1364 } else {
1365 Py_ssize_t i;
1366 for (i = 0; i < l; ++i) {
1367 objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]);
1368 }
1369 for (; l < max; ++l) {
1370 objs[l] = 0;
1371 }
1372 return i + 1;
1373 }
1374 }
1375}
1376
1377/* A functor is a function object with one single object argument */
1378#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1379#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null);
1380#else
1381#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj);
1382#endif
1383
1384/*
1385 Helper for static pointer initialization for both C and C++ code, for example
1386 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1387*/
1388#ifdef __cplusplus201103L
1389#define SWIG_STATIC_POINTER(var)var var
1390#else
1391#define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var
1392#endif
1393
1394/* -----------------------------------------------------------------------------
1395 * Pointer declarations
1396 * ----------------------------------------------------------------------------- */
1397
1398/* Flags for new pointer objects */
1399#define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1)
1400#define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1)
1401
1402#define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1)
1403
1404#define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2)
1405#define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1)
1406
1407#ifdef __cplusplus201103L
1408extern "C" {
1409#endif
1410
1411/* How to access Py_None */
1412#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1413# ifndef SWIG_PYTHON_NO_BUILD_NONE
1414# ifndef SWIG_PYTHON_BUILD_NONE
1415# define SWIG_PYTHON_BUILD_NONE
1416# endif
1417# endif
1418#endif
1419
1420#ifdef SWIG_PYTHON_BUILD_NONE
1421# ifdef Py_None(&_Py_NoneStruct)
1422# undef Py_None(&_Py_NoneStruct)
1423# define Py_None(&_Py_NoneStruct) SWIG_Py_None()
1424# endif
1425SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1426_SWIG_Py_None(void)
1427{
1428 PyObject *none = Py_BuildValue((char*)"");
1429 Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(none)))); } while (0)
;
1430 return none;
1431}
1432SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1433SWIG_Py_None(void)
1434{
1435 static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None();
1436 return none;
1437}
1438#endif
1439
1440/* The python void return value */
1441
1442SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1443SWIG_Py_Void(void)
1444{
1445 PyObject *none = Py_None(&_Py_NoneStruct);
1446 Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++);
1447 return none;
1448}
1449
1450/* SwigPyClientData */
1451
1452typedef struct {
1453 PyObject *klass;
1454 PyObject *newraw;
1455 PyObject *newargs;
1456 PyObject *destroy;
1457 int delargs;
1458 int implicitconv;
1459 PyTypeObject *pytype;
1460} SwigPyClientData;
1461
1462SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1463SWIG_Python_CheckImplicit(swig_type_info *ty)
1464{
1465 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1466 return data ? data->implicitconv : 0;
1467}
1468
1469SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1470SWIG_Python_ExceptionType(swig_type_info *desc) {
1471 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1472 PyObject *klass = data ? data->klass : 0;
1473 return (klass ? klass : PyExc_RuntimeError);
1474}
1475
1476
1477SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1478SwigPyClientData_New(PyObject* obj)
1479{
1480 if (!obj) {
1481 return 0;
1482 } else {
1483 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1484 /* the klass element */
1485 data->klass = obj;
1486 Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++);
1487 /* the newraw method and newargs arguments used to create a new raw instance */
1488 if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) {
1489 data->newraw = 0;
1490 data->newargs = obj;
1491 Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++);
1492 } else {
1493#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1494 data->newraw = 0;
1495#else
1496 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1497#endif
1498 if (data->newraw) {
1499 Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++);
1500 data->newargs = PyTuple_New(1);
1501 PyTuple_SetItem(data->newargs, 0, obj);
1502 } else {
1503 data->newargs = obj;
1504 }
1505 Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++);
1506 }
1507 /* the destroy method, aka as the C++ delete method */
1508 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1509 if (PyErr_Occurred()) {
1510 PyErr_Clear();
1511 data->destroy = 0;
1512 }
1513 if (data->destroy) {
1514 int flags;
1515 Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++);
1516 flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags
)
;
1517#ifdef METH_O0x0008
1518 data->delargs = !(flags & (METH_O0x0008));
1519#else
1520 data->delargs = 0;
1521#endif
1522 } else {
1523 data->delargs = 0;
1524 }
1525 data->implicitconv = 0;
1526 data->pytype = 0;
1527 return data;
1528 }
1529}
1530
1531SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1532SwigPyClientData_Del(SwigPyClientData *data) {
1533 Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject
*)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newraw)))); } while (0);
} while (0)
;
1534 Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject
*)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newargs)))); } while (0)
; } while (0)
;
1535 Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject
*)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->destroy)))); } while (0)
; } while (0)
;
1536}
1537
1538/* =============== SwigPyObject =====================*/
1539
1540typedef struct {
1541 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1542 void *ptr;
1543 swig_type_info *ty;
1544 int own;
1545 PyObject *next;
1546#ifdef SWIGPYTHON_BUILTIN
1547 PyObject *dict;
1548#endif
1549} SwigPyObject;
1550
1551
1552#ifdef SWIGPYTHON_BUILTIN
1553
1554SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1555SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1556{
1557 SwigPyObject *sobj = (SwigPyObject *)v;
1558
1559 if (!sobj->dict)
1560 sobj->dict = PyDict_New();
1561
1562 Py_INCREF(sobj->dict)( ((PyObject*)(sobj->dict))->ob_refcnt++);
1563 return sobj->dict;
1564}
1565
1566#endif
1567
1568SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1569SwigPyObject_long(SwigPyObject *v)
1570{
1571 return PyLong_FromVoidPtr(v->ptr);
1572}
1573
1574SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1575SwigPyObject_format(const char* fmt, SwigPyObject *v)
1576{
1577 PyObject *res = NULL__null;
1578 PyObject *args = PyTuple_New(1);
1579 if (args) {
1580 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1581 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1582 if (ofmt) {
1583#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1584 res = PyUnicode_FormatPyUnicodeUCS4_Format(ofmt,args);
1585#else
1586 res = PyString_Format(ofmt,args);
1587#endif
1588 Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(ofmt)))); } while (0)
;
1589 }
1590 Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(args)))); } while (0)
;
1591 }
1592 }
1593 return res;
1594}
1595
1596SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1597SwigPyObject_oct(SwigPyObject *v)
1598{
1599 return SwigPyObject_format("%o",v);
1600}
1601
1602SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1603SwigPyObject_hex(SwigPyObject *v)
1604{
1605 return SwigPyObject_format("%x",v);
1606}
1607
1608SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1609#ifdef METH_NOARGS0x0004
1610SwigPyObject_repr(SwigPyObject *v)
1611#else
1612SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1613#endif
1614{
1615 const char *name = SWIG_TypePrettyName(v->ty);
1616 PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1617 if (v->next) {
1618# ifdef METH_NOARGS0x0004
1619 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1620# else
1621 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1622# endif
1623# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1624 PyObject *joined = PyUnicode_ConcatPyUnicodeUCS4_Concat(repr, nrep);
1625 Py_DecRef(repr);
1626 Py_DecRef(nrep);
1627 repr = joined;
1628# else
1629 PyString_ConcatAndDel(&repr,nrep);
1630# endif
1631 }
1632 return repr;
1633}
1634
1635SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1636SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1637{
1638 void *i = v->ptr;
1639 void *j = w->ptr;
1640 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1641}
1642
1643/* Added for Python 3.x, would it also be useful for Python 2.x? */
1644SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1645SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1646{
1647 PyObject* res;
1648 if( op != Py_EQ2 && op != Py_NE3 ) {
1649 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
1650 return Py_NotImplemented(&_Py_NotImplementedStruct);
1651 }
1652 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0);
1653 return res;
1654}
1655
1656
1657SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1658
1659#ifdef SWIGPYTHON_BUILTIN
1660static swig_type_info *SwigPyObject_stype = 0;
1661SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1662SwigPyObject_type(void) {
1663 SwigPyClientData *cd;
1664 assert(SwigPyObject_stype)((SwigPyObject_stype) ? static_cast<void> (0) : __assert_fail
("SwigPyObject_stype", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn298304/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 1664, __PRETTY_FUNCTION__))
;
1665 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1666 assert(cd)((cd) ? static_cast<void> (0) : __assert_fail ("cd", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn298304/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 1666, __PRETTY_FUNCTION__))
;
1667 assert(cd->pytype)((cd->pytype) ? static_cast<void> (0) : __assert_fail
("cd->pytype", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn298304/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 1667, __PRETTY_FUNCTION__))
;
1668 return cd->pytype;
1669}
1670#else
1671SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1672SwigPyObject_type(void) {
1673 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce();
1674 return type;
1675}
1676#endif
1677
1678SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1679SwigPyObject_Check(PyObject *op) {
1680#ifdef SWIGPYTHON_BUILTIN
1681 PyTypeObject *target_tp = SwigPyObject_type();
1682 if (PyType_IsSubtype(op->ob_type, target_tp))
1683 return 1;
1684 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1685#else
1686 return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type())
1687 || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0);
1688#endif
1689}
1690
1691SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1692SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1693
1694SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1695SwigPyObject_dealloc(PyObject *v)
1696{
1697 SwigPyObject *sobj = (SwigPyObject *) v;
1698 PyObject *next = sobj->next;
1699 if (sobj->own == SWIG_POINTER_OWN0x1) {
1700 swig_type_info *ty = sobj->ty;
1701 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1702 PyObject *destroy = data ? data->destroy : 0;
1703 if (destroy) {
1704 /* destroy is always a VARARGS method */
1705 PyObject *res;
1706
1707 /* PyObject_CallFunction() has the potential to silently drop
1708 the active active exception. In cases of unnamed temporary
1709 variable or where we just finished iterating over a generator
1710 StopIteration will be active right now, and this needs to
1711 remain true upon return from SwigPyObject_dealloc. So save
1712 and restore. */
1713
1714 PyObject *val = NULL__null, *type = NULL__null, *tb = NULL__null;
1715 PyErr_Fetch(&val, &type, &tb);
1716
1717 if (data->delargs) {
1718 /* we need to create a temporary object to carry the destroy operation */
1719 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1720 res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);;
1721 Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(tmp)))); } while (0)
;
1722 } else {
1723 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
1724 PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self);
1725 res = ((*meth)(mself, v));
1726 }
1727 if (!res)
1728 PyErr_WriteUnraisable(destroy);
1729
1730 PyErr_Restore(val, type, tb);
1731
1732 Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(res)))); } while (0); } while (0)
;
1733 }
1734#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1735 else {
1736 const char *name = SWIG_TypePrettyName(ty);
1737 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1738 }
1739#endif
1740 }
1741 Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(next)))); } while (0); } while (0)
;
1742 PyObject_DELPyObject_Free(v);
1743}
1744
1745SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1746SwigPyObject_append(PyObject* v, PyObject* next)
1747{
1748 SwigPyObject *sobj = (SwigPyObject *) v;
1749#ifndef METH_O0x0008
1750 PyObject *tmp = 0;
1751 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null;
1752 next = tmp;
1753#endif
1754 if (!SwigPyObject_Check(next)) {
1755 PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1756 return NULL__null;
1757 }
1758 sobj->next = next;
1759 Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++);
1760 return SWIG_Py_Void();
1761}
1762
1763SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1764#ifdef METH_NOARGS0x0004
1765SwigPyObject_next(PyObject* v)
1766#else
1767SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1768#endif
1769{
1770 SwigPyObject *sobj = (SwigPyObject *) v;
1771 if (sobj->next) {
1772 Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++);
1773 return sobj->next;
1774 } else {
1775 return SWIG_Py_Void();
1776 }
1777}
1778
1779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1780#ifdef METH_NOARGS0x0004
1781SwigPyObject_disown(PyObject *v)
1782#else
1783SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1784#endif
1785{
1786 SwigPyObject *sobj = (SwigPyObject *)v;
1787 sobj->own = 0;
1788 return SWIG_Py_Void();
1789}
1790
1791SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1792#ifdef METH_NOARGS0x0004
1793SwigPyObject_acquire(PyObject *v)
1794#else
1795SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1796#endif
1797{
1798 SwigPyObject *sobj = (SwigPyObject *)v;
1799 sobj->own = SWIG_POINTER_OWN0x1;
1800 return SWIG_Py_Void();
1801}
1802
1803SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1804SwigPyObject_own(PyObject *v, PyObject *args)
1805{
1806 PyObject *val = 0;
1807#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1808 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1809#elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000)
1810 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1811#else
1812 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1813#endif
1814 {
1815 return NULL__null;
1816 }
1817 else
1818 {
1819 SwigPyObject *sobj = (SwigPyObject *)v;
1820 PyObject *obj = PyBool_FromLong(sobj->own);
1821 if (val) {
1822#ifdef METH_NOARGS0x0004
1823 if (PyObject_IsTrue(val)) {
1824 SwigPyObject_acquire(v);
1825 } else {
1826 SwigPyObject_disown(v);
1827 }
1828#else
1829 if (PyObject_IsTrue(val)) {
1830 SwigPyObject_acquire(v,args);
1831 } else {
1832 SwigPyObject_disown(v,args);
1833 }
1834#endif
1835 }
1836 return obj;
1837 }
1838}
1839
1840#ifdef METH_O0x0008
1841static PyMethodDef
1842swigobject_methods[] = {
1843 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"},
1844 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"},
1845 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1846 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"},
1847 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"},
1848 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"},
1849 {0, 0, 0, 0}
1850};
1851#else
1852static PyMethodDef
1853swigobject_methods[] = {
1854 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"},
1855 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"acquires ownership of the pointer"},
1856 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1857 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"},
1858 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"},
1859 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"},
1860 {0, 0, 0, 0}
1861};
1862#endif
1863
1864#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1865SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1866SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1867{
1868 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1869}
1870#endif
1871
1872SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1873SwigPyObject_TypeOnce(void) {
1874 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1875
1876 static PyNumberMethods SwigPyObject_as_number = {
1877 (binaryfunc)0, /*nb_add*/
1878 (binaryfunc)0, /*nb_subtract*/
1879 (binaryfunc)0, /*nb_multiply*/
1880 /* nb_divide removed in Python 3 */
1881#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1882 (binaryfunc)0, /*nb_divide*/
1883#endif
1884 (binaryfunc)0, /*nb_remainder*/
1885 (binaryfunc)0, /*nb_divmod*/
1886 (ternaryfunc)0,/*nb_power*/
1887 (unaryfunc)0, /*nb_negative*/
1888 (unaryfunc)0, /*nb_positive*/
1889 (unaryfunc)0, /*nb_absolute*/
1890 (inquiry)0, /*nb_nonzero*/
1891 0, /*nb_invert*/
1892 0, /*nb_lshift*/
1893 0, /*nb_rshift*/
1894 0, /*nb_and*/
1895 0, /*nb_xor*/
1896 0, /*nb_or*/
1897#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1898 0, /*nb_coerce*/
1899#endif
1900 (unaryfunc)SwigPyObject_long, /*nb_int*/
1901#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1902 (unaryfunc)SwigPyObject_long, /*nb_long*/
1903#else
1904 0, /*nb_reserved*/
1905#endif
1906 (unaryfunc)0, /*nb_float*/
1907#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1908 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1909 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1910#endif
1911#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03050000 /* 3.5 */
1912 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1913#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000 /* 3.0 */
1914 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1915#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000 /* 2.5.0 */
1916 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1917#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000 /* 2.2.0 */
1918 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1919#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02000000 /* 2.0.0 */
1920 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1921#endif
1922 };
1923
1924 static PyTypeObject swigpyobject_type;
1925 static int type_init = 0;
1926 if (!type_init) {
1927 const PyTypeObject tmp = {
1928 /* PyObject header changed in Python 3 */
1929#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1930 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
1931#else
1932 PyObject_HEAD_INIT(NULL)1, __null,
1933 0, /* ob_size */
1934#endif
1935 (char *)"SwigPyObject", /* tp_name */
1936 sizeof(SwigPyObject), /* tp_basicsize */
1937 0, /* tp_itemsize */
1938 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1939 0, /* tp_print */
1940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1941 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1942#else
1943 (getattrfunc)0, /* tp_getattr */
1944#endif
1945 (setattrfunc)0, /* tp_setattr */
1946#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1947 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1948#else
1949 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1950#endif
1951 (reprfunc)SwigPyObject_repr, /* tp_repr */
1952 &SwigPyObject_as_number, /* tp_as_number */
1953 0, /* tp_as_sequence */
1954 0, /* tp_as_mapping */
1955 (hashfunc)0, /* tp_hash */
1956 (ternaryfunc)0, /* tp_call */
1957 0, /* tp_str */
1958 PyObject_GenericGetAttr, /* tp_getattro */
1959 0, /* tp_setattro */
1960 0, /* tp_as_buffer */
1961 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
1962 swigobject_doc, /* tp_doc */
1963 0, /* tp_traverse */
1964 0, /* tp_clear */
1965 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1966 0, /* tp_weaklistoffset */
1967#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1968 0, /* tp_iter */
1969 0, /* tp_iternext */
1970 swigobject_methods, /* tp_methods */
1971 0, /* tp_members */
1972 0, /* tp_getset */
1973 0, /* tp_base */
1974 0, /* tp_dict */
1975 0, /* tp_descr_get */
1976 0, /* tp_descr_set */
1977 0, /* tp_dictoffset */
1978 0, /* tp_init */
1979 0, /* tp_alloc */
1980 0, /* tp_new */
1981 0, /* tp_free */
1982 0, /* tp_is_gc */
1983 0, /* tp_bases */
1984 0, /* tp_mro */
1985 0, /* tp_cache */
1986 0, /* tp_subclasses */
1987 0, /* tp_weaklist */
1988#endif
1989#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
1990 0, /* tp_del */
1991#endif
1992#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
1993 0, /* tp_version_tag */
1994#endif
1995#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03040000
1996 0, /* tp_finalize */
1997#endif
1998#ifdef COUNT_ALLOCS
1999 0, /* tp_allocs */
2000 0, /* tp_frees */
2001 0, /* tp_maxalloc */
2002#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000
2003 0, /* tp_prev */
2004#endif
2005 0 /* tp_next */
2006#endif
2007 };
2008 swigpyobject_type = tmp;
2009 type_init = 1;
2010#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2011 swigpyobject_type.ob_type = &PyType_Type;
2012#else
2013 if (PyType_Ready(&swigpyobject_type) < 0)
2014 return NULL__null;
2015#endif
2016 }
2017 return &swigpyobject_type;
2018}
2019
2020SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2021SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
2022{
2023 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type
())) )
;
2024 if (sobj) {
2025 sobj->ptr = ptr;
2026 sobj->ty = ty;
2027 sobj->own = own;
2028 sobj->next = 0;
2029 }
2030 return (PyObject *)sobj;
2031}
2032
2033/* -----------------------------------------------------------------------------
2034 * Implements a simple Swig Packed type, and use it instead of string
2035 * ----------------------------------------------------------------------------- */
2036
2037typedef struct {
2038 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
2039 void *pack;
2040 swig_type_info *ty;
2041 size_t size;
2042} SwigPyPacked;
2043
2044SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2045SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
2046{
2047 char result[SWIG_BUFFER_SIZE1024];
2048 fputs("<Swig Packed ", fp);
2049 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2050 fputs("at ", fp);
2051 fputs(result, fp);
2052 }
2053 fputs(v->ty->name,fp);
2054 fputs(">", fp);
2055 return 0;
2056}
2057
2058SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2059SwigPyPacked_repr(SwigPyPacked *v)
2060{
2061 char result[SWIG_BUFFER_SIZE1024];
2062 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2063 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2064 } else {
2065 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name);
2066 }
2067}
2068
2069SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2070SwigPyPacked_str(SwigPyPacked *v)
2071{
2072 char result[SWIG_BUFFER_SIZE1024];
2073 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2074 return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name);
2075 } else {
2076 return SWIG_Python_str_FromChar(v->ty->name);
2077 }
2078}
2079
2080SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2081SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2082{
2083 size_t i = v->size;
2084 size_t j = w->size;
2085 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2086 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2087}
2088
2089SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2090
2091SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2092SwigPyPacked_type(void) {
2093 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce();
2094 return type;
2095}
2096
2097SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2098SwigPyPacked_Check(PyObject *op) {
2099 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2100 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2101}
2102
2103SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2104SwigPyPacked_dealloc(PyObject *v)
2105{
2106 if (SwigPyPacked_Check(v)) {
2107 SwigPyPacked *sobj = (SwigPyPacked *) v;
2108 free(sobj->pack);
2109 }
2110 PyObject_DELPyObject_Free(v);
2111}
2112
2113SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2114SwigPyPacked_TypeOnce(void) {
2115 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2116 static PyTypeObject swigpypacked_type;
2117 static int type_init = 0;
2118 if (!type_init) {
2119 const PyTypeObject tmp = {
2120 /* PyObject header changed in Python 3 */
2121#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2122 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
2123#else
2124 PyObject_HEAD_INIT(NULL)1, __null,
2125 0, /* ob_size */
2126#endif
2127 (char *)"SwigPyPacked", /* tp_name */
2128 sizeof(SwigPyPacked), /* tp_basicsize */
2129 0, /* tp_itemsize */
2130 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2131 (printfunc)SwigPyPacked_print, /* tp_print */
2132 (getattrfunc)0, /* tp_getattr */
2133 (setattrfunc)0, /* tp_setattr */
2134#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2135 0, /* tp_reserved in 3.0.1 */
2136#else
2137 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2138#endif
2139 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2140 0, /* tp_as_number */
2141 0, /* tp_as_sequence */
2142 0, /* tp_as_mapping */
2143 (hashfunc)0, /* tp_hash */
2144 (ternaryfunc)0, /* tp_call */
2145 (reprfunc)SwigPyPacked_str, /* tp_str */
2146 PyObject_GenericGetAttr, /* tp_getattro */
2147 0, /* tp_setattro */
2148 0, /* tp_as_buffer */
2149 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
2150 swigpacked_doc, /* tp_doc */
2151 0, /* tp_traverse */
2152 0, /* tp_clear */
2153 0, /* tp_richcompare */
2154 0, /* tp_weaklistoffset */
2155#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
2156 0, /* tp_iter */
2157 0, /* tp_iternext */
2158 0, /* tp_methods */
2159 0, /* tp_members */
2160 0, /* tp_getset */
2161 0, /* tp_base */
2162 0, /* tp_dict */
2163 0, /* tp_descr_get */
2164 0, /* tp_descr_set */
2165 0, /* tp_dictoffset */
2166 0, /* tp_init */
2167 0, /* tp_alloc */
2168 0, /* tp_new */
2169 0, /* tp_free */
2170 0, /* tp_is_gc */
2171 0, /* tp_bases */
2172 0, /* tp_mro */
2173 0, /* tp_cache */
2174 0, /* tp_subclasses */
2175 0, /* tp_weaklist */
2176#endif
2177#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
2178 0, /* tp_del */
2179#endif
2180#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
2181 0, /* tp_version_tag */
2182#endif
2183#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03040000
2184 0, /* tp_finalize */
2185#endif
2186#ifdef COUNT_ALLOCS
2187 0, /* tp_allocs */
2188 0, /* tp_frees */
2189 0, /* tp_maxalloc */
2190#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000
2191 0, /* tp_prev */
2192#endif
2193 0 /* tp_next */
2194#endif
2195 };
2196 swigpypacked_type = tmp;
2197 type_init = 1;
2198#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2199 swigpypacked_type.ob_type = &PyType_Type;
2200#else
2201 if (PyType_Ready(&swigpypacked_type) < 0)
2202 return NULL__null;
2203#endif
2204 }
2205 return &swigpypacked_type;
2206}
2207
2208SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2209SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2210{
2211 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type
())) )
;
2212 if (sobj) {
2213 void *pack = malloc(size);
2214 if (pack) {
2215 memcpy(pack, ptr, size);
2216 sobj->pack = pack;
2217 sobj->ty = ty;
2218 sobj->size = size;
2219 } else {
2220 PyObject_DELPyObject_Free((PyObject *) sobj);
2221 sobj = 0;
2222 }
2223 }
2224 return (PyObject *) sobj;
2225}
2226
2227SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2228SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2229{
2230 if (SwigPyPacked_Check(obj)) {
2231 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2232 if (sobj->size != size) return 0;
2233 memcpy(ptr, sobj->pack, size);
2234 return sobj->ty;
2235 } else {
2236 return 0;
2237 }
2238}
2239
2240/* -----------------------------------------------------------------------------
2241 * pointers/data manipulation
2242 * ----------------------------------------------------------------------------- */
2243
2244SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2245_SWIG_This(void)
2246{
2247 return SWIG_Python_str_FromChar("this");
2248}
2249
2250static PyObject *swig_this = NULL__null;
2251
2252SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2253SWIG_This(void)
2254{
2255 if (swig_this == NULL__null)
2256 swig_this = _SWIG_This();
2257 return swig_this;
2258}
2259
2260/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2261
2262/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2263#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2264#define SWIG_PYTHON_SLOW_GETSET_THIS
2265#endif
2266
2267SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2268SWIG_Python_GetSwigThis(PyObject *pyobj)
2269{
2270 PyObject *obj;
2271
2272 if (SwigPyObject_Check(pyobj))
2273 return (SwigPyObject *) pyobj;
2274
2275#ifdef SWIGPYTHON_BUILTIN
2276 (void)obj;
2277# ifdef PyWeakref_CheckProxy
2278 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2279 pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2280 if (pyobj && SwigPyObject_Check(pyobj))
2281 return (SwigPyObject*) pyobj;
2282 }
2283# endif
2284 return NULL__null;
2285#else
2286
2287 obj = 0;
2288
2289#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000))
2290 if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) {
2291 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2292 } else {
2293 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2294 if (dictptr != NULL__null) {
2295 PyObject *dict = *dictptr;
2296 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2297 } else {
2298#ifdef PyWeakref_CheckProxy
2299 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2300 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2301 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2302 }
2303#endif
2304 obj = PyObject_GetAttr(pyobj,SWIG_This());
2305 if (obj) {
2306 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2307 } else {
2308 if (PyErr_Occurred()) PyErr_Clear();
2309 return 0;
2310 }
2311 }
2312 }
2313#else
2314 obj = PyObject_GetAttr(pyobj,SWIG_This());
2315 if (obj) {
2316 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2317 } else {
2318 if (PyErr_Occurred()) PyErr_Clear();
2319 return 0;
2320 }
2321#endif
2322 if (obj && !SwigPyObject_Check(obj)) {
2323 /* a PyObject is called 'this', try to get the 'real this'
2324 SwigPyObject from it */
2325 return SWIG_Python_GetSwigThis(obj);
2326 }
2327 return (SwigPyObject *)obj;
2328#endif
2329}
2330
2331/* Acquire a pointer value */
2332
2333SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2334SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2335 if (own == SWIG_POINTER_OWN0x1) {
2336 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2337 if (sobj) {
2338 int oldown = sobj->own;
2339 sobj->own = own;
2340 return oldown;
2341 }
2342 }
2343 return 0;
2344}
2345
2346/* Convert a pointer value */
2347
2348SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2349SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2350 int res;
2351 SwigPyObject *sobj;
2352 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0;
2353
2354 if (!obj)
2355 return SWIG_ERROR(-1);
2356 if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) {
2357 if (ptr)
2358 *ptr = 0;
2359 return SWIG_OK(0);
2360 }
2361
2362 res = SWIG_ERROR(-1);
2363
2364 sobj = SWIG_Python_GetSwigThis(obj);
2365 if (own)
2366 *own = 0;
2367 while (sobj) {
2368 void *vptr = sobj->ptr;
2369 if (ty) {
2370 swig_type_info *to = sobj->ty;
2371 if (to == ty) {
2372 /* no type cast needed */
2373 if (ptr) *ptr = vptr;
2374 break;
2375 } else {
2376 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2377 if (!tc) {
2378 sobj = (SwigPyObject *)sobj->next;
2379 } else {
2380 if (ptr) {
2381 int newmemory = 0;
2382 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2383 if (newmemory == SWIG_CAST_NEW_MEMORY0x2) {
2384 assert(own)((own) ? static_cast<void> (0) : __assert_fail ("own", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn298304/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 2384, __PRETTY_FUNCTION__))
; /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2385 if (own)
2386 *own = *own | SWIG_CAST_NEW_MEMORY0x2;
2387 }
2388 }
2389 break;
2390 }
2391 }
2392 } else {
2393 if (ptr) *ptr = vptr;
2394 break;
2395 }
2396 }
2397 if (sobj) {
2398 if (own)
2399 *own = *own | sobj->own;
2400 if (flags & SWIG_POINTER_DISOWN0x1) {
2401 sobj->own = 0;
2402 }
2403 res = SWIG_OK(0);
2404 } else {
2405 if (implicit_conv) {
2406 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2407 if (data && !data->implicitconv) {
2408 PyObject *klass = data->klass;
2409 if (klass) {
2410 PyObject *impconv;
2411 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2412 impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);;
2413 data->implicitconv = 0;
2414 if (PyErr_Occurred()) {
2415 PyErr_Clear();
2416 impconv = 0;
2417 }
2418 if (impconv) {
2419 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2420 if (iobj) {
2421 void *vptr;
2422 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2423 if (SWIG_IsOK(res)(res >= 0)) {
2424 if (ptr) {
2425 *ptr = vptr;
2426 /* transfer the ownership to 'ptr' */
2427 iobj->own = 0;
2428 res = SWIG_AddCast(res)(res);
2429 res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res);
2430 } else {
2431 res = SWIG_AddCast(res)(res);
2432 }
2433 }
2434 }
2435 Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(impconv)))); } while (0)
;
2436 }
2437 }
2438 }
2439 }
2440 if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) {
2441 if (ptr)
2442 *ptr = 0;
2443 if (PyErr_Occurred())
2444 PyErr_Clear();
2445 res = SWIG_OK(0);
2446 }
2447 }
2448 return res;
2449}
2450
2451/* Convert a function ptr value */
2452
2453SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2454SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2455 if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
2456 return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
2457 } else {
2458 void *vptr = 0;
2459
2460 /* here we get the method pointer for callbacks */
2461 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2462 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2463 if (desc)
2464 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2465 if (!desc)
2466 return SWIG_ERROR(-1);
2467 if (ty) {
2468 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2469 if (tc) {
2470 int newmemory = 0;
2471 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2472 assert(!newmemory)((!newmemory) ? static_cast<void> (0) : __assert_fail (
"!newmemory", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn298304/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 2472, __PRETTY_FUNCTION__))
; /* newmemory handling not yet implemented */
2473 } else {
2474 return SWIG_ERROR(-1);
2475 }
2476 } else {
2477 *ptr = vptr;
2478 }
2479 return SWIG_OK(0);
2480 }
2481}
2482
2483/* Convert a packed value value */
2484
2485SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2486SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2487 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2488 if (!to) return SWIG_ERROR(-1);
2489 if (ty) {
2490 if (to != ty) {
2491 /* check type cast? */
2492 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2493 if (!tc) return SWIG_ERROR(-1);
2494 }
2495 }
2496 return SWIG_OK(0);
2497}
2498
2499/* -----------------------------------------------------------------------------
2500 * Create a new pointer object
2501 * ----------------------------------------------------------------------------- */
2502
2503/*
2504 Create a new instance object, without calling __init__, and set the
2505 'this' attribute.
2506*/
2507
2508SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2509SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2510{
2511#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000)
2512 PyObject *inst = 0;
2513 PyObject *newraw = data->newraw;
2514 if (newraw) {
2515 inst = PyObject_Call(newraw, data->newargs, NULL__null);
2516 if (inst) {
2517#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2518 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2519 if (dictptr != NULL__null) {
2520 PyObject *dict = *dictptr;
2521 if (dict == NULL__null) {
2522 dict = PyDict_New();
2523 *dictptr = dict;
2524 PyDict_SetItem(dict, SWIG_This(), swig_this);
2525 }
2526 }
2527#else
2528 PyObject *key = SWIG_This();
2529 PyObject_SetAttr(inst, key, swig_this);
2530#endif
2531 }
2532 } else {
2533#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2534 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct));
2535 if (inst) {
2536 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2537 Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19);
2538 }
2539#else
2540 PyObject *dict = PyDict_New();
2541 if (dict) {
2542 PyDict_SetItem(dict, SWIG_This(), swig_this);
2543 inst = PyInstance_NewRaw(data->newargs, dict);
2544 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2545 }
2546#endif
2547 }
2548 return inst;
2549#else
2550#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02010000)
2551 PyObject *inst = 0;
2552 PyObject *dict = PyDict_New();
2553 if (dict) {
2554 PyDict_SetItem(dict, SWIG_This(), swig_this);
2555 inst = PyInstance_NewRaw(data->newargs, dict);
2556 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2557 }
2558 return (PyObject *) inst;
2559#else
2560 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type
)) )
;
2561 if (inst == NULL__null) {
2562 return NULL__null;
2563 }
2564 inst->in_class = (PyClassObject *)data->newargs;
2565 Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++);
2566 inst->in_dict = PyDict_New();
2567 if (inst->in_dict == NULL__null) {
2568 Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(inst)))); } while (0)
;
2569 return NULL__null;
2570 }
2571#ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6)
2572 inst->in_weakreflist = NULL__null;
2573#endif
2574#ifdef Py_TPFLAGS_GC0
2575 PyObject_GC_Init(inst);
2576#endif
2577 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2578 return (PyObject *) inst;
2579#endif
2580#endif
2581}
2582
2583SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2584SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2585{
2586 PyObject *dict;
2587#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2588 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2589 if (dictptr != NULL__null) {
2590 dict = *dictptr;
2591 if (dict == NULL__null) {
2592 dict = PyDict_New();
2593 *dictptr = dict;
2594 }
2595 PyDict_SetItem(dict, SWIG_This(), swig_this);
2596 return;
2597 }
2598#endif
2599 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2600 PyDict_SetItem(dict, SWIG_This(), swig_this);
2601 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2602}
2603
2604
2605SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2606SWIG_Python_InitShadowInstance(PyObject *args) {
2607 PyObject *obj[2];
2608 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2609 return NULL__null;
2610 } else {
2611 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2612 if (sthis) {
2613 SwigPyObject_append((PyObject*) sthis, obj[1]);
2614 } else {
2615 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2616 }
2617 return SWIG_Py_Void();
2618 }
2619}
2620
2621/* Create a new pointer object */
2622
2623SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2624SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2625 SwigPyClientData *clientdata;
2626 PyObject * robj;
2627 int own;
2628
2629 if (!ptr)
2630 return SWIG_Py_Void();
2631
2632 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2633 own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0;
2634 if (clientdata && clientdata->pytype) {
2635 SwigPyObject *newobj;
2636 if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) {
2637 newobj = (SwigPyObject*) self;
2638 if (newobj->ptr) {
2639 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2640 while (newobj->next)
2641 newobj = (SwigPyObject *) newobj->next;
2642 newobj->next = next_self;
2643 newobj = (SwigPyObject *)next_self;
2644#ifdef SWIGPYTHON_BUILTIN
2645 newobj->dict = 0;
2646#endif
2647 }
2648 } else {
2649 newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) );
2650#ifdef SWIGPYTHON_BUILTIN
2651 newobj->dict = 0;
2652#endif
2653 }
2654 if (newobj) {
2655 newobj->ptr = ptr;
2656 newobj->ty = type;
2657 newobj->own = own;
2658 newobj->next = 0;
2659 return (PyObject*) newobj;
2660 }
2661 return SWIG_Py_Void();
2662 }
2663
2664 assert(!(flags & SWIG_BUILTIN_TP_INIT))((!(flags & (0x1 << 2))) ? static_cast<void> (
0) : __assert_fail ("!(flags & SWIG_BUILTIN_TP_INIT)", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn298304/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 2664, __PRETTY_FUNCTION__))
;
2665
2666 robj = SwigPyObject_New(ptr, type, own);
2667 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) {
2668 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2669 Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(robj)))); } while (0)
;
2670 robj = inst;
2671 }
2672 return robj;
2673}
2674
2675/* Create a new packed object */
2676
2677SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2678SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2679 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2680}
2681
2682/* -----------------------------------------------------------------------------*
2683 * Get type list
2684 * -----------------------------------------------------------------------------*/
2685
2686#ifdef SWIG_LINK_RUNTIME
2687void *SWIG_ReturnGlobalTypeList(void *);
2688#endif
2689
2690SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2691SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2692 static void *type_pointer = (void *)0;
2693 /* first check if module already created */
2694 if (!type_pointer) {
2695#ifdef SWIG_LINK_RUNTIME
2696 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2697#else
2698# ifdef SWIGPY_USE_CAPSULE
2699 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0);
2700# else
2701 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4",
2702 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2703# endif
2704 if (PyErr_Occurred()) {
2705 PyErr_Clear();
2706 type_pointer = (void *)0;
2707 }
2708#endif
2709 }
2710 return (swig_module_info *) type_pointer;
2711}
2712
2713#if PY_MAJOR_VERSION2 < 2
2714/* PyModule_AddObject function was introduced in Python 2.0. The following function
2715 is copied out of Python/modsupport.c in python version 2.3.4 */
2716SWIGINTERNstatic __attribute__ ((__unused__)) int
2717PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2718{
2719 PyObject *dict;
2720 if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype
((((PyObject*)(m))->ob_type), (&PyModule_Type)))
) {
2721 PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
2722 return SWIG_ERROR(-1);
2723 }
2724 if (!o) {
2725 PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
2726 return SWIG_ERROR(-1);
2727 }
2728
2729 dict = PyModule_GetDict(m);
2730 if (dict == NULL__null) {
2731 /* Internal error -- modules must have a dict! */
2732 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2733 PyModule_GetName(m));
2734 return SWIG_ERROR(-1);
2735 }
2736 if (PyDict_SetItemString(dict, name, o))
2737 return SWIG_ERROR(-1);
2738 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
2739 return SWIG_OK(0);
2740}
2741#endif
2742
2743SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2744#ifdef SWIGPY_USE_CAPSULE
2745SWIG_Python_DestroyModule(PyObject *obj)
2746#else
2747SWIG_Python_DestroyModule(void *vptr)
2748#endif
2749{
2750#ifdef SWIGPY_USE_CAPSULE
2751 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ));
2752#else
2753 swig_module_info *swig_module = (swig_module_info *) vptr;
2754#endif
2755 swig_type_info **types = swig_module->types;
2756 size_t i;
2757 for (i =0; i < swig_module->size; ++i) {
2758 swig_type_info *ty = types[i];
2759 if (ty->owndata) {
2760 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2761 if (data) SwigPyClientData_Del(data);
2762 }
2763 }
2764 Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)->
tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while
(0)
;
2765 swig_this = NULL__null;
2766}
2767
2768SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2769SWIG_Python_SetModule(swig_module_info *swig_module) {
2770#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2771 /* Add a dummy module object into sys.modules */
2772 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4");
2773#else
2774 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */
2775 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table
, (char *)__null, (PyObject *)__null, 1013)
;
2776#endif
2777#ifdef SWIGPY_USE_CAPSULE
2778 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule);
2779 if (pointer && module) {
2780 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2781 } else {
2782 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2783 }
2784#else
2785 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2786 if (pointer && module) {
2787 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2788 } else {
2789 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2790 }
2791#endif
2792}
2793
2794/* The python cached type query */
2795SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2796SWIG_Python_TypeCache(void) {
2797 static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New();
2798 return cache;
2799}
2800
2801SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2802SWIG_Python_TypeQuery(const char *type)
2803{
2804 PyObject *cache = SWIG_Python_TypeCache();
2805 PyObject *key = SWIG_Python_str_FromChar(type);
2806 PyObject *obj = PyDict_GetItem(cache, key);
2807 swig_type_info *descriptor;
2808 if (obj) {
2809#ifdef SWIGPY_USE_CAPSULE
2810 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null);
2811#else
2812 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2813#endif
2814 } else {
2815 swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0);
2816 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2817 if (descriptor) {
2818#ifdef SWIGPY_USE_CAPSULE
2819 obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null);
2820#else
2821 obj = PyCObject_FromVoidPtr(descriptor, NULL__null);
2822#endif
2823 PyDict_SetItem(cache, key, obj);
2824 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2825 }
2826 }
2827 Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(key)))); } while (0)
;
2828 return descriptor;
2829}
2830
2831/*
2832 For backward compatibility only
2833*/
2834#define SWIG_POINTER_EXCEPTION0 0
2835#define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg)
2836#define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2837
2838SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2839SWIG_Python_AddErrMesg(const char* mesg, int infront)
2840{
2841 if (PyErr_Occurred()) {
2842 PyObject *type = 0;
2843 PyObject *value = 0;
2844 PyObject *traceback = 0;
2845 PyErr_Fetch(&type, &value, &traceback);
2846 if (value) {
2847 char *tmp;
2848 PyObject *old_str = PyObject_Str(value);
2849 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
2850 PyErr_Clear();
2851 if (infront) {
2852 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2853 } else {
2854 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2855 }
2856 SWIG_Python_str_DelForPy3(tmp);
2857 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
2858 }
2859 return 1;
2860 } else {
2861 return 0;
2862 }
2863}
2864
2865SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2866SWIG_Python_ArgFail(int argnum)
2867{
2868 if (PyErr_Occurred()) {
2869 /* add information about failing argument */
2870 char mesg[256];
2871 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2872 return SWIG_Python_AddErrMesg(mesg, 1);
2873 } else {
2874 return 0;
2875 }
2876}
2877
2878SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2879SwigPyObject_GetDesc(PyObject *self)
2880{
2881 SwigPyObject *v = (SwigPyObject *)self;
2882 swig_type_info *ty = v ? v->ty : 0;
2883 return ty ? ty->str : "";
2884}
2885
2886SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2887SWIG_Python_TypeError(const char *type, PyObject *obj)
2888{
2889 if (type) {
2890#if defined(SWIG_COBJECT_TYPES)
2891 if (obj && SwigPyObject_Check(obj)) {
2892 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2893 if (otype) {
2894 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2895 type, otype);
2896 return;
2897 }
2898 } else
2899#endif
2900 {
2901 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2902 if (otype) {
2903 PyObject *str = PyObject_Str(obj);
2904 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2905 if (cstr) {
2906 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2907 type, otype, cstr);
2908 SWIG_Python_str_DelForPy3(cstr);
2909 } else {
2910 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2911 type, otype);
2912 }
2913 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
2914 return;
2915 }
2916 }
2917 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2918 } else {
2919 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2920 }
2921}
2922
2923
2924/* Convert a pointer value, signal an exception on a type mismatch */
2925SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2926SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2927 void *result;
2928 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
2929 PyErr_Clear();
2930#if SWIG_POINTER_EXCEPTION0
2931 if (flags) {
2932 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2933 SWIG_Python_ArgFail(argnum);
2934 }
2935#endif
2936 }
2937 return result;
2938}
2939
2940#ifdef SWIGPYTHON_BUILTIN
2941SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2942SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2943 PyTypeObject *tp = obj->ob_type;
2944 PyObject *descr;
2945 PyObject *encoded_name;
2946 descrsetfunc f;
2947 int res = -1;
2948
2949# ifdef Py_USING_UNICODE1
2950 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2951 name = PyUnicode_DecodePyUnicodeUCS4_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null);
2952 if (!name)
2953 return -1;
2954 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<28))) != 0)
)
2955# else
2956 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
)
2957# endif
2958 {
2959 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2960 return -1;
2961 } else {
2962 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2963 }
2964
2965 if (!tp->tp_dict) {
2966 if (PyType_Ready(tp) < 0)
2967 goto done;
2968 }
2969
2970 descr = _PyType_Lookup(tp, name);
2971 f = NULL__null;
2972 if (descr != NULL__null)
2973 f = descr->ob_type->tp_descr_set;
2974 if (!f) {
2975 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2976 encoded_name = name;
2977 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2978 } else {
2979 encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(name);
2980 }
2981 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2982 Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(encoded_name))));
} while (0)
;
2983 } else {
2984 res = f(descr, obj, value);
2985 }
2986
2987 done:
2988 Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(name)))); } while (0)
;
2989 return res;
2990}
2991#endif
2992
2993
2994#ifdef __cplusplus201103L
2995}
2996#endif
2997
2998
2999
3000#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
3001
3002#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
3003
3004
3005
3006// Forward declaration to be inserted at the start of LLDBWrapPython.h
3007#include "lldb/API/SBDebugger.h"
3008#include "lldb/API/SBValue.h"
3009
3010SWIGEXPORT__attribute__ ((visibility("default"))) lldb::ValueObjectSP
3011LLDBSWIGPython_GetValueObjectSPFromSBValue (void* data)
3012{
3013 lldb::ValueObjectSP valobj_sp;
3014 if (data)
3015 {
3016 lldb::SBValue* sb_ptr = (lldb::SBValue *)data;
3017 valobj_sp = sb_ptr->GetSP();
3018 }
3019 return valobj_sp;
3020}
3021
3022#ifdef __cplusplus201103L
3023extern "C" {
3024#endif
3025
3026void LLDBSwigPythonCallPythonLogOutputCallback(const char *str, void *baton);
3027
3028#ifdef __cplusplus201103L
3029}
3030#endif
3031
3032
3033/* -------- TYPES TABLE (BEGIN) -------- */
3034
3035#define SWIGTYPE_p_FILEswig_types[0] swig_types[0]
3036#define SWIGTYPE_p_boolswig_types[1] swig_types[1]
3037#define SWIGTYPE_p_charswig_types[2] swig_types[2]
3038#define SWIGTYPE_p_doubleswig_types[3] swig_types[3]
3039#define SWIGTYPE_p_f_p_void__p_voidswig_types[4] swig_types[4]
3040#define SWIGTYPE_p_f_p_void_p_q_const__void_size_t__voidswig_types[5] swig_types[5]
3041#define SWIGTYPE_p_intswig_types[6] swig_types[6]
3042#define SWIGTYPE_p_lldb__ConnectionStatusswig_types[7] swig_types[7]
3043#define SWIGTYPE_p_lldb__SBAddressswig_types[8] swig_types[8]
3044#define SWIGTYPE_p_lldb__SBAttachInfoswig_types[9] swig_types[9]
3045#define SWIGTYPE_p_lldb__SBBlockswig_types[10] swig_types[10]
3046#define SWIGTYPE_p_lldb__SBBreakpointswig_types[11] swig_types[11]
3047#define SWIGTYPE_p_lldb__SBBreakpointListswig_types[12] swig_types[12]
3048#define SWIGTYPE_p_lldb__SBBreakpointLocationswig_types[13] swig_types[13]
3049#define SWIGTYPE_p_lldb__SBBroadcasterswig_types[14] swig_types[14]
3050#define SWIGTYPE_p_lldb__SBCommandInterpreterswig_types[15] swig_types[15]
3051#define SWIGTYPE_p_lldb__SBCommandInterpreterRunOptionsswig_types[16] swig_types[16]
3052#define SWIGTYPE_p_lldb__SBCommandReturnObjectswig_types[17] swig_types[17]
3053#define SWIGTYPE_p_lldb__SBCommunicationswig_types[18] swig_types[18]
3054#define SWIGTYPE_p_lldb__SBCompileUnitswig_types[19] swig_types[19]
3055#define SWIGTYPE_p_lldb__SBDataswig_types[20] swig_types[20]
3056#define SWIGTYPE_p_lldb__SBDebuggerswig_types[21] swig_types[21]
3057#define SWIGTYPE_p_lldb__SBDeclarationswig_types[22] swig_types[22]
3058#define SWIGTYPE_p_lldb__SBErrorswig_types[23] swig_types[23]
3059#define SWIGTYPE_p_lldb__SBEventswig_types[24] swig_types[24]
3060#define SWIGTYPE_p_lldb__SBExecutionContextswig_types[25] swig_types[25]
3061#define SWIGTYPE_p_lldb__SBExpressionOptionsswig_types[26] swig_types[26]
3062#define SWIGTYPE_p_lldb__SBFileSpecswig_types[27] swig_types[27]
3063#define SWIGTYPE_p_lldb__SBFileSpecListswig_types[28] swig_types[28]
3064#define SWIGTYPE_p_lldb__SBFrameswig_types[29] swig_types[29]
3065#define SWIGTYPE_p_lldb__SBFunctionswig_types[30] swig_types[30]
3066#define SWIGTYPE_p_lldb__SBHostOSswig_types[31] swig_types[31]
3067#define SWIGTYPE_p_lldb__SBInstructionswig_types[32] swig_types[32]
3068#define SWIGTYPE_p_lldb__SBInstructionListswig_types[33] swig_types[33]
3069#define SWIGTYPE_p_lldb__SBLanguageRuntimeswig_types[34] swig_types[34]
3070#define SWIGTYPE_p_lldb__SBLaunchInfoswig_types[35] swig_types[35]
3071#define SWIGTYPE_p_lldb__SBLineEntryswig_types[36] swig_types[36]
3072#define SWIGTYPE_p_lldb__SBListenerswig_types[37] swig_types[37]
3073#define SWIGTYPE_p_lldb__SBMemoryRegionInfoswig_types[38] swig_types[38]
3074#define SWIGTYPE_p_lldb__SBMemoryRegionInfoListswig_types[39] swig_types[39]
3075#define SWIGTYPE_p_lldb__SBModuleswig_types[40] swig_types[40]
3076#define SWIGTYPE_p_lldb__SBModuleSpecswig_types[41] swig_types[41]
3077#define SWIGTYPE_p_lldb__SBModuleSpecListswig_types[42] swig_types[42]
3078#define SWIGTYPE_p_lldb__SBPlatformswig_types[43] swig_types[43]
3079#define SWIGTYPE_p_lldb__SBPlatformConnectOptionsswig_types[44] swig_types[44]
3080#define SWIGTYPE_p_lldb__SBPlatformShellCommandswig_types[45] swig_types[45]
3081#define SWIGTYPE_p_lldb__SBProcessswig_types[46] swig_types[46]
3082#define SWIGTYPE_p_lldb__SBQueueswig_types[47] swig_types[47]
3083#define SWIGTYPE_p_lldb__SBQueueItemswig_types[48] swig_types[48]
3084#define SWIGTYPE_p_lldb__SBSectionswig_types[49] swig_types[49]
3085#define SWIGTYPE_p_lldb__SBSourceManagerswig_types[50] swig_types[50]
3086#define SWIGTYPE_p_lldb__SBStreamswig_types[51] swig_types[51]
3087#define SWIGTYPE_p_lldb__SBStringListswig_types[52] swig_types[52]
3088#define SWIGTYPE_p_lldb__SBStructuredDataswig_types[53] swig_types[53]
3089#define SWIGTYPE_p_lldb__SBSymbolswig_types[54] swig_types[54]
3090#define SWIGTYPE_p_lldb__SBSymbolContextswig_types[55] swig_types[55]
3091#define SWIGTYPE_p_lldb__SBSymbolContextListswig_types[56] swig_types[56]
3092#define SWIGTYPE_p_lldb__SBTargetswig_types[57] swig_types[57]
3093#define SWIGTYPE_p_lldb__SBThreadswig_types[58] swig_types[58]
3094#define SWIGTYPE_p_lldb__SBThreadCollectionswig_types[59] swig_types[59]
3095#define SWIGTYPE_p_lldb__SBThreadPlanswig_types[60] swig_types[60]
3096#define SWIGTYPE_p_lldb__SBTypeswig_types[61] swig_types[61]
3097#define SWIGTYPE_p_lldb__SBTypeCategoryswig_types[62] swig_types[62]
3098#define SWIGTYPE_p_lldb__SBTypeEnumMemberswig_types[63] swig_types[63]
3099#define SWIGTYPE_p_lldb__SBTypeEnumMemberListswig_types[64] swig_types[64]
3100#define SWIGTYPE_p_lldb__SBTypeFilterswig_types[65] swig_types[65]
3101#define SWIGTYPE_p_lldb__SBTypeFormatswig_types[66] swig_types[66]
3102#define SWIGTYPE_p_lldb__SBTypeListswig_types[67] swig_types[67]
3103#define SWIGTYPE_p_lldb__SBTypeMemberswig_types[68] swig_types[68]
3104#define SWIGTYPE_p_lldb__SBTypeMemberFunctionswig_types[69] swig_types[69]
3105#define SWIGTYPE_p_lldb__SBTypeNameSpecifierswig_types[70] swig_types[70]
3106#define SWIGTYPE_p_lldb__SBTypeSummaryswig_types[71] swig_types[71]
3107#define SWIGTYPE_p_lldb__SBTypeSummaryOptionsswig_types[72] swig_types[72]
3108#define SWIGTYPE_p_lldb__SBTypeSyntheticswig_types[73] swig_types[73]
3109#define SWIGTYPE_p_lldb__SBUnixSignalsswig_types[74] swig_types[74]
3110#define SWIGTYPE_p_lldb__SBValueswig_types[75] swig_types[75]
3111#define SWIGTYPE_p_lldb__SBValueListswig_types[76] swig_types[76]
3112#define SWIGTYPE_p_lldb__SBVariablesOptionsswig_types[77] swig_types[77]
3113#define SWIGTYPE_p_lldb__SBWatchpointswig_types[78] swig_types[78]
3114#define SWIGTYPE_p_lldb_private__SharingPtrT_lldb_private__ValueObject_tswig_types[79] swig_types[79]
3115#define SWIGTYPE_p_long_doubleswig_types[80] swig_types[80]
3116#define SWIGTYPE_p_long_longswig_types[81] swig_types[81]
3117#define SWIGTYPE_p_p_voidswig_types[82] swig_types[82]
3118#define SWIGTYPE_p_pthread_cond_tswig_types[83] swig_types[83]
3119#define SWIGTYPE_p_pthread_key_tswig_types[84] swig_types[84]
3120#define SWIGTYPE_p_pthread_mutex_tswig_types[85] swig_types[85]
3121#define SWIGTYPE_p_pthread_rwlock_tswig_types[86] swig_types[86]
3122#define SWIGTYPE_p_pthread_tswig_types[87] swig_types[87]
3123#define SWIGTYPE_p_shortswig_types[88] swig_types[88]
3124#define SWIGTYPE_p_signed_charswig_types[89] swig_types[89]
3125#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ABI_tswig_types[90] swig_types[90]
3126#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Baton_tswig_types[91] swig_types[91]
3127#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Block_tswig_types[92] swig_types[92]
3128#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointLocation_tswig_types[93] swig_types[93]
3129#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointResolver_tswig_types[94] swig_types[94]
3130#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointSite_tswig_types[95] swig_types[95]
3131#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Breakpoint_tswig_types[96] swig_types[96]
3132#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BroadcasterManager_tswig_types[97] swig_types[97]
3133#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Broadcaster_tswig_types[98] swig_types[98]
3134#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ClangASTImporter_tswig_types[99] swig_types[99]
3135#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CommandObject_tswig_types[100] swig_types[100]
3136#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Communication_tswig_types[101] swig_types[101]
3137#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CompileUnit_tswig_types[102] swig_types[102]
3138#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Connection_tswig_types[103] swig_types[103]
3139#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataBuffer_tswig_types[104] swig_types[104]
3140#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataExtractor_tswig_types[105] swig_types[105]
3141#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Debugger_tswig_types[106] swig_types[106]
3142#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Disassembler_tswig_types[107] swig_types[107]
3143#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DynamicLoader_tswig_types[108] swig_types[108]
3144#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventDataStructuredData_tswig_types[109] swig_types[109]
3145#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventData_tswig_types[110] swig_types[110]
3146#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Event_tswig_types[111] swig_types[111]
3147#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExecutionContextRef_tswig_types[112] swig_types[112]
3148#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExpressionVariable_tswig_types[113] swig_types[113]
3149#define SWIGTYPE_p_std__shared_ptrT_lldb_private__File_tswig_types[114] swig_types[114]
3150#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FuncUnwinders_tswig_types[115] swig_types[115]
3151#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FunctionCaller_tswig_types[116] swig_types[116]
3152#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Function_tswig_types[117] swig_types[117]
3153#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOHandler_tswig_types[118] swig_types[118]
3154#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOObject_tswig_types[119] swig_types[119]
3155#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IRExecutionUnit_tswig_types[120] swig_types[120]
3156#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InlineFunctionInfo_tswig_types[121] swig_types[121]
3157#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Instruction_tswig_types[122] swig_types[122]
3158#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InstrumentationRuntime_tswig_types[123] swig_types[123]
3159#define SWIGTYPE_p_std__shared_ptrT_lldb_private__JITLoader_tswig_types[124] swig_types[124]
3160#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LanguageRuntime_tswig_types[125] swig_types[125]
3161#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LineTable_tswig_types[126] swig_types[126]
3162#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Listener_tswig_types[127] swig_types[127]
3163#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryHistory_tswig_types[128] swig_types[128]
3164#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryRegionInfo_tswig_types[129] swig_types[129]
3165#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Module_tswig_types[130] swig_types[130]
3166#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[131] swig_types[131]
3167#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFile_tswig_types[132] swig_types[132]
3168#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArch_tswig_types[133] swig_types[133]
3169#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArgs_tswig_types[134] swig_types[134]
3170#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArray_tswig_types[135] swig_types[135]
3171#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueBoolean_tswig_types[136] swig_types[136]
3172#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueDictionary_tswig_types[137] swig_types[137]
3173#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_tswig_types[138] swig_types[138]
3174#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpec_tswig_types[139] swig_types[139]
3175#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFormat_tswig_types[140] swig_types[140]
3176#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValuePathMappings_tswig_types[141] swig_types[141]
3177#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueProperties_tswig_types[142] swig_types[142]
3178#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueRegex_tswig_types[143] swig_types[143]
3179#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueSInt64_tswig_types[144] swig_types[144]
3180#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueString_tswig_types[145] swig_types[145]
3181#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUInt64_tswig_types[146] swig_types[146]
3182#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUUID_tswig_types[147] swig_types[147]
3183#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValue_tswig_types[148] swig_types[148]
3184#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Platform_tswig_types[149] swig_types[149]
3185#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessAttachInfo_tswig_types[150] swig_types[150]
3186#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_tswig_types[151] swig_types[151]
3187#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Process_tswig_types[152] swig_types[152]
3188#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Property_tswig_types[153] swig_types[153]
3189#define SWIGTYPE_p_std__shared_ptrT_lldb_private__QueueItem_tswig_types[154] swig_types[154]
3190#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_tswig_types[155] swig_types[155]
3191#define SWIGTYPE_p_std__shared_ptrT_lldb_private__REPL_tswig_types[156] swig_types[156]
3192#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterCheckpoint_tswig_types[157] swig_types[157]
3193#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterContext_tswig_types[158] swig_types[158]
3194#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegularExpression_tswig_types[159] swig_types[159]
3195#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptInterpreter_tswig_types[160] swig_types[160]
3196#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_tswig_types[161] swig_types[161]
3197#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_tswig_types[162] swig_types[162]
3198#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SearchFilter_tswig_types[163] swig_types[163]
3199#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SectionLoadList_tswig_types[164] swig_types[164]
3200#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Section_tswig_types[165] swig_types[165]
3201#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Settings_tswig_types[166] swig_types[166]
3202#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameList_tswig_types[167] swig_types[167]
3203#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrame_tswig_types[168] swig_types[168]
3204#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StopInfo_tswig_types[169] swig_types[169]
3205#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StoppointLocation_tswig_types[170] swig_types[170]
3206#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StreamFile_tswig_types[171] swig_types[171]
3207#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Stream_tswig_types[172] swig_types[172]
3208#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StringSummaryFormat_tswig_types[173] swig_types[173]
3209#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StructuredDataPlugin_tswig_types[174] swig_types[174]
3210#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_tswig_types[175] swig_types[175]
3211#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFileType_tswig_types[176] swig_types[176]
3212#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFile_tswig_types[177] swig_types[177]
3213#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_tswig_types[178] swig_types[178]
3214#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildren_tswig_types[179] swig_types[179]
3215#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SystemRuntime_tswig_types[180] swig_types[180]
3216#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TargetProperties_tswig_types[181] swig_types[181]
3217#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Target_tswig_types[182] swig_types[182]
3218#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadCollection_tswig_types[183] swig_types[183]
3219#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlanTracer_tswig_types[184] swig_types[184]
3220#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlan_tswig_types[185] swig_types[185]
3221#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Thread_tswig_types[186] swig_types[186]
3222#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeCategoryImpl_tswig_types[187] swig_types[187]
3223#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeEnumMemberImpl_tswig_types[188] swig_types[188]
3224#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFilterImpl_tswig_types[189] swig_types[189]
3225#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFormatImpl_tswig_types[190] swig_types[190]
3226#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeImpl_tswig_types[191] swig_types[191]
3227#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeMemberFunctionImpl_tswig_types[192] swig_types[192]
3228#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeNameSpecifierImpl_tswig_types[193] swig_types[193]
3229#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryImpl_tswig_types[194] swig_types[194]
3230#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryOptions_tswig_types[195] swig_types[195]
3231#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSystem_tswig_types[196] swig_types[196]
3232#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeValidatorImpl_tswig_types[197] swig_types[197]
3233#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Type_tswig_types[198] swig_types[198]
3234#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnixSignals_tswig_types[199] swig_types[199]
3235#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindAssembly_tswig_types[200] swig_types[200]
3236#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindPlan_tswig_types[201] swig_types[201]
3237#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UserExpression_tswig_types[202] swig_types[202]
3238#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UtilityFunction_tswig_types[203] swig_types[203]
3239#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueList_tswig_types[204] swig_types[204]
3240#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObjectList_tswig_types[205] swig_types[205]
3241#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Value_tswig_types[206] swig_types[206]
3242#define SWIGTYPE_p_std__shared_ptrT_lldb_private__VariableList_tswig_types[207] swig_types[207]
3243#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Variable_tswig_types[208] swig_types[208]
3244#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Watchpoint_tswig_types[209] swig_types[209]
3245#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangASTContext_tswig_types[210] swig_types[210]
3246#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangModulesDeclVendor_tswig_types[211] swig_types[211]
3247#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangPersistentVariables_tswig_types[212] swig_types[212]
3248#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicCheckerFunctions_tswig_types[213] swig_types[213]
3249#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicLoader_tswig_types[214] swig_types[214]
3250#define SWIGTYPE_p_std__unique_ptrT_lldb_private__GoASTContext_tswig_types[215] swig_types[215]
3251#define SWIGTYPE_p_std__unique_ptrT_lldb_private__JITLoaderList_tswig_types[216] swig_types[216]
3252#define SWIGTYPE_p_std__unique_ptrT_lldb_private__MemoryRegionInfo_tswig_types[217] swig_types[217]
3253#define SWIGTYPE_p_std__unique_ptrT_lldb_private__OperatingSystem_tswig_types[218] swig_types[218]
3254#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ScriptInterpreter_tswig_types[219] swig_types[219]
3255#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SectionList_tswig_types[220] swig_types[220]
3256#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SourceManager_tswig_types[221] swig_types[221]
3257#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StackFrame_tswig_types[222] swig_types[222]
3258#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SymbolVendor_tswig_types[223] swig_types[223]
3259#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SystemRuntime_tswig_types[224] swig_types[224]
3260#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointLocation_tswig_types[225] swig_types[225]
3261#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointSite_tswig_types[226] swig_types[226]
3262#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Breakpoint_tswig_types[227] swig_types[227]
3263#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BroadcasterManager_tswig_types[228] swig_types[228]
3264#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Debugger_tswig_types[229] swig_types[229]
3265#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Listener_tswig_types[230] swig_types[230]
3266#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Module_tswig_types[231] swig_types[231]
3267#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[232] swig_types[232]
3268#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFile_tswig_types[233] swig_types[233]
3269#define SWIGTYPE_p_std__weak_ptrT_lldb_private__OptionValue_tswig_types[234] swig_types[234]
3270#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Process_tswig_types[235] swig_types[235]
3271#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Queue_tswig_types[236] swig_types[236]
3272#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Section_tswig_types[237] swig_types[237]
3273#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StackFrame_tswig_types[238] swig_types[238]
3274#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Stream_tswig_types[239] swig_types[239]
3275#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StructuredDataPlugin_tswig_types[240] swig_types[240]
3276#define SWIGTYPE_p_std__weak_ptrT_lldb_private__SymbolFileType_tswig_types[241] swig_types[241]
3277#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Target_tswig_types[242] swig_types[242]
3278#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Thread_tswig_types[243] swig_types[243]
3279#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Type_tswig_types[244] swig_types[244]
3280#define SWIGTYPE_p_std__weak_ptrT_lldb_private__UnixSignals_tswig_types[245] swig_types[245]
3281#define SWIGTYPE_p_unsigned_charswig_types[246] swig_types[246]
3282#define SWIGTYPE_p_unsigned_intswig_types[247] swig_types[247]
3283#define SWIGTYPE_p_unsigned_long_longswig_types[248] swig_types[248]
3284#define SWIGTYPE_p_unsigned_shortswig_types[249] swig_types[249]
3285#define SWIGTYPE_p_voidswig_types[250] swig_types[250]
3286static swig_type_info *swig_types[252];
3287static swig_module_info swig_module = {swig_types, 251, 0, 0, 0, 0};
3288#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3289#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3290
3291/* -------- TYPES TABLE (END) -------- */
3292
3293#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
3294# if !defined(SWIG_PYTHON_CLASSIC)
3295# error "This python version requires swig to be run with the '-classic' option"
3296# endif
3297#endif
3298
3299/*-----------------------------------------------
3300 @(target):= _lldb.so
3301 ------------------------------------------------*/
3302#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3303# define SWIG_initinit_lldb PyInit__lldb
3304
3305#else
3306# define SWIG_initinit_lldb init_lldb
3307
3308#endif
3309#define SWIG_name"_lldb" "_lldb"
3310
3311#define SWIGVERSION0x030010 0x030010
3312#define SWIG_VERSION0x030010 SWIGVERSION0x030010
3313
3314
3315#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
3316#define SWIG_as_voidptrptr(a)((void)const_cast< void * >(static_cast< const void *
>(*a)),reinterpret_cast< void** >(a))
((void)SWIG_as_voidptr(*a)const_cast< void * >(static_cast< const void * >(
*a))
,reinterpret_cast< void** >(a))
3317
3318
3319#include <stdexcept>
3320
3321
3322namespace swig {
3323 class SwigPtr_PyObject {
3324 protected:
3325 PyObject *_obj;
3326
3327 public:
3328 SwigPtr_PyObject() :_obj(0)
3329 {
3330 }
3331
3332 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3333 {
3334 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3335 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3336 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3337 }
3338
3339 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3340 {
3341 if (initial_ref) {
3342 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3343 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3344 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3345 }
3346 }
3347
3348 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3349 {
3350 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3351 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3352 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3353 _obj = item._obj;
3354 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3355 return *this;
3356 }
3357
3358 ~SwigPtr_PyObject()
3359 {
3360 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3361 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3362 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3363 }
3364
3365 operator PyObject *() const
3366 {
3367 return _obj;
3368 }
3369
3370 PyObject *operator->() const
3371 {
3372 return _obj;
3373 }
3374 };
3375}
3376
3377
3378namespace swig {
3379 struct SwigVar_PyObject : SwigPtr_PyObject {
3380 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3381
3382 SwigVar_PyObject & operator = (PyObject* obj)
3383 {
3384 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3385 _obj = obj;
3386 return *this;
3387 }
3388 };
3389}
3390
3391
3392#include <algorithm>
3393#include <string>
3394
3395
3396#include "lldb/lldb-public.h"
3397#include "lldb/API/SBAddress.h"
3398#include "lldb/API/SBAttachInfo.h"
3399#include "lldb/API/SBBlock.h"
3400#include "lldb/API/SBBreakpoint.h"
3401#include "lldb/API/SBBreakpointLocation.h"
3402#include "lldb/API/SBBroadcaster.h"
3403#include "lldb/API/SBCommandInterpreter.h"
3404#include "lldb/API/SBCommandReturnObject.h"
3405#include "lldb/API/SBCommunication.h"
3406#include "lldb/API/SBCompileUnit.h"
3407#include "lldb/API/SBData.h"
3408#include "lldb/API/SBDebugger.h"
3409#include "lldb/API/SBDeclaration.h"
3410#include "lldb/API/SBError.h"
3411#include "lldb/API/SBEvent.h"
3412#include "lldb/API/SBExecutionContext.h"
3413#include "lldb/API/SBExpressionOptions.h"
3414#include "lldb/API/SBFileSpec.h"
3415#include "lldb/API/SBFileSpecList.h"
3416#include "lldb/API/SBFrame.h"
3417#include "lldb/API/SBFunction.h"
3418#include "lldb/API/SBHostOS.h"
3419#include "lldb/API/SBInstruction.h"
3420#include "lldb/API/SBInstructionList.h"
3421#include "lldb/API/SBLanguageRuntime.h"
3422#include "lldb/API/SBLaunchInfo.h"
3423#include "lldb/API/SBLineEntry.h"
3424#include "lldb/API/SBListener.h"
3425#include "lldb/API/SBMemoryRegionInfo.h"
3426#include "lldb/API/SBMemoryRegionInfoList.h"
3427#include "lldb/API/SBModule.h"
3428#include "lldb/API/SBModuleSpec.h"
3429#include "lldb/API/SBPlatform.h"
3430#include "lldb/API/SBProcess.h"
3431#include "lldb/API/SBQueue.h"
3432#include "lldb/API/SBQueueItem.h"
3433#include "lldb/API/SBSection.h"
3434#include "lldb/API/SBSourceManager.h"
3435#include "lldb/API/SBStream.h"
3436#include "lldb/API/SBStringList.h"
3437#include "lldb/API/SBStructuredData.h"
3438#include "lldb/API/SBSymbol.h"
3439#include "lldb/API/SBSymbolContext.h"
3440#include "lldb/API/SBSymbolContextList.h"
3441#include "lldb/API/SBTarget.h"
3442#include "lldb/API/SBThread.h"
3443#include "lldb/API/SBThreadCollection.h"
3444#include "lldb/API/SBThreadPlan.h"
3445#include "lldb/API/SBType.h"
3446#include "lldb/API/SBTypeCategory.h"
3447#include "lldb/API/SBTypeEnumMember.h"
3448#include "lldb/API/SBTypeFilter.h"
3449#include "lldb/API/SBTypeFormat.h"
3450#include "lldb/API/SBTypeNameSpecifier.h"
3451#include "lldb/API/SBTypeSummary.h"
3452#include "lldb/API/SBTypeSynthetic.h"
3453#include "lldb/API/SBValue.h"
3454#include "lldb/API/SBValueList.h"
3455#include "lldb/API/SBVariablesOptions.h"
3456#include "lldb/API/SBWatchpoint.h"
3457#include "lldb/API/SBUnixSignals.h"
3458
3459#include "../source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h"
3460
3461#include "../scripts/Python/python-swigsafecast.swig"
3462
3463
3464#include <stdint.h> // Use the C99 official header
3465
3466
3467SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3468 SWIG_From_int (int value)
3469{
3470 return PyInt_FromLong((long) value);
3471}
3472
3473
3474SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3475 SWIG_From_unsigned_SS_int (unsigned int value)
3476{
3477 return PyInt_FromSize_t((size_t) value);
3478}
3479
3480
3481#include <limits.h>
3482#if !defined(SWIG_NO_LLONG_MAX)
3483# if !defined(LLONG_MAX9223372036854775807LL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3484# define LLONG_MAX9223372036854775807LL __LONG_LONG_MAX__9223372036854775807LL
3485# define LLONG_MIN(-9223372036854775807LL -1LL) (-LLONG_MAX9223372036854775807LL - 1LL)
3486# define ULLONG_MAX(9223372036854775807LL*2ULL+1ULL) (LLONG_MAX9223372036854775807LL * 2ULL + 1ULL)
3487# endif
3488#endif
3489
3490
3491#if defined(LLONG_MAX9223372036854775807LL) && !defined(SWIG_LONG_LONG_AVAILABLE)
3492# define SWIG_LONG_LONG_AVAILABLE
3493#endif
3494
3495
3496#ifdef SWIG_LONG_LONG_AVAILABLE
3497SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3498SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
3499{
3500 return (value > LONG_MAX9223372036854775807L) ?
3501 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
3502}
3503#endif
3504
3505
3506SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3507SWIG_pchar_descriptor(void)
3508{
3509 static int init = 0;
3510 static swig_type_info* info = 0;
3511 if (!init) {
3512 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3513 init = 1;
3514 }
3515 return info;
3516}
3517
3518
3519SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3520SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3521{
3522 if (carray) {
3523 if (size > INT_MAX2147483647) {
3524 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3525 return pchar_descriptor ?
3526 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3527 } else {
3528#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3529#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3530 return PyBytes_FromStringAndSizePyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3531#else
3532#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03010000
3533 return PyUnicode_DecodeUTF8PyUnicodeUCS4_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
3534#else
3535 return PyUnicode_FromStringAndSizePyUnicodeUCS4_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3536#endif
3537#endif
3538#else
3539 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3540#endif
3541 }
3542 } else {
3543 return SWIG_Py_Void();
3544 }
3545}
3546
3547
3548SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3549SWIG_FromCharPtr(const char *cptr)
3550{
3551 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3552}
3553
3554
3555SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3556 SWIG_From_bool (bool value)
3557{
3558 return PyBool_FromLong(value ? 1 : 0);
3559}
3560
3561
3562SWIGINTERNstatic __attribute__ ((__unused__)) int
3563SWIG_AsVal_double (PyObject *obj, double *val)
3564{
3565 int res = SWIG_TypeError-5;
3566 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3567 if (val) *val = PyFloat_AsDouble(obj);
3568 return SWIG_OK(0);
3569#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3570 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3571 if (val) *val = PyInt_AsLong(obj);
3572 return SWIG_OK(0);
3573#endif
3574 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3575 double v = PyLong_AsDouble(obj);
3576 if (!PyErr_Occurred()) {
3577 if (val) *val = v;
3578 return SWIG_OK(0);
3579 } else {
3580 PyErr_Clear();
3581 }
3582 }
3583#ifdef SWIG_PYTHON_CAST_MODE
3584 {
3585 int dispatch = 0;
3586 double d = PyFloat_AsDouble(obj);
3587 if (!PyErr_Occurred()) {
3588 if (val) *val = d;
3589 return SWIG_AddCast(SWIG_OK)((0));
3590 } else {
3591 PyErr_Clear();
3592 }
3593 if (!dispatch) {
3594 long v = PyLong_AsLong(obj);
3595 if (!PyErr_Occurred()) {
3596 if (val) *val = v;
3597 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3598 } else {
3599 PyErr_Clear();
3600 }
3601 }
3602 }
3603#endif
3604 return res;
3605}
3606
3607
3608#include <float.h>
3609
3610
3611#include <math.h>
3612
3613
3614SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3615SWIG_CanCastAsInteger(double *d, double min, double max) {
3616 double x = *d;
3617 if ((min <= x && x <= max)) {
3618 double fx = floor(x);
3619 double cx = ceil(x);
3620 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3621 if ((errno(*__errno_location ()) == EDOM33) || (errno(*__errno_location ()) == ERANGE34)) {
3622 errno(*__errno_location ()) = 0;
3623 } else {
3624 double summ, reps, diff;
3625 if (rd < x) {
3626 diff = x - rd;
3627 } else if (rd > x) {
3628 diff = rd - x;
3629 } else {
3630 return 1;
3631 }
3632 summ = rd + x;
3633 reps = diff/summ;
3634 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3635 *d = rd;
3636 return 1;
3637 }
3638 }
3639 }
3640 return 0;
3641}
3642
3643
3644SWIGINTERNstatic __attribute__ ((__unused__)) int
3645SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3646{
3647#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3648 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3649 long v = PyInt_AsLong(obj);
3650 if (v >= 0) {
3651 if (val) *val = v;
3652 return SWIG_OK(0);
3653 } else {
3654 return SWIG_OverflowError-7;
3655 }
3656 } else
3657#endif
3658 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3659 unsigned long v = PyLong_AsUnsignedLong(obj);
3660 if (!PyErr_Occurred()) {
3661 if (val) *val = v;
3662 return SWIG_OK(0);
3663 } else {
3664 PyErr_Clear();
3665 return SWIG_OverflowError-7;
3666 }
3667 }
3668#ifdef SWIG_PYTHON_CAST_MODE
3669 {
3670 int dispatch = 0;
3671 unsigned long v = PyLong_AsUnsignedLong(obj);
3672 if (!PyErr_Occurred()) {
3673 if (val) *val = v;
3674 return SWIG_AddCast(SWIG_OK)((0));
3675 } else {
3676 PyErr_Clear();
3677 }
3678 if (!dispatch) {
3679 double d;
3680 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3681 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3682 if (val) *val = (unsigned long)(d);
3683 return res;
3684 }
3685 }
3686 }
3687#endif
3688 return SWIG_TypeError-5;
3689}
3690
3691
3692#ifdef SWIG_LONG_LONG_AVAILABLE
3693SWIGINTERNstatic __attribute__ ((__unused__)) int
3694SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
3695{
3696 int res = SWIG_TypeError-5;
3697 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3698 unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3699 if (!PyErr_Occurred()) {
3700 if (val) *val = v;
3701 return SWIG_OK(0);
3702 } else {
3703 PyErr_Clear();
3704 res = SWIG_OverflowError-7;
3705 }
3706 } else {
3707 unsigned long v;
3708 res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3709 if (SWIG_IsOK(res)(res >= 0)) {
3710 if (val) *val = v;
3711 return res;
3712 }
3713 }
3714#ifdef SWIG_PYTHON_CAST_MODE
3715 {
3716 const double mant_max = 1LL << DBL_MANT_DIG53;
3717 double d;
3718 res = SWIG_AsVal_double (obj,&d);
3719 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3720 if (val) *val = (unsigned long long)(d);
3721 return SWIG_AddCast(res)(res);
3722 }
3723 res = SWIG_TypeError-5;
3724 }
3725#endif
3726 return res;
3727}
3728#endif
3729
3730
3731SWIGINTERNstatic __attribute__ ((__unused__)) int
3732SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
3733{
3734 unsigned long v;
3735 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3736 if (SWIG_IsOK(res)(res >= 0)) {
3737 if ((v > UINT_MAX(2147483647 *2U +1U))) {
3738 return SWIG_OverflowError-7;
3739 } else {
3740 if (val) *val = static_cast< unsigned int >(v);
3741 }
3742 }
3743 return res;
3744}
3745
3746SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBAddress___str__(lldb::SBAddress *self){
3747 lldb::SBStream description;
3748 self->GetDescription (description);
3749 const char *desc = description.GetData();
3750 size_t desc_len = description.GetSize();
3751 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
3752 --desc_len;
3753 if (desc_len > 0)
3754 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
3755 else
3756 return lldb_private::PythonString("").release();
3757 }
3758
3759SWIGINTERNstatic __attribute__ ((__unused__)) int
3760SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3761{
3762#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3763#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3764 if (PyBytes_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3765#else
3766 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3767#endif
3768#else
3769 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3770#endif
3771 {
3772 char *cstr; Py_ssize_t len;
3773#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3774#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3775 if (!alloc && cptr) {
3776 /* We can't allow converting without allocation, since the internal
3777 representation of string in Python 3 is UCS-2/UCS-4 but we require
3778 a UTF-8 representation.
3779 TODO(bhy) More detailed explanation */
3780 return SWIG_RuntimeError-3;
3781 }
3782 obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj);
3783 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3784#endif
3785 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3786#else
3787 PyString_AsStringAndSize(obj, &cstr, &len);
3788#endif
3789 if (cptr) {
3790 if (alloc) {
3791 /*
3792 In python the user should not be able to modify the inner
3793 string representation. To warranty that, if you define
3794 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3795 buffer is always returned.
3796
3797 The default behavior is just to return the pointer value,
3798 so, be careful.
3799 */
3800#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3801 if (*alloc != SWIG_OLDOBJ((0)))
3802#else
3803 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3804#endif
3805 {
3806 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3807 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3808 } else {
3809 *cptr = cstr;
3810 *alloc = SWIG_OLDOBJ((0));
3811 }
3812 } else {
3813#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3814#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3815 *cptr = PyBytes_AsStringPyString_AsString(obj);
3816#else
3817 assert(0)((0) ? static_cast<void> (0) : __assert_fail ("0", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn298304/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 3817, __PRETTY_FUNCTION__))
; /* Should never reach here with Unicode strings in Python 3 */
3818#endif
3819#else
3820 *cptr = SWIG_Python_str_AsChar(obj);
3821#endif
3822 }
3823 }
3824 if (psize) *psize = len + 1;
3825#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3826 Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(obj)))); } while (0); } while (0)
;
3827#endif
3828 return SWIG_OK(0);
3829 } else {
3830#if defined(SWIG_PYTHON_2_UNICODE)
3831#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3832#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3833#endif
3834#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
<0x03000000
3835 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
) {
3836 char *cstr; Py_ssize_t len;
3837 if (!alloc && cptr) {
3838 return SWIG_RuntimeError-3;
3839 }
3840 obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj);
3841 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3842 if (cptr) {
3843 if (alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3844 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3845 }
3846 if (psize) *psize = len + 1;
3847
3848 Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(obj)))); } while (0); } while (0)
;
3849 return SWIG_OK(0);
3850 } else {
3851 Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(obj)))); } while (0); } while (0)
;
3852 }
3853 }
3854#endif
3855#endif
3856
3857 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3858 if (pchar_descriptor) {
3859 void* vptr = 0;
3860 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3861 if (cptr) *cptr = (char *) vptr;
3862 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3863 if (alloc) *alloc = SWIG_OLDOBJ((0));
3864 return SWIG_OK(0);
3865 }
3866 }
3867 }
3868 return SWIG_TypeError-5;
3869}
3870
3871
3872
3873
3874
3875SWIGINTERNstatic __attribute__ ((__unused__)) int
3876SWIG_AsVal_long (PyObject *obj, long* val)
3877{
3878#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3879 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3880 if (val) *val = PyInt_AsLong(obj);
3881 return SWIG_OK(0);
3882 } else
3883#endif
3884 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3885 long v = PyLong_AsLong(obj);
3886 if (!PyErr_Occurred()) {
3887 if (val) *val = v;
3888 return SWIG_OK(0);
3889 } else {
3890 PyErr_Clear();
3891 return SWIG_OverflowError-7;
3892 }
3893 }
3894#ifdef SWIG_PYTHON_CAST_MODE
3895 {
3896 int dispatch = 0;
3897 long v = PyInt_AsLong(obj);
3898 if (!PyErr_Occurred()) {
3899 if (val) *val = v;
3900 return SWIG_AddCast(SWIG_OK)((0));
3901 } else {
3902 PyErr_Clear();
3903 }
3904 if (!dispatch) {
3905 double d;
3906 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3907 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3908 if (val) *val = (long)(d);
3909 return res;
3910 }
3911 }
3912 }
3913#endif
3914 return SWIG_TypeError-5;
3915}
3916
3917
3918SWIGINTERNstatic __attribute__ ((__unused__)) int
3919SWIG_AsVal_bool (PyObject *obj, bool *val)
3920{
3921 int r;
3922 if (!PyBool_Check(obj)((((PyObject*)(obj))->ob_type) == &PyBool_Type))
3923 return SWIG_ERROR(-1);
3924 r = PyObject_IsTrue(obj);
3925 if (r == -1)
3926 return SWIG_ERROR(-1);
3927 if (val) *val = r ? true : false;
3928 return SWIG_OK(0);
3929}
3930
3931
3932SWIGINTERNstatic __attribute__ ((__unused__)) int
3933SWIG_AsVal_int (PyObject * obj, int *val)
3934{
3935 long v;
3936 int res = SWIG_AsVal_long (obj, &v);
3937 if (SWIG_IsOK(res)(res >= 0)) {
3938 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3939 return SWIG_OverflowError-7;
3940 } else {
3941 if (val) *val = static_cast< int >(v);
3942 }
3943 }
3944 return res;
3945}
3946
3947SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBlock___str__(lldb::SBBlock *self){
3948 lldb::SBStream description;
3949 self->GetDescription (description);
3950 const char *desc = description.GetData();
3951 size_t desc_len = description.GetSize();
3952 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
3953 --desc_len;
3954 if (desc_len > 0)
3955 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
3956 else
3957 return lldb_private::PythonString("").release();
3958 }
3959
3960 #define SWIG_From_longPyInt_FromLong PyInt_FromLong
3961
3962
3963SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3964SWIG_From_unsigned_SS_long (unsigned long value)
3965{
3966 return (value > LONG_MAX9223372036854775807L) ?
3967 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3968}
3969
3970
3971SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3972SWIG_From_size_t (size_t value)
3973{
3974#ifdef SWIG_LONG_LONG_AVAILABLE
3975 if (sizeof(size_t) <= sizeof(unsigned long)) {
3976#endif
3977 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3978#ifdef SWIG_LONG_LONG_AVAILABLE
3979 } else {
3980 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
3981 return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value));
3982 }
3983#endif
3984}
3985
3986SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpoint___str__(lldb::SBBreakpoint *self){
3987 lldb::SBStream description;
3988 self->GetDescription (description);
3989 const char *desc = description.GetData();
3990 size_t desc_len = description.GetSize();
3991 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
3992 --desc_len;
3993 if (desc_len > 0)
3994 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
3995 else
3996 return lldb_private::PythonString("").release();
3997 }
3998
3999SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
4000SWIG_AsVal_size_t (PyObject * obj, size_t *val)
4001{
4002 int res = SWIG_TypeError-5;
4003#ifdef SWIG_LONG_LONG_AVAILABLE
4004 if (sizeof(size_t) <= sizeof(unsigned long)) {
4005#endif
4006 unsigned long v;
4007 res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
4008 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
4009#ifdef SWIG_LONG_LONG_AVAILABLE
4010 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
4011 unsigned long long v;
4012 res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
4013 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
4014 }
4015#endif
4016 return res;
4017}
4018
4019SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpointLocation___str__(lldb::SBBreakpointLocation *self){
4020 lldb::SBStream description;
4021 self->GetDescription (description, lldb::eDescriptionLevelFull);
4022 const char *desc = description.GetData();
4023 size_t desc_len = description.GetSize();
4024 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4025 --desc_len;
4026 if (desc_len > 0)
4027 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4028 else
4029 return lldb_private::PythonString("").release();
4030 }
4031
4032SWIGINTERNstatic __attribute__ ((__unused__)) int
4033SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
4034{
4035 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ((0));
4036 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
4037 if (SWIG_IsOK(res)(res >= 0)) {
4038 /* special case of single char conversion when we don't need space for NUL */
4039 if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
4040 if (csize <= size) {
4041 if (val) {
4042 if (csize) memcpy(val, cptr, csize*sizeof(char));
4043 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
4044 }
4045 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) {
4046 delete[] cptr;
4047 res = SWIG_DelNewMask(res)((res >= 0) ? (res & ~((1 << 8) << 1)) : res
)
;
4048 }
4049 return res;
4050 }
4051 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] cptr;
4052 }
4053 return SWIG_TypeError-5;
4054}
4055
4056
4057SWIGINTERNstatic __attribute__ ((__unused__)) int
4058SWIG_AsVal_char (PyObject * obj, char *val)
4059{
4060 int res = SWIG_AsCharArray(obj, val, 1);
4061 if (!SWIG_IsOK(res)(res >= 0)) {
4062 long v;
4063 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v))(SWIG_AsVal_long (obj, &v));
4064 if (SWIG_IsOK(res)(res >= 0)) {
4065 if ((CHAR_MIN(-127 -1) <= v) && (v <= CHAR_MAX127)) {
4066 if (val) *val = static_cast< char >(v);
4067 } else {
4068 res = SWIG_OverflowError-7;
4069 }
4070 }
4071 }
4072 return res;
4073}
4074
4075SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateOutputFile(lldb::SBCommandReturnObject *self,FILE *fh){
4076 self->SetImmediateOutputFile(fh, true);
4077 }
4078SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateErrorFile(lldb::SBCommandReturnObject *self,FILE *fh){
4079 self->SetImmediateErrorFile(fh, true);
4080 }
4081SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_Print(lldb::SBCommandReturnObject *self,char const *str){
4082 self->Printf("%s", str);
4083 }
4084SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCommandReturnObject___str__(lldb::SBCommandReturnObject *self){
4085 lldb::SBStream description;
4086 self->GetDescription (description);
4087 const char *desc = description.GetData();
4088 size_t desc_len = description.GetSize();
4089 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4090 --desc_len;
4091 if (desc_len > 0)
4092 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4093 else
4094 return lldb_private::PythonString("").release();
4095 }
4096SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_write(lldb::SBCommandReturnObject *self,char const *str){
4097 if (str)
4098 self->Printf("%s",str);
4099 }
4100SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_flush(lldb::SBCommandReturnObject *self){}
4101SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCompileUnit___str__(lldb::SBCompileUnit *self){
4102 lldb::SBStream description;
4103 self->GetDescription (description);
4104 const char *desc = description.GetData();
4105 size_t desc_len = description.GetSize();
4106 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4107 --desc_len;
4108 if (desc_len > 0)
4109 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4110 else
4111 return lldb_private::PythonString("").release();
4112 }
4113
4114SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4115SWIG_From_unsigned_SS_char (unsigned char value)
4116{
4117 return SWIG_From_unsigned_SS_long (value);
4118}
4119
4120
4121SWIGINTERNstatic __attribute__ ((__unused__)) int
4122SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
4123{
4124 unsigned long v;
4125 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
4126 if (SWIG_IsOK(res)(res >= 0)) {
4127 if ((v > UCHAR_MAX(127*2 +1))) {
4128 return SWIG_OverflowError-7;
4129 } else {
4130 if (val) *val = static_cast< unsigned char >(v);
4131 }
4132 }
4133 return res;
4134}
4135
4136
4137 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
4138
4139
4140SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4141SWIG_From_float (float value)
4142{
4143 return SWIG_From_doublePyFloat_FromDouble (value);
4144}
4145
4146
4147SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4148SWIG_From_unsigned_SS_short (unsigned short value)
4149{
4150 return SWIG_From_unsigned_SS_long (value);
4151}
4152
4153
4154SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4155SWIG_From_signed_SS_char (signed char value)
4156{
4157 return SWIG_From_longPyInt_FromLong (value);
4158}
4159
4160
4161SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4162SWIG_From_short (short value)
4163{
4164 return SWIG_From_longPyInt_FromLong (value);
4165}
4166
4167
4168#ifdef SWIG_LONG_LONG_AVAILABLE
4169SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
4170SWIG_From_long_SS_long (long long value)
4171{
4172 return ((value < LONG_MIN(-9223372036854775807L -1L)) || (value > LONG_MAX9223372036854775807L)) ?
4173 PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value));
4174}
4175#endif
4176
4177SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBData___str__(lldb::SBData *self){
4178 lldb::SBStream description;
4179 self->GetDescription (description);
4180 const char *desc = description.GetData();
4181 size_t desc_len = description.GetSize();
4182 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4183 --desc_len;
4184 if (desc_len > 0)
4185 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4186 else
4187 return lldb_private::PythonString("").release();
4188 }
4189SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDebugger___str__(lldb::SBDebugger *self){
4190 lldb::SBStream description;
4191 self->GetDescription (description);
4192 const char *desc = description.GetData();
4193 size_t desc_len = description.GetSize();
4194 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4195 --desc_len;
4196 if (desc_len > 0)
4197 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4198 else
4199 return lldb_private::PythonString("").release();
4200 }
4201SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDeclaration___str__(lldb::SBDeclaration *self){
4202 lldb::SBStream description;
4203 self->GetDescription (description);
4204 const char *desc = description.GetData();
4205 size_t desc_len = description.GetSize();
4206 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4207 --desc_len;
4208 if (desc_len > 0)
4209 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4210 else
4211 return lldb_private::PythonString("").release();
4212 }
4213SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBError___str__(lldb::SBError *self){
4214 lldb::SBStream description;
4215 self->GetDescription (description);
4216 const char *desc = description.GetData();
4217 size_t desc_len = description.GetSize();
4218 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4219 --desc_len;
4220 if (desc_len > 0)
4221 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4222 else
4223 return lldb_private::PythonString("").release();
4224 }
4225SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFileSpec___str__(lldb::SBFileSpec *self){
4226 lldb::SBStream description;
4227 self->GetDescription (description);
4228 const char *desc = description.GetData();
4229 size_t desc_len = description.GetSize();
4230 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4231 --desc_len;
4232 if (desc_len > 0)
4233 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4234 else
4235 return lldb_private::PythonString("").release();
4236 }
4237SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFrame___str__(lldb::SBFrame *self){
4238 lldb::SBStream description;
4239 self->GetDescription (description);
4240 const char *desc = description.GetData();
4241 size_t desc_len = description.GetSize();
4242 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4243 --desc_len;
4244 if (desc_len > 0)
4245 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4246 else
4247 return lldb_private::PythonString("").release();
4248 }
4249SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFunction___str__(lldb::SBFunction *self){
4250 lldb::SBStream description;
4251 self->GetDescription (description);
4252 const char *desc = description.GetData();
4253 size_t desc_len = description.GetSize();
4254 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4255 --desc_len;
4256 if (desc_len > 0)
4257 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4258 else
4259 return lldb_private::PythonString("").release();
4260 }
4261SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstruction___str__(lldb::SBInstruction *self){
4262 lldb::SBStream description;
4263 self->GetDescription (description);
4264 const char *desc = description.GetData();
4265 size_t desc_len = description.GetSize();
4266 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4267 --desc_len;
4268 if (desc_len > 0)
4269 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4270 else
4271 return lldb_private::PythonString("").release();
4272 }
4273SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstructionList___str__(lldb::SBInstructionList *self){
4274 lldb::SBStream description;
4275 self->GetDescription (description);
4276 const char *desc = description.GetData();
4277 size_t desc_len = description.GetSize();
4278 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4279 --desc_len;
4280 if (desc_len > 0)
4281 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4282 else
4283 return lldb_private::PythonString("").release();
4284 }
4285SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBLineEntry___str__(lldb::SBLineEntry *self){
4286 lldb::SBStream description;
4287 self->GetDescription (description);
4288 const char *desc = description.GetData();
4289 size_t desc_len = description.GetSize();
4290 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4291 --desc_len;
4292 if (desc_len > 0)
4293 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4294 else
4295 return lldb_private::PythonString("").release();
4296 }
4297SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBMemoryRegionInfo___str__(lldb::SBMemoryRegionInfo *self){
4298 lldb::SBStream description;
4299 self->GetDescription (description);
4300 const char *desc = description.GetData();
4301 size_t desc_len = description.GetSize();
4302 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4303 --desc_len;
4304 if (desc_len > 0)
4305 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4306 else
4307 return lldb_private::PythonString("").release();
4308 }
4309SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModule___str__(lldb::SBModule *self){
4310 lldb::SBStream description;
4311 self->GetDescription (description);
4312 const char *desc = description.GetData();
4313 size_t desc_len = description.GetSize();
4314 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4315 --desc_len;
4316 if (desc_len > 0)
4317 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4318 else
4319 return lldb_private::PythonString("").release();
4320 }
4321SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpec___str__(lldb::SBModuleSpec *self){
4322 lldb::SBStream description;
4323 self->GetDescription (description);
4324 const char *desc = description.GetData();
4325 size_t desc_len = description.GetSize();
4326 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4327 --desc_len;
4328 if (desc_len > 0)
4329 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4330 else
4331 return lldb_private::PythonString("").release();
4332 }
4333SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpecList___str__(lldb::SBModuleSpecList *self){
4334 lldb::SBStream description;
4335 self->GetDescription (description);
4336 const char *desc = description.GetData();
4337 size_t desc_len = description.GetSize();
4338 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4339 --desc_len;
4340 if (desc_len > 0)
4341 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4342 else
4343 return lldb_private::PythonString("").release();
4344 }
4345SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBProcess___str__(lldb::SBProcess *self){
4346 lldb::SBStream description;
4347 self->GetDescription (description);
4348 const char *desc = description.GetData();
4349 size_t desc_len = description.GetSize();
4350 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4351 --desc_len;
4352 if (desc_len > 0)
4353 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4354 else
4355 return lldb_private::PythonString("").release();
4356 }
4357SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSection___str__(lldb::SBSection *self){
4358 lldb::SBStream description;
4359 self->GetDescription (description);
4360 const char *desc = description.GetData();
4361 size_t desc_len = description.GetSize();
4362 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4363 --desc_len;
4364 if (desc_len > 0)
4365 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4366 else
4367 return lldb_private::PythonString("").release();
4368 }
4369SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_Print(lldb::SBStream *self,char const *str){
4370 self->Printf("%s", str);
4371 }
4372SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_write(lldb::SBStream *self,char const *str){
4373 if (str)
4374 self->Printf("%s",str);
4375 }
4376SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_flush(lldb::SBStream *self){}
4377SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbol___str__(lldb::SBSymbol *self){
4378 lldb::SBStream description;
4379 self->GetDescription (description);
4380 const char *desc = description.GetData();
4381 size_t desc_len = description.GetSize();
4382 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4383 --desc_len;
4384 if (desc_len > 0)
4385 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4386 else
4387 return lldb_private::PythonString("").release();
4388 }
4389SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContext___str__(lldb::SBSymbolContext *self){
4390 lldb::SBStream description;
4391 self->GetDescription (description);
4392 const char *desc = description.GetData();
4393 size_t desc_len = description.GetSize();
4394 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4395 --desc_len;
4396 if (desc_len > 0)
4397 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4398 else
4399 return lldb_private::PythonString("").release();
4400 }
4401SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContextList___str__(lldb::SBSymbolContextList *self){
4402 lldb::SBStream description;
4403 self->GetDescription (description);
4404 const char *desc = description.GetData();
4405 size_t desc_len = description.GetSize();
4406 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4407 --desc_len;
4408 if (desc_len > 0)
4409 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4410 else
4411 return lldb_private::PythonString("").release();
4412 }
4413
4414#ifdef SWIG_LONG_LONG_AVAILABLE
4415SWIGINTERNstatic __attribute__ ((__unused__)) int
4416SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
4417{
4418 int res = SWIG_TypeError-5;
4419 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
4420 long long v = PyLong_AsLongLong(obj);
4421 if (!PyErr_Occurred()) {
4422 if (val) *val = v;
4423 return SWIG_OK(0);
4424 } else {
4425 PyErr_Clear();
4426 res = SWIG_OverflowError-7;
4427 }
4428 } else {
4429 long v;
4430 res = SWIG_AsVal_long (obj,&v);
4431 if (SWIG_IsOK(res)(res >= 0)) {
4432 if (val) *val = v;
4433 return res;
4434 }
4435 }
4436#ifdef SWIG_PYTHON_CAST_MODE
4437 {
4438 const double mant_max = 1LL << DBL_MANT_DIG53;
4439 const double mant_min = -mant_max;
4440 double d;
4441 res = SWIG_AsVal_double (obj,&d);
4442 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
4443 if (val) *val = (long long)(d);
4444 return SWIG_AddCast(res)(res);
4445 }
4446 res = SWIG_TypeError-5;
4447 }
4448#endif
4449 return res;
4450}
4451#endif
4452
4453SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTarget___str__(lldb::SBTarget *self){
4454 lldb::SBStream description;
4455 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4456 const char *desc = description.GetData();
4457 size_t desc_len = description.GetSize();
4458 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4459 --desc_len;
4460 if (desc_len > 0)
4461 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4462 else
4463 return lldb_private::PythonString("").release();
4464 }
4465SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBThread___str__(lldb::SBThread *self){
4466 lldb::SBStream description;
4467 self->GetDescription (description);
4468 const char *desc = description.GetData();
4469 size_t desc_len = description.GetSize();
4470 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4471 --desc_len;
4472 if (desc_len > 0)
4473 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4474 else
4475 return lldb_private::PythonString("").release();
4476 }
4477SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMember___str__(lldb::SBTypeMember *self){
4478 lldb::SBStream description;
4479 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4480 const char *desc = description.GetData();
4481 size_t desc_len = description.GetSize();
4482 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4483 --desc_len;
4484 if (desc_len > 0)
4485 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4486 else
4487 return lldb_private::PythonString("").release();
4488 }
4489SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMemberFunction___str__(lldb::SBTypeMemberFunction *self){
4490 lldb::SBStream description;
4491 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4492 const char *desc = description.GetData();
4493 size_t desc_len = description.GetSize();
4494 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4495 --desc_len;
4496 if (desc_len > 0)
4497 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4498 else
4499 return lldb_private::PythonString("").release();
4500 }
4501SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBType___str__(lldb::SBType *self){
4502 lldb::SBStream description;
4503 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4504 const char *desc = description.GetData();
4505 size_t desc_len = description.GetSize();
4506 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4507 --desc_len;
4508 if (desc_len > 0)
4509 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4510 else
4511 return lldb_private::PythonString("").release();
4512 }
4513SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeCategory___str__(lldb::SBTypeCategory *self){
4514 lldb::SBStream description;
4515 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4516 const char *desc = description.GetData();
4517 size_t desc_len = description.GetSize();
4518 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4519 --desc_len;
4520 if (desc_len > 0)
4521 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4522 else
4523 return lldb_private::PythonString("").release();
4524 }
4525SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeEnumMember___str__(lldb::SBTypeEnumMember *self){
4526 lldb::SBStream description;
4527 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4528 const char *desc = description.GetData();
4529 size_t desc_len = description.GetSize();
4530 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4531 --desc_len;
4532 if (desc_len > 0)
4533 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4534 else
4535 return lldb_private::PythonString("").release();
4536 }
4537SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFilter___str__(lldb::SBTypeFilter *self){
4538 lldb::SBStream description;
4539 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4540 const char *desc = description.GetData();
4541 size_t desc_len = description.GetSize();
4542 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4543 --desc_len;
4544 if (desc_len > 0)
4545 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4546 else
4547 return lldb_private::PythonString("").release();
4548 }
4549SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFormat___str__(lldb::SBTypeFormat *self){
4550 lldb::SBStream description;
4551 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4552 const char *desc = description.GetData();
4553 size_t desc_len = description.GetSize();
4554 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4555 --desc_len;
4556 if (desc_len > 0)
4557 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4558 else
4559 return lldb_private::PythonString("").release();
4560 }
4561SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeNameSpecifier___str__(lldb::SBTypeNameSpecifier *self){
4562 lldb::SBStream description;
4563 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4564 const char *desc = description.GetData();
4565 size_t desc_len = description.GetSize();
4566 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4567 --desc_len;
4568 if (desc_len > 0)
4569 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4570 else
4571 return lldb_private::PythonString("").release();
4572 }
4573SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSummary___str__(lldb::SBTypeSummary *self){
4574 lldb::SBStream description;
4575 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4576 const char *desc = description.GetData();
4577 size_t desc_len = description.GetSize();
4578 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4579 --desc_len;
4580 if (desc_len > 0)
4581 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4582 else
4583 return lldb_private::PythonString("").release();
4584 }
4585SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSynthetic___str__(lldb::SBTypeSynthetic *self){
4586 lldb::SBStream description;
4587 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4588 const char *desc = description.GetData();
4589 size_t desc_len = description.GetSize();
4590 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4591 --desc_len;
4592 if (desc_len > 0)
4593 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4594 else
4595 return lldb_private::PythonString("").release();
4596 }
4597SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValue___str__(lldb::SBValue *self){
4598 lldb::SBStream description;
4599 self->GetDescription (description);
4600 const char *desc = description.GetData();
4601 size_t desc_len = description.GetSize();
4602 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4603 --desc_len;
4604 if (desc_len > 0)
4605 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4606 else
4607 return lldb_private::PythonString("").release();
4608 }
4609SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValueList___str__(lldb::SBValueList *self){
4610 lldb::SBStream description;
4611 const size_t n = self->GetSize();
4612 if (n)
4613 {
4614 for (size_t i=0; i<n; ++i)
4615 self->GetValueAtIndex(i).GetDescription(description);
4616 }
4617 else
4618 {
4619 description.Printf("<empty> lldb.SBValueList()");
4620 }
4621 const char *desc = description.GetData();
4622 size_t desc_len = description.GetSize();
4623 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4624 --desc_len;
4625 if (desc_len > 0)
4626 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4627 else
4628 return lldb_private::PythonString("").release();
4629 }
4630SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBWatchpoint___str__(lldb::SBWatchpoint *self){
4631 lldb::SBStream description;
4632 self->GetDescription (description, lldb::eDescriptionLevelVerbose);
4633 const char *desc = description.GetData();
4634 size_t desc_len = description.GetSize();
4635 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4636 --desc_len;
4637 if (desc_len > 0)
4638 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4639 else
4640 return lldb_private::PythonString("").release();
4641 }
4642
4643
4644template <typename T>
4645PyObject *
4646SBTypeToSWIGWrapper (T* item);
4647
4648class PyErr_Cleaner
4649{
4650public:
4651 PyErr_Cleaner(bool print=false) :
4652 m_print(print)
4653 {
4654 }
4655
4656 ~PyErr_Cleaner()
4657 {
4658 if (PyErr_Occurred())
4659 {
4660 if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
4661 PyErr_Print();
4662 PyErr_Clear();
4663 }
4664 }
4665
4666private:
4667 bool m_print;
4668};
4669
4670
4671#ifdef __cplusplus201103L
4672extern "C" {
4673#endif
4674SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4675 PyObject *resultobj = 0;
4676 lldb::SBAddress *result = 0 ;
4677
4678 if (!PyArg_ParseTuple(args,(char *)":new_SBAddress")) SWIG_failgoto fail;
4679 {
4680 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4681 result = (lldb::SBAddress *)new lldb::SBAddress();
4682 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4683 }
4684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
4685 return resultobj;
4686fail:
4687 return NULL__null;
4688}
4689
4690
4691SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4692 PyObject *resultobj = 0;
4693 lldb::SBAddress *arg1 = 0 ;
4694 void *argp1 = 0 ;
4695 int res1 = 0 ;
4696 PyObject * obj0 = 0 ;
4697 lldb::SBAddress *result = 0 ;
4698
4699 if (!PyArg_ParseTuple(args,(char *)"O:new_SBAddress",&obj0)) SWIG_failgoto fail;
4700 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBAddress, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4701 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_SBAddress" "', argument "
"1"" of type '" "lldb::SBAddress const &""'"); goto fail
; } while(0)
;
4703 }
4704 if (!argp1) {
4705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_SBAddress" "', argument " "1"" of type '"
"lldb::SBAddress const &""'"); goto fail; } while(0)
;
4706 }
4707 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4708 {
4709 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4710 result = (lldb::SBAddress *)new lldb::SBAddress((lldb::SBAddress const &)*arg1);
4711 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4712 }
4713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
4714 return resultobj;
4715fail:
4716 return NULL__null;
4717}
4718
4719
4720SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4721 PyObject *resultobj = 0;
4722 lldb::SBSection arg1 ;
4723 lldb::addr_t arg2 ;
4724 void *argp1 ;
4725 int res1 = 0 ;
4726 unsigned long long val2 ;
4727 int ecode2 = 0 ;
4728 PyObject * obj0 = 0 ;
4729 PyObject * obj1 = 0 ;
4730 lldb::SBAddress *result = 0 ;
4731
4732 if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAddress",&obj0,&obj1)) SWIG_failgoto fail;
4733 {
4734 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBSection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[49]
, 0 | 0, 0)
;
4735 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_SBAddress" "', argument "
"1"" of type '" "lldb::SBSection""'"); goto fail; } while(0)
;
4737 }
4738 if (!argp1) {
4739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_SBAddress" "', argument " "1"" of type '"
"lldb::SBSection""'"); goto fail; } while(0)
;
4740 } else {
4741 lldb::SBSection * temp = reinterpret_cast< lldb::SBSection * >(argp1);
4742 arg1 = *temp;
4743 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete temp;
4744 }
4745 }
4746 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
4747 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_SBAddress" "', argument "
"2"" of type '" "lldb::addr_t""'"); goto fail; } while(0)
;
4749 }
4750 arg2 = static_cast< lldb::addr_t >(val2);
4751 {
4752 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4753 result = (lldb::SBAddress *)new lldb::SBAddress(arg1,arg2);
4754 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4755 }
4756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
4757 return resultobj;
4758fail:
4759 return NULL__null;
4760}
4761
4762
4763SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4764 PyObject *resultobj = 0;
4765 lldb::addr_t arg1 ;
4766 lldb::SBTarget *arg2 = 0 ;
4767 unsigned long long val1 ;
4768 int ecode1 = 0 ;
4769 void *argp2 = 0 ;
4770 int res2 = 0 ;
4771 PyObject * obj0 = 0 ;
4772 PyObject * obj1 = 0 ;
4773 lldb::SBAddress *result = 0 ;
4774
4775 if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAddress",&obj0,&obj1)) SWIG_failgoto fail;
4776 ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1);
4777 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4778 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_SBAddress" "', argument "
"1"" of type '" "lldb::addr_t""'"); goto fail; } while(0)
;
4779 }
4780 arg1 = static_cast< lldb::addr_t >(val1);
4781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBTarget, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[57]
, 0, 0)
;
4782 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_SBAddress" "', argument "
"2"" of type '" "lldb::SBTarget &""'"); goto fail; } while
(0)
;
4784 }
4785 if (!argp2) {
4786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_SBAddress" "', argument " "2"" of type '"
"lldb::SBTarget &""'"); goto fail; } while(0)
;
4787 }
4788 arg2 = reinterpret_cast< lldb::SBTarget * >(argp2);
4789 {
4790 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4791 result = (lldb::SBAddress *)new lldb::SBAddress(arg1,*arg2);
4792 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4793 }
4794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
4795 return resultobj;
4796fail:
4797 return NULL__null;
4798}
4799
4800
4801SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress(PyObject *self, PyObject *args) {
4802 Py_ssize_t argc;
4803 PyObject *argv[3] = {
4804 0
4805 };
4806 Py_ssize_t ii;
4807
4808 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4809 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
4810 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4811 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4812 }
4813 if (argc == 0) {
4814 return _wrap_new_SBAddress__SWIG_0(self, args);
4815 }
4816 if (argc == 1) {
4817 int _v;
4818 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBAddress, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[8], 0, 0);
4819 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4820 if (_v) {
4821 return _wrap_new_SBAddress__SWIG_1(self, args);
4822 }
4823 }
4824 if (argc == 2) {
4825 int _v;
4826 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBSection, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[49], 0, 0
)
;
4827 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4828 if (_v) {
4829 {
4830 int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL__null);
4831 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4832 }
4833 if (_v) {
4834 return _wrap_new_SBAddress__SWIG_2(self, args);
4835 }
4836 }
4837 }
4838 if (argc == 2) {
4839 int _v;
4840 {
4841 int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL__null);
4842 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4843 }
4844 if (_v) {
4845 void *vptr = 0;
4846 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_lldb__SBTarget, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[57
], 0, 0)
;
4847 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4848 if (_v) {
4849 return _wrap_new_SBAddress__SWIG_3(self, args);
4850 }
4851 }
4852 }
4853
4854fail:
4855 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SBAddress'.\n"
4856 " Possible C/C++ prototypes are:\n"
4857 " lldb::SBAddress::SBAddress()\n"
4858 " lldb::SBAddress::SBAddress(lldb::SBAddress const &)\n"
4859 " lldb::SBAddress::SBAddress(lldb::SBSection,lldb::addr_t)\n"
4860 " lldb::SBAddress::SBAddress(lldb::addr_t,lldb::SBTarget &)\n");
4861 return 0;
4862}
4863
4864
4865SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SBAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4866 PyObject *resultobj = 0;
4867 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 PyObject * obj0 = 0 ;
4871
4872 if (!PyArg_ParseTuple(args,(char *)"O:delete_SBAddress",&obj0)) SWIG_failgoto fail;
4873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0x1 | 0, 0)
;
4874 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_SBAddress" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
4876 }
4877 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4878 {
4879 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4880 delete arg1;
4881 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4882 }
4883 resultobj = SWIG_Py_Void();
4884 return resultobj;
4885fail:
4886 return NULL__null;
4887}
4888
4889
4890SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4891 PyObject *resultobj = 0;
4892 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4893 void *argp1 = 0 ;
4894 int res1 = 0 ;
4895 PyObject * obj0 = 0 ;
4896 bool result;
4897
4898 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_IsValid",&obj0)) SWIG_failgoto fail;
4899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4900 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_IsValid" "', argument " "1"" of type '" "lldb::SBAddress const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_IsValid" "', argument "
"1"" of type '" "lldb::SBAddress const *""'"); goto fail; } while
(0)
;
4902 }
4903 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4904 {
4905 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4906 result = (bool)((lldb::SBAddress const *)arg1)->IsValid();
4907 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4908 }
4909 resultobj = SWIG_From_bool(static_cast< bool >(result));
4910 return resultobj;
4911fail:
4912 return NULL__null;
4913}
4914
4915
4916SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4917 PyObject *resultobj = 0;
4918 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 PyObject * obj0 = 0 ;
4922
4923 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_Clear",&obj0)) SWIG_failgoto fail;
4924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4925 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_Clear" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_Clear" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
4927 }
4928 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4929 {
4930 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4931 (arg1)->Clear();
4932 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4933 }
4934 resultobj = SWIG_Py_Void();
4935 return resultobj;
4936fail:
4937 return NULL__null;
4938}
4939
4940
4941SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetFileAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4942 PyObject *resultobj = 0;
4943 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4944 void *argp1 = 0 ;
4945 int res1 = 0 ;
4946 PyObject * obj0 = 0 ;
4947 lldb::addr_t result;
4948
4949 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetFileAddress",&obj0)) SWIG_failgoto fail;
4950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4951 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetFileAddress" "', argument " "1"" of type '" "lldb::SBAddress const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetFileAddress" "', argument "
"1"" of type '" "lldb::SBAddress const *""'"); goto fail; } while
(0)
;
4953 }
4954 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4955 {
4956 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4957 result = (lldb::addr_t)((lldb::SBAddress const *)arg1)->GetFileAddress();
4958 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4959 }
4960 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
4961 return resultobj;
4962fail:
4963 return NULL__null;
4964}
4965
4966
4967SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetLoadAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4968 PyObject *resultobj = 0;
4969 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4970 lldb::SBTarget *arg2 = 0 ;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 void *argp2 = 0 ;
4974 int res2 = 0 ;
4975 PyObject * obj0 = 0 ;
4976 PyObject * obj1 = 0 ;
4977 lldb::addr_t result;
4978
4979 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetLoadAddress",&obj0,&obj1)) SWIG_failgoto fail;
4980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4981 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetLoadAddress" "', argument " "1"" of type '" "lldb::SBAddress const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetLoadAddress" "', argument "
"1"" of type '" "lldb::SBAddress const *""'"); goto fail; } while
(0)
;
4983 }
4984 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBTarget, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[57]
, 0 | 0, 0)
;
4986 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAddress_GetLoadAddress" "', argument " "2"" of type '" "lldb::SBTarget const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SBAddress_GetLoadAddress" "', argument "
"2"" of type '" "lldb::SBTarget const &""'"); goto fail;
} while(0)
;
4988 }
4989 if (!argp2) {
4990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_GetLoadAddress" "', argument " "2"" of type '" "lldb::SBTarget const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SBAddress_GetLoadAddress" "', argument " "2"" of type '"
"lldb::SBTarget const &""'"); goto fail; } while(0)
;
4991 }
4992 arg2 = reinterpret_cast< lldb::SBTarget * >(argp2);
4993 {
4994 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4995 result = (lldb::addr_t)((lldb::SBAddress const *)arg1)->GetLoadAddress((lldb::SBTarget const &)*arg2);
4996 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4997 }
4998 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
4999 return resultobj;
5000fail:
5001 return NULL__null;
5002}
5003
5004
5005SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_SetLoadAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5006 PyObject *resultobj = 0;
5007 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5008 lldb::addr_t arg2 ;
5009 lldb::SBTarget *arg3 = 0 ;
5010 void *argp1 = 0 ;
5011 int res1 = 0 ;
5012 unsigned long long val2 ;
5013 int ecode2 = 0 ;
5014 void *argp3 = 0 ;
5015 int res3 = 0 ;
5016 PyObject * obj0 = 0 ;
5017 PyObject * obj1 = 0 ;
5018 PyObject * obj2 = 0 ;
5019
5020 if (!PyArg_ParseTuple(args,(char *)"OOO:SBAddress_SetLoadAddress",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5022 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_SetLoadAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_SetLoadAddress" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5024 }
5025 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5026 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
5027 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAddress_SetLoadAddress" "', argument " "2"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAddress_SetLoadAddress"
"', argument " "2"" of type '" "lldb::addr_t""'"); goto fail
; } while(0)
;
5029 }
5030 arg2 = static_cast< lldb::addr_t >(val2);
5031 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_lldb__SBTarget, 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[57]
, 0, 0)
;
5032 if (!SWIG_IsOK(res3)(res3 >= 0)) {
5033 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SBAddress_SetLoadAddress" "', argument " "3"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "SBAddress_SetLoadAddress" "', argument "
"3"" of type '" "lldb::SBTarget &""'"); goto fail; } while
(0)
;
5034 }
5035 if (!argp3) {
5036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_SetLoadAddress" "', argument " "3"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SBAddress_SetLoadAddress" "', argument " "3"" of type '"
"lldb::SBTarget &""'"); goto fail; } while(0)
;
5037 }
5038 arg3 = reinterpret_cast< lldb::SBTarget * >(argp3);
5039 {
5040 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5041 (arg1)->SetLoadAddress(arg2,*arg3);
5042 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5043 }
5044 resultobj = SWIG_Py_Void();
5045 return resultobj;
5046fail:
5047 return NULL__null;
5048}
5049
5050
5051SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_OffsetAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5052 PyObject *resultobj = 0;
5053 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5054 lldb::addr_t arg2 ;
5055 void *argp1 = 0 ;
5056 int res1 = 0 ;
5057 unsigned long long val2 ;
5058 int ecode2 = 0 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 bool result;
5062
5063 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_OffsetAddress",&obj0,&obj1)) SWIG_failgoto fail;
5064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5065 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_OffsetAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_OffsetAddress" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5067 }
5068 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5069 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
5070 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAddress_OffsetAddress" "', argument " "2"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAddress_OffsetAddress"
"', argument " "2"" of type '" "lldb::addr_t""'"); goto fail
; } while(0)
;
5072 }
5073 arg2 = static_cast< lldb::addr_t >(val2);
5074 {
5075 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5076 result = (bool)(arg1)->OffsetAddress(arg2);
5077 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5078 }
5079 resultobj = SWIG_From_bool(static_cast< bool >(result));
5080 return resultobj;
5081fail:
5082 return NULL__null;
5083}
5084
5085
5086SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5087 PyObject *resultobj = 0;
5088 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5089 lldb::SBStream *arg2 = 0 ;
5090 void *argp1 = 0 ;
5091 int res1 = 0 ;
5092 void *argp2 = 0 ;
5093 int res2 = 0 ;
5094 PyObject * obj0 = 0 ;
5095 PyObject * obj1 = 0 ;
5096 bool result;
5097
5098 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetDescription",&obj0,&obj1)) SWIG_failgoto fail;
5099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5100 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetDescription" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetDescription" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5102 }
5103 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5104 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBStream, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[51]
, 0, 0)
;
5105 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAddress_GetDescription" "', argument " "2"" of type '" "lldb::SBStream &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SBAddress_GetDescription" "', argument "
"2"" of type '" "lldb::SBStream &""'"); goto fail; } while
(0)
;
5107 }
5108 if (!argp2) {
5109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_GetDescription" "', argument " "2"" of type '" "lldb::SBStream &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SBAddress_GetDescription" "', argument " "2"" of type '"
"lldb::SBStream &""'"); goto fail; } while(0)
;
5110 }
5111 arg2 = reinterpret_cast< lldb::SBStream * >(argp2);
5112 {
5113 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5114 result = (bool)(arg1)->GetDescription(*arg2);
5115 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5116 }
5117 resultobj = SWIG_From_bool(static_cast< bool >(result));
5118 return resultobj;
5119fail:
5120 return NULL__null;
5121}
5122
5123
5124SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5125 PyObject *resultobj = 0;
5126 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5127 void *argp1 = 0 ;
5128 int res1 = 0 ;
5129 PyObject * obj0 = 0 ;
5130 lldb::SBSection result;
5131
5132 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetSection",&obj0)) SWIG_failgoto fail;
5133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5134 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetSection" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetSection" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5136 }
5137 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5138 {
5139 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5140 result = (arg1)->GetSection();
5141 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5142 }
5143 resultobj = SWIG_NewPointerObj((new lldb::SBSection(static_cast< const lldb::SBSection& >(result))), SWIGTYPE_p_lldb__SBSection, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBSection(static_cast
< const lldb::SBSection& >(result))), swig_types[49
], 0x1 | 0)
;
5144 return resultobj;
5145fail:
5146 return NULL__null;
5147}
5148
5149
5150SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5151 PyObject *resultobj = 0;
5152 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5153 void *argp1 = 0 ;
5154 int res1 = 0 ;
5155 PyObject * obj0 = 0 ;
5156 lldb::addr_t result;
5157
5158 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetOffset",&obj0)) SWIG_failgoto fail;
5159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5160 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetOffset" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetOffset" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5162 }
5163 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5164 {
5165 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5166 result = (lldb::addr_t)(arg1)->GetOffset();
5167 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5168 }
5169 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
5170 return resultobj;
5171fail:
5172 return NULL__null;
5173}
5174
5175
5176SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_SetAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5177 PyObject *resultobj = 0;
5178 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5179 lldb::SBSection arg2 ;
5180 lldb::addr_t arg3 ;
5181 void *argp1 = 0 ;
5182 int res1 = 0 ;
5183 void *argp2 ;
5184 int res2 = 0 ;
5185 unsigned long long val3 ;
5186 int ecode3 = 0 ;
5187 PyObject * obj0 = 0 ;
5188 PyObject * obj1 = 0 ;
5189 PyObject * obj2 = 0 ;
5190
5191 if (!PyArg_ParseTuple(args,(char *)"OOO:SBAddress_SetAddress",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5193 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_SetAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_SetAddress" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5195 }
5196 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5197 {
5198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBSection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[49]
, 0 | 0, 0)
;
5199 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAddress_SetAddress" "', argument " "2"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SBAddress_SetAddress" "', argument "
"2"" of type '" "lldb::SBSection""'"); goto fail; } while(0)
;
5201 }
5202 if (!argp2) {
5203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_SetAddress" "', argument " "2"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SBAddress_SetAddress" "', argument " "2"" of type '"
"lldb::SBSection""'"); goto fail; } while(0)
;
5204 } else {
5205 lldb::SBSection * temp = reinterpret_cast< lldb::SBSection * >(argp2);
5206 arg2 = *temp;
5207 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete temp;
5208 }
5209 }
5210 ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3);
5211 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SBAddress_SetAddress" "', argument " "3"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "SBAddress_SetAddress" "', argument "
"3"" of type '" "lldb::addr_t""'"); goto fail; } while(0)
;
5213 }
5214 arg3 = static_cast< lldb::addr_t >(val3);
5215 {
5216 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5217 (arg1)->SetAddress(arg2,arg3);
5218 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5219 }
5220 resultobj = SWIG_Py_Void();
5221 return resultobj;
5222fail:
5223 return NULL__null;
5224}
5225
5226
5227SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetAddressClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228 PyObject *resultobj = 0;
5229 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5230 void *argp1 = 0 ;
5231 int res1 = 0 ;
5232 PyObject * obj0 = 0 ;
5233 lldb::AddressClass result;
5234
5235 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetAddressClass",&obj0)) SWIG_failgoto fail;
5236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5237 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetAddressClass" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetAddressClass"
"', argument " "1"" of type '" "lldb::SBAddress *""'"); goto
fail; } while(0)
;
5239 }
5240 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5241 {
5242 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5243 result = (lldb::AddressClass)(arg1)->GetAddressClass();
5244 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5245 }
5246 resultobj = SWIG_From_int(static_cast< int >(result));
5247 return resultobj;
5248fail:
5249 return NULL__null;
5250}
5251
5252
5253SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSymbolContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5254 PyObject *resultobj = 0;
5255 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5256 uint32_t arg2 ;
5257 void *argp1 = 0 ;
5258 int res1 = 0 ;
5259 unsigned int val2 ;
5260 int ecode2 = 0 ;
5261 PyObject * obj0 = 0 ;
5262 PyObject * obj1 = 0 ;
5263 lldb::SBSymbolContext result;
5264
5265 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetSymbolContext",&obj0,&obj1)) SWIG_failgoto fail;
5266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5267 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetSymbolContext" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetSymbolContext"
"', argument " "1"" of type '" "lldb::SBAddress *""'"); goto
fail; } while(0)
;
5269 }
5270 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5271 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
5272 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAddress_GetSymbolContext" "', argument " "2"" of type '" "uint32_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAddress_GetSymbolContext"
"', argument " "2"" of type '" "uint32_t""'"); goto fail; } while
(0)
;
5274 }
5275 arg2 = static_cast< uint32_t >(val2);
5276 {
5277 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5278 result = (arg1)->GetSymbolContext(arg2);
5279 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5280 }
5281 resultobj = SWIG_NewPointerObj((new lldb::SBSymbolContext(static_cast< const lldb::SBSymbolContext& >(result))), SWIGTYPE_p_lldb__SBSymbolContext, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBSymbolContext(
static_cast< const lldb::SBSymbolContext& >(result)
)), swig_types[55], 0x1 | 0)
;
5282 return resultobj;
5283fail:
5284 return NULL__null;
5285}
5286
5287
5288SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5289 PyObject *resultobj = 0;
5290 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5291 void *argp1 = 0 ;
5292 int res1 = 0 ;
5293 PyObject * obj0 = 0 ;
5294 lldb::SBModule result;
5295
5296 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetModule",&obj0)) SWIG_failgoto fail;
5297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5298 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetModule" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetModule" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5300 }
5301 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5302 {
5303 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5304 result = (arg1)->GetModule();
5305 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5306 }
5307 resultobj = SWIG_NewPointerObj((new lldb::SBModule(static_cast< const lldb::SBModule& >(result))), SWIGTYPE_p_lldb__SBModule, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBModule(static_cast
< const lldb::SBModule& >(result))), swig_types[40]
, 0x1 | 0)
;
5308 return resultobj;
5309fail:
5310 return NULL__null;
5311}
5312
5313
5314SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetCompileUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5315 PyObject *resultobj = 0;
5316 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5317 void *argp1 = 0 ;
5318 int res1 = 0 ;
5319 PyObject * obj0 = 0 ;
5320 lldb::SBCompileUnit result;
5321
5322 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetCompileUnit",&obj0)) SWIG_failgoto fail;
5323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5324 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetCompileUnit" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetCompileUnit" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5326 }
5327 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5328 {
5329 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5330 result = (arg1)->GetCompileUnit();
5331 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5332 }
5333 resultobj = SWIG_NewPointerObj((new lldb::SBCompileUnit(static_cast< const lldb::SBCompileUnit& >(result))), SWIGTYPE_p_lldb__SBCompileUnit, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBCompileUnit(static_cast
< const lldb::SBCompileUnit& >(result))), swig_types
[19], 0x1 | 0)
;
5334 return resultobj;
5335fail:
5336 return NULL__null;
5337}
5338
5339
5340SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5341 PyObject *resultobj = 0;
5342 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5343 void *argp1 = 0 ;
5344 int res1 = 0 ;
5345 PyObject * obj0 = 0 ;
5346 lldb::SBFunction result;
5347
5348 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetFunction",&obj0)) SWIG_failgoto fail;
5349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5350 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetFunction" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetFunction" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5352 }
5353 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5354 {
5355 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5356 result = (arg1)->GetFunction();
5357 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5358 }
5359 resultobj = SWIG_NewPointerObj((new lldb::SBFunction(static_cast< const lldb::SBFunction& >(result))), SWIGTYPE_p_lldb__SBFunction, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBFunction(static_cast
< const lldb::SBFunction& >(result))), swig_types[30
], 0x1 | 0)
;
5360 return resultobj;
5361fail:
5362 return NULL__null;
5363}
5364
5365
5366SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5367 PyObject *resultobj = 0;
5368 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5369 void *argp1 = 0 ;
5370 int res1 = 0 ;
5371 PyObject * obj0 = 0 ;
5372 lldb::SBBlock result;
5373
5374 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetBlock",&obj0)) SWIG_failgoto fail;
5375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5376 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetBlock" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetBlock" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5378 }
5379 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5380 {
5381 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5382 result = (arg1)->GetBlock();
5383 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5384 }
5385 resultobj = SWIG_NewPointerObj((new lldb::SBBlock(static_cast< const lldb::SBBlock& >(result))), SWIGTYPE_p_lldb__SBBlock, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBBlock(static_cast
< const lldb::SBBlock& >(result))), swig_types[10],
0x1 | 0)
;
5386 return resultobj;
5387fail:
5388 return NULL__null;
5389}
5390
5391
5392SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5393 PyObject *resultobj = 0;
5394 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5395 void *argp1 = 0 ;
5396 int res1 = 0 ;
5397 PyObject * obj0 = 0 ;
5398 lldb::SBSymbol result;
5399
5400 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetSymbol",&obj0)) SWIG_failgoto fail;
5401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5402 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetSymbol" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetSymbol" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5404 }
5405 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5406 {
5407 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5408 result = (arg1)->GetSymbol();
5409 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5410 }
5411 resultobj = SWIG_NewPointerObj((new lldb::SBSymbol(static_cast< const lldb::SBSymbol& >(result))), SWIGTYPE_p_lldb__SBSymbol, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBSymbol(static_cast
< const lldb::SBSymbol& >(result))), swig_types[54]
, 0x1 | 0)
;
5412 return resultobj;
5413fail:
5414 return NULL__null;
5415}
5416
5417
5418SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetLineEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5419 PyObject *resultobj = 0;
5420 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5421 void *argp1 = 0 ;
5422 int res1 = 0 ;
5423 PyObject * obj0 = 0 ;
5424 lldb::SBLineEntry result;
5425
5426 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetLineEntry",&obj0)) SWIG_failgoto fail;
5427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5428 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetLineEntry" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress_GetLineEntry" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5430 }
5431 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5432 {
5433 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5434 result = (arg1)->GetLineEntry();
5435 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5436 }
5437 resultobj = SWIG_NewPointerObj((new lldb::SBLineEntry(static_cast< const lldb::SBLineEntry& >(result))), SWIGTYPE_p_lldb__SBLineEntry, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBLineEntry(static_cast
< const lldb::SBLineEntry& >(result))), swig_types[
36], 0x1 | 0)
;
5438 return resultobj;
5439fail:
5440 return NULL__null;
5441}
5442
5443
5444SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5445 PyObject *resultobj = 0;
5446 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5447 void *argp1 = 0 ;
5448 int res1 = 0 ;
5449 PyObject * obj0 = 0 ;
5450 PyObject *result = 0 ;
5451
5452 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress___str__",&obj0)) SWIG_failgoto fail;
5453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5454 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress___str__" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAddress___str__" "', argument "
"1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(
0)
;
5456 }
5457 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5458 {
5459 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5460 result = (PyObject *)lldb_SBAddress___str__(arg1);
5461 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5462 }
5463 resultobj = result;
5464 return resultobj;
5465fail:
5466 return NULL__null;
5467}
5468
5469
5470SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SBAddress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5471 PyObject *obj;
5472 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
5473 SWIG_TypeNewClientData(SWIGTYPE_p_lldb__SBAddressswig_types[8], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
5474 return SWIG_Py_Void();
5475}
5476
5477SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5478 PyObject *resultobj = 0;
5479 lldb::SBAttachInfo *result = 0 ;
5480
5481 if (!PyArg_ParseTuple(args,(char *)":new_SBAttachInfo")) SWIG_failgoto fail;
5482 {
5483 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5484 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo();
5485 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5486 }
5487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAttachInfo, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
5488 return resultobj;
5489fail:
5490 return NULL__null;
5491}
5492
5493
5494SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5495 PyObject *resultobj = 0;
5496 lldb::pid_t arg1 ;
5497 unsigned long long val1 ;
5498 int ecode1 = 0 ;
5499 PyObject * obj0 = 0 ;
5500 lldb::SBAttachInfo *result = 0 ;
5501
5502 if (!PyArg_ParseTuple(args,(char *)"O:new_SBAttachInfo",&obj0)) SWIG_failgoto fail;
5503 ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1);
5504 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
5505 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SBAttachInfo" "', argument " "1"" of type '" "lldb::pid_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_SBAttachInfo" "', argument "
"1"" of type '" "lldb::pid_t""'"); goto fail; } while(0)
;
5506 }
5507 arg1 = static_cast< lldb::pid_t >(val1);
5508 {
5509 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5510 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo(arg1);
5511 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5512 }
5513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAttachInfo, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
5514 return resultobj;
5515fail:
5516 return NULL__null;
5517}
5518
5519
5520SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5521 PyObject *resultobj = 0;
5522 char *arg1 = (char *) 0 ;
5523 bool arg2 ;
5524 int res1 ;
5525 char *buf1 = 0 ;
5526 int alloc1 = 0 ;
5527 bool val2 ;
5528 int ecode2 = 0 ;
5529 PyObject * obj0 = 0 ;
5530 PyObject * obj1 = 0 ;
5531 lldb::SBAttachInfo *result = 0 ;
5532
5533 if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAttachInfo",&obj0,&obj1)) SWIG_failgoto fail;
5534 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL__null, &alloc1);
5535 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBAttachInfo" "', argument " "1"" of type '" "char const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_SBAttachInfo" "', argument "
"1"" of type '" "char const *""'"); goto fail; } while(0)
;
5537 }
5538 arg1 = reinterpret_cast< char * >(buf1);
5539 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5540 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SBAttachInfo" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_SBAttachInfo" "', argument "
"2"" of type '" "bool""'"); goto fail; } while(0)
;
5542 }
5543 arg2 = static_cast< bool >(val2);
5544 {
5545 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5546 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((char const *)arg1,arg2);
5547 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5548 }
5549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAttachInfo, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
5550 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5551 return resultobj;
5552fail:
5553 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5554 return NULL__null;
5555}
5556
5557
5558SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5559 PyObject *resultobj = 0;
5560 char *arg1 = (char *) 0 ;
5561 bool arg2 ;
5562 bool arg3 ;
5563 int res1 ;
5564 char *buf1 = 0 ;
5565 int alloc1 = 0 ;
5566 bool val2 ;
5567 int ecode2 = 0 ;
5568 bool val3 ;
5569 int ecode3 = 0 ;
5570 PyObject * obj0 = 0 ;
5571 PyObject * obj1 = 0 ;
5572 PyObject * obj2 = 0 ;
5573 lldb::SBAttachInfo *result = 0 ;
5574
5575 if (!PyArg_ParseTuple(args,(char *)"OOO:new_SBAttachInfo",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5576 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL__null, &alloc1);
5577 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBAttachInfo" "', argument " "1"" of type '" "char const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_SBAttachInfo" "', argument "
"1"" of type '" "char const *""'"); goto fail; } while(0)
;
5579 }
5580 arg1 = reinterpret_cast< char * >(buf1);
5581 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5582 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SBAttachInfo" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_SBAttachInfo" "', argument "
"2"" of type '" "bool""'"); goto fail; } while(0)
;
5584 }
5585 arg2 = static_cast< bool >(val2);
5586 ecode3 = SWIG_AsVal_bool(obj2, &val3);
5587 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SBAttachInfo" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "new_SBAttachInfo" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
5589 }
5590 arg3 = static_cast< bool >(val3);
5591 {
5592 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5593 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((char const *)arg1,arg2,arg3);
5594 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5595 }
5596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAttachInfo, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
5597 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5598 return resultobj;
5599fail:
5600 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5601 return NULL__null;
5602}
5603
5604
5605SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5606 PyObject *resultobj = 0;
5607 lldb::SBAttachInfo *arg1 = 0 ;
5608 void *argp1 = 0 ;
5609 int res1 = 0 ;
5610 PyObject * obj0 = 0 ;
5611 lldb::SBAttachInfo *result = 0 ;
5612
5613 if (!PyArg_ParseTuple(args,(char *)"O:new_SBAttachInfo",&obj0)) SWIG_failgoto fail;
5614 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5615 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBAttachInfo" "', argument " "1"" of type '" "lldb::SBAttachInfo const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_SBAttachInfo" "', argument "
"1"" of type '" "lldb::SBAttachInfo const &""'"); goto fail
; } while(0)
;
5617 }
5618 if (!argp1) {
5619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBAttachInfo" "', argument " "1"" of type '" "lldb::SBAttachInfo const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_SBAttachInfo" "', argument " "1"" of type '"
"lldb::SBAttachInfo const &""'"); goto fail; } while(0)
;
5620 }
5621 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5622 {
5623 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5624 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((lldb::SBAttachInfo const &)*arg1);
5625 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5626 }
5627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAttachInfo, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
5628 return resultobj;
5629fail:
5630 return NULL__null;
5631}
5632
5633
5634SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo(PyObject *self, PyObject *args) {
5635 Py_ssize_t argc;
5636 PyObject *argv[4] = {
5637 0
5638 };
5639 Py_ssize_t ii;
5640
5641 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5642 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5643 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5644 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5645 }
5646 if (argc == 0) {
5647 return _wrap_new_SBAttachInfo__SWIG_0(self, args);
5648 }
5649 if (argc == 1) {
5650 int _v;
5651 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[9], 0, 0);
5652 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5653 if (_v) {
5654 return _wrap_new_SBAttachInfo__SWIG_4(self, args);
5655 }
5656 }
5657 if (argc == 1) {
5658 int _v;
5659 {
5660 int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL__null);
5661 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5662 }
5663 if (_v) {
5664 return _wrap_new_SBAttachInfo__SWIG_1(self, args);
5665 }
5666 }
5667 if (argc == 2) {
5668 int _v;
5669 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL__null, 0);
5670 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5671 if (_v) {
5672 {
5673 int res = SWIG_AsVal_bool(argv[1], NULL__null);
5674 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5675 }
5676 if (_v) {
5677 return _wrap_new_SBAttachInfo__SWIG_2(self, args);
5678 }
5679 }
5680 }
5681 if (argc == 3) {
5682 int _v;
5683 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL__null, 0);
5684 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5685 if (_v) {
5686 {
5687 int res = SWIG_AsVal_bool(argv[1], NULL__null);
5688 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5689 }
5690 if (_v) {
5691 {
5692 int res = SWIG_AsVal_bool(argv[2], NULL__null);
5693 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5694 }
5695 if (_v) {
5696 return _wrap_new_SBAttachInfo__SWIG_3(self, args);
5697 }
5698 }
5699 }
5700 }
5701
5702fail:
5703 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SBAttachInfo'.\n"
5704 " Possible C/C++ prototypes are:\n"
5705 " lldb::SBAttachInfo::SBAttachInfo()\n"
5706 " lldb::SBAttachInfo::SBAttachInfo(lldb::pid_t)\n"
5707 " lldb::SBAttachInfo::SBAttachInfo(char const *,bool)\n"
5708 " lldb::SBAttachInfo::SBAttachInfo(char const *,bool,bool)\n"
5709 " lldb::SBAttachInfo::SBAttachInfo(lldb::SBAttachInfo const &)\n");
5710 return 0;
5711}
5712
5713
5714SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5715 PyObject *resultobj = 0;
5716 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5717 void *argp1 = 0 ;
5718 int res1 = 0 ;
5719 PyObject * obj0 = 0 ;
5720 lldb::pid_t result;
5721
5722 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetProcessID",&obj0)) SWIG_failgoto fail;
5723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5724 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetProcessID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetProcessID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
5726 }
5727 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5728 {
5729 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5730 result = (lldb::pid_t)(arg1)->GetProcessID();
5731 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5732 }
5733 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
5734 return resultobj;
5735fail:
5736 return NULL__null;
5737}
5738
5739
5740SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5741 PyObject *resultobj = 0;
5742 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5743 lldb::pid_t arg2 ;
5744 void *argp1 = 0 ;
5745 int res1 = 0 ;
5746 unsigned long long val2 ;
5747 int ecode2 = 0 ;
5748 PyObject * obj0 = 0 ;
5749 PyObject * obj1 = 0 ;
5750
5751 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetProcessID",&obj0,&obj1)) SWIG_failgoto fail;
5752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5753 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetProcessID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetProcessID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
5755 }
5756 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5757 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
5758 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetProcessID" "', argument " "2"" of type '" "lldb::pid_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetProcessID"
"', argument " "2"" of type '" "lldb::pid_t""'"); goto fail;
} while(0)
;
5760 }
5761 arg2 = static_cast< lldb::pid_t >(val2);
5762 {
5763 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5764 (arg1)->SetProcessID(arg2);
5765 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5766 }
5767 resultobj = SWIG_Py_Void();
5768 return resultobj;
5769fail:
5770 return NULL__null;
5771}
5772
5773
5774SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetExecutable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5775 PyObject *resultobj = 0;
5776 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5777 char *arg2 = (char *) 0 ;
5778 void *argp1 = 0 ;
5779 int res1 = 0 ;
5780 int res2 ;
5781 char *buf2 = 0 ;
5782 int alloc2 = 0 ;
5783 PyObject * obj0 = 0 ;
5784 PyObject * obj1 = 0 ;
5785
5786 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetExecutable",&obj0,&obj1)) SWIG_failgoto fail;
5787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5788 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetExecutable" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetExecutable"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
5790 }
5791 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5792 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL__null, &alloc2);
5793 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAttachInfo_SetExecutable" "', argument " "2"" of type '" "char const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SBAttachInfo_SetExecutable"
"', argument " "2"" of type '" "char const *""'"); goto fail
; } while(0)
;
5795 }
5796 arg2 = reinterpret_cast< char * >(buf2);
5797 {
5798 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5799 (arg1)->SetExecutable((char const *)arg2);
5800 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5801 }
5802 resultobj = SWIG_Py_Void();
5803 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
5804 return resultobj;
5805fail:
5806 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
5807 return NULL__null;
5808}
5809
5810
5811SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetExecutable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5812 PyObject *resultobj = 0;
5813 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5814 lldb::SBFileSpec arg2 ;
5815 void *argp1 = 0 ;
5816 int res1 = 0 ;
5817 void *argp2 ;
5818 int res2 = 0 ;
5819 PyObject * obj0 = 0 ;
5820 PyObject * obj1 = 0 ;
5821
5822 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetExecutable",&obj0,&obj1)) SWIG_failgoto fail;
5823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5824 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetExecutable" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetExecutable"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
5826 }
5827 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5828 {
5829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBFileSpec, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[27]
, 0 | 0, 0)
;
5830 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAttachInfo_SetExecutable" "', argument " "2"" of type '" "lldb::SBFileSpec""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SBAttachInfo_SetExecutable"
"', argument " "2"" of type '" "lldb::SBFileSpec""'"); goto fail
; } while(0)
;
5832 }
5833 if (!argp2) {
5834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAttachInfo_SetExecutable" "', argument " "2"" of type '" "lldb::SBFileSpec""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SBAttachInfo_SetExecutable" "', argument " "2"
" of type '" "lldb::SBFileSpec""'"); goto fail; } while(0)
;
5835 } else {
5836 lldb::SBFileSpec * temp = reinterpret_cast< lldb::SBFileSpec * >(argp2);
5837 arg2 = *temp;
5838 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete temp;
5839 }
5840 }
5841 {
5842 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5843 (arg1)->SetExecutable(arg2);
5844 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5845 }
5846 resultobj = SWIG_Py_Void();
5847 return resultobj;
5848fail:
5849 return NULL__null;
5850}
5851
5852
5853SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetExecutable(PyObject *self, PyObject *args) {
5854 Py_ssize_t argc;
5855 PyObject *argv[3] = {
5856 0
5857 };
5858 Py_ssize_t ii;
5859
5860 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5861 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5862 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5863 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5864 }
5865 if (argc == 2) {
5866 int _v;
5867 void *vptr = 0;
5868 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5869 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5870 if (_v) {
5871 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_lldb__SBFileSpec, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[27], 0, 0
)
;
5872 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5873 if (_v) {
5874 return _wrap_SBAttachInfo_SetExecutable__SWIG_1(self, args);
5875 }
5876 }
5877 }
5878 if (argc == 2) {
5879 int _v;
5880 void *vptr = 0;
5881 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5882 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5883 if (_v) {
5884 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL__null, 0);
5885 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5886 if (_v) {
5887 return _wrap_SBAttachInfo_SetExecutable__SWIG_0(self, args);
5888 }
5889 }
5890 }
5891
5892fail:
5893 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SBAttachInfo_SetExecutable'.\n"
5894 " Possible C/C++ prototypes are:\n"
5895 " lldb::SBAttachInfo::SetExecutable(char const *)\n"
5896 " lldb::SBAttachInfo::SetExecutable(lldb::SBFileSpec)\n");
5897 return 0;
5898}
5899
5900
5901SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetWaitForLaunch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5902 PyObject *resultobj = 0;
5903 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5904 void *argp1 = 0 ;
5905 int res1 = 0 ;
5906 PyObject * obj0 = 0 ;
5907 bool result;
5908
5909 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetWaitForLaunch",&obj0)) SWIG_failgoto fail;
5910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5911 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetWaitForLaunch" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetWaitForLaunch"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
5913 }
5914 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5915 {
5916 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5917 result = (bool)(arg1)->GetWaitForLaunch();
5918 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5919 }
5920 resultobj = SWIG_From_bool(static_cast< bool >(result));
5921 return resultobj;
5922fail:
5923 return NULL__null;
5924}
5925
5926
5927SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetWaitForLaunch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5930 bool arg2 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 bool val2 ;
5934 int ecode2 = 0 ;
5935 PyObject * obj0 = 0 ;
5936 PyObject * obj1 = 0 ;
5937
5938 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetWaitForLaunch",&obj0,&obj1)) SWIG_failgoto fail;
5939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5940 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetWaitForLaunch" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetWaitForLaunch"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
5942 }
5943 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5944 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5945 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetWaitForLaunch" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetWaitForLaunch"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
5947 }
5948 arg2 = static_cast< bool >(val2);
5949 {
5950 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5951 (arg1)->SetWaitForLaunch(arg2);
5952 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5953 }
5954 resultobj = SWIG_Py_Void();
5955 return resultobj;
5956fail:
5957 return NULL__null;
5958}
5959
5960
5961SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetWaitForLaunch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5962 PyObject *resultobj = 0;
5963 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5964 bool arg2 ;
5965 bool arg3 ;
5966 void *argp1 = 0 ;
5967 int res1 = 0 ;
5968 bool val2 ;
5969 int ecode2 = 0 ;
5970 bool val3 ;
5971 int ecode3 = 0 ;
5972 PyObject * obj0 = 0 ;
5973 PyObject * obj1 = 0 ;
5974 PyObject * obj2 = 0 ;
5975
5976 if (!PyArg_ParseTuple(args,(char *)"OOO:SBAttachInfo_SetWaitForLaunch",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5978 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetWaitForLaunch" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetWaitForLaunch"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
5980 }
5981 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5982 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5983 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetWaitForLaunch" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetWaitForLaunch"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
5985 }
5986 arg2 = static_cast< bool >(val2);
5987 ecode3 = SWIG_AsVal_bool(obj2, &val3);
5988 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SBAttachInfo_SetWaitForLaunch" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "SBAttachInfo_SetWaitForLaunch"
"', argument " "3"" of type '" "bool""'"); goto fail; } while
(0)
;
5990 }
5991 arg3 = static_cast< bool >(val3);
5992 {
5993 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5994 (arg1)->SetWaitForLaunch(arg2,arg3);
5995 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5996 }
5997 resultobj = SWIG_Py_Void();
5998 return resultobj;
5999fail:
6000 return NULL__null;
6001}
6002
6003
6004SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetWaitForLaunch(PyObject *self, PyObject *args) {
6005 Py_ssize_t argc;
6006 PyObject *argv[4] = {
6007 0
6008 };
6009 Py_ssize_t ii;
6010
6011 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6012 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
6013 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6014 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6015 }
6016 if (argc == 2) {
6017 int _v;
6018 void *vptr = 0;
6019 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
6020 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6021 if (_v) {
6022 {
6023 int res = SWIG_AsVal_bool(argv[1], NULL__null);
6024 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6025 }
6026 if (_v) {
6027 return _wrap_SBAttachInfo_SetWaitForLaunch__SWIG_0(self, args);
6028 }
6029 }
6030 }
6031 if (argc == 3) {
6032 int _v;
6033 void *vptr = 0;
6034 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
6035 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6036 if (_v) {
6037 {
6038 int res = SWIG_AsVal_bool(argv[1], NULL__null);
6039 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6040 }
6041 if (_v) {
6042 {
6043 int res = SWIG_AsVal_bool(argv[2], NULL__null);
6044 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6045 }
6046 if (_v) {
6047 return _wrap_SBAttachInfo_SetWaitForLaunch__SWIG_1(self, args);
6048 }
6049 }
6050 }
6051 }
6052
6053fail:
6054 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SBAttachInfo_SetWaitForLaunch'.\n"
6055 " Possible C/C++ prototypes are:\n"
6056 " lldb::SBAttachInfo::SetWaitForLaunch(bool)\n"
6057 " lldb::SBAttachInfo::SetWaitForLaunch(bool,bool)\n");
6058 return 0;
6059}
6060
6061
6062SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetIgnoreExisting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6063 PyObject *resultobj = 0;
6064 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6065 void *argp1 = 0 ;
6066 int res1 = 0 ;
6067 PyObject * obj0 = 0 ;
6068 bool result;
6069
6070 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetIgnoreExisting",&obj0)) SWIG_failgoto fail;
6071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6072 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetIgnoreExisting" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetIgnoreExisting"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6074 }
6075 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6076 {
6077 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6078 result = (bool)(arg1)->GetIgnoreExisting();
6079 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6080 }
6081 resultobj = SWIG_From_bool(static_cast< bool >(result));
6082 return resultobj;
6083fail:
6084 return NULL__null;
6085}
6086
6087
6088SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetIgnoreExisting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6089 PyObject *resultobj = 0;
6090 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6091 bool arg2 ;
6092 void *argp1 = 0 ;
6093 int res1 = 0 ;
6094 bool val2 ;
6095 int ecode2 = 0 ;
6096 PyObject * obj0 = 0 ;
6097 PyObject * obj1 = 0 ;
6098
6099 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetIgnoreExisting",&obj0,&obj1)) SWIG_failgoto fail;
6100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6101 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetIgnoreExisting" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetIgnoreExisting"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6103 }
6104 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6105 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetIgnoreExisting" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetIgnoreExisting"
"', argument " "2"" of type '" "bool""'"); goto fail; } while
(0)
;
6108 }
6109 arg2 = static_cast< bool >(val2);
6110 {
6111 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6112 (arg1)->SetIgnoreExisting(arg2);
6113 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6114 }
6115 resultobj = SWIG_Py_Void();
6116 return resultobj;
6117fail:
6118 return NULL__null;
6119}
6120
6121
6122SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetResumeCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6123 PyObject *resultobj = 0;
6124 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6125 void *argp1 = 0 ;
6126 int res1 = 0 ;
6127 PyObject * obj0 = 0 ;
6128 uint32_t result;
6129
6130 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetResumeCount",&obj0)) SWIG_failgoto fail;
6131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6132 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetResumeCount" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetResumeCount"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6134 }
6135 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6136 {
6137 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6138 result = (uint32_t)(arg1)->GetResumeCount();
6139 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6140 }
6141 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6142 return resultobj;
6143fail:
6144 return NULL__null;
6145}
6146
6147
6148SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetResumeCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6149 PyObject *resultobj = 0;
6150 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6151 uint32_t arg2 ;
6152 void *argp1 = 0 ;
6153 int res1 = 0 ;
6154 unsigned int val2 ;
6155 int ecode2 = 0 ;
6156 PyObject * obj0 = 0 ;
6157 PyObject * obj1 = 0 ;
6158
6159 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetResumeCount",&obj0,&obj1)) SWIG_failgoto fail;
6160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6161 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetResumeCount" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetResumeCount"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6163 }
6164 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6165 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6166 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetResumeCount" "', argument " "2"" of type '" "uint32_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetResumeCount"
"', argument " "2"" of type '" "uint32_t""'"); goto fail; } while
(0)
;
6168 }
6169 arg2 = static_cast< uint32_t >(val2);
6170 {
6171 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6172 (arg1)->SetResumeCount(arg2);
6173 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6174 }
6175 resultobj = SWIG_Py_Void();
6176 return resultobj;
6177fail:
6178 return NULL__null;
6179}
6180
6181
6182SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetProcessPluginName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6183 PyObject *resultobj = 0;
6184 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6185 void *argp1 = 0 ;
6186 int res1 = 0 ;
6187 PyObject * obj0 = 0 ;
6188 char *result = 0 ;
6189
6190 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetProcessPluginName",&obj0)) SWIG_failgoto fail;
6191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6192 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetProcessPluginName" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetProcessPluginName"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6194 }
6195 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6196 {
6197 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6198 result = (char *)(arg1)->GetProcessPluginName();
6199 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6200 }
6201 resultobj = SWIG_FromCharPtr((const char *)result);
6202 return resultobj;
6203fail:
6204 return NULL__null;
6205}
6206
6207
6208SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetProcessPluginName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6209 PyObject *resultobj = 0;
6210 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6211 char *arg2 = (char *) 0 ;
6212 void *argp1 = 0 ;
6213 int res1 = 0 ;
6214 int res2 ;
6215 char *buf2 = 0 ;
6216 int alloc2 = 0 ;
6217 PyObject * obj0 = 0 ;
6218 PyObject * obj1 = 0 ;
6219
6220 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetProcessPluginName",&obj0,&obj1)) SWIG_failgoto fail;
6221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6222 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetProcessPluginName" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetProcessPluginName"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6224 }
6225 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6226 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL__null, &alloc2);
6227 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAttachInfo_SetProcessPluginName" "', argument " "2"" of type '" "char const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SBAttachInfo_SetProcessPluginName"
"', argument " "2"" of type '" "char const *""'"); goto fail
; } while(0)
;
6229 }
6230 arg2 = reinterpret_cast< char * >(buf2);
6231 {
6232 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6233 (arg1)->SetProcessPluginName((char const *)arg2);
6234 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6235 }
6236 resultobj = SWIG_Py_Void();
6237 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
6238 return resultobj;
6239fail:
6240 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
6241 return NULL__null;
6242}
6243
6244
6245SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6246 PyObject *resultobj = 0;
6247 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6248 void *argp1 = 0 ;
6249 int res1 = 0 ;
6250 PyObject * obj0 = 0 ;
6251 uint32_t result;
6252
6253 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetUserID",&obj0)) SWIG_failgoto fail;
6254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6255 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetUserID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetUserID" "', argument "
"1"" of type '" "lldb::SBAttachInfo *""'"); goto fail; } while
(0)
;
6257 }
6258 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6259 {
6260 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6261 result = (uint32_t)(arg1)->GetUserID();
6262 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6263 }
6264 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6265 return resultobj;
6266fail:
6267 return NULL__null;
6268}
6269
6270
6271SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6272 PyObject *resultobj = 0;
6273 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6274 void *argp1 = 0 ;
6275 int res1 = 0 ;
6276 PyObject * obj0 = 0 ;
6277 uint32_t result;
6278
6279 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetGroupID",&obj0)) SWIG_failgoto fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6281 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetGroupID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetGroupID" "', argument "
"1"" of type '" "lldb::SBAttachInfo *""'"); goto fail; } while
(0)
;
6283 }
6284 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6285 {
6286 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6287 result = (uint32_t)(arg1)->GetGroupID();
6288 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6289 }
6290 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6291 return resultobj;
6292fail:
6293 return NULL__null;
6294}
6295
6296
6297SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_UserIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6298 PyObject *resultobj = 0;
6299 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6300 void *argp1 = 0 ;
6301 int res1 = 0 ;
6302 PyObject * obj0 = 0 ;
6303 bool result;
6304
6305 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_UserIDIsValid",&obj0)) SWIG_failgoto fail;
6306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6307 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_UserIDIsValid" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_UserIDIsValid"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6309 }
6310 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6311 {
6312 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6313 result = (bool)(arg1)->UserIDIsValid();
6314 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6315 }
6316 resultobj = SWIG_From_bool(static_cast< bool >(result));
6317 return resultobj;
6318fail:
6319 return NULL__null;
6320}
6321
6322
6323SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GroupIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6324 PyObject *resultobj = 0;
6325 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6326 void *argp1 = 0 ;
6327 int res1 = 0 ;
6328 PyObject * obj0 = 0 ;
6329 bool result;
6330
6331 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GroupIDIsValid",&obj0)) SWIG_failgoto fail;
6332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6333 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GroupIDIsValid" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GroupIDIsValid"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6335 }
6336 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6337 {
6338 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6339 result = (bool)(arg1)->GroupIDIsValid();
6340 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6341 }
6342 resultobj = SWIG_From_bool(static_cast< bool >(result));
6343 return resultobj;
6344fail:
6345 return NULL__null;
6346}
6347
6348
6349SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6350 PyObject *resultobj = 0;
6351 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6352 uint32_t arg2 ;
6353 void *argp1 = 0 ;
6354 int res1 = 0 ;
6355 unsigned int val2 ;
6356 int ecode2 = 0 ;
6357 PyObject * obj0 = 0 ;
6358 PyObject * obj1 = 0 ;
6359
6360 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetUserID",&obj0,&obj1)) SWIG_failgoto fail;
6361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6362 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetUserID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetUserID" "', argument "
"1"" of type '" "lldb::SBAttachInfo *""'"); goto fail; } while
(0)
;
6364 }
6365 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6366 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6367 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetUserID" "', argument " "2"" of type '" "uint32_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetUserID"
"', argument " "2"" of type '" "uint32_t""'"); goto fail; } while
(0)
;
6369 }
6370 arg2 = static_cast< uint32_t >(val2);
6371 {
6372 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6373 (arg1)->SetUserID(arg2);
6374 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6375 }
6376 resultobj = SWIG_Py_Void();
6377 return resultobj;
6378fail:
6379 return NULL__null;
6380}
6381
6382
6383SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6384 PyObject *resultobj = 0;
6385 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6386 uint32_t arg2 ;
6387 void *argp1 = 0 ;
6388 int res1 = 0 ;
6389 unsigned int val2 ;
6390 int ecode2 = 0 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393
6394 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetGroupID",&obj0,&obj1)) SWIG_failgoto fail;
6395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6396 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetGroupID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetGroupID" "', argument "
"1"" of type '" "lldb::SBAttachInfo *""'"); goto fail; } while
(0)
;
6398 }
6399 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6400 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6401 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetGroupID" "', argument " "2"" of type '" "uint32_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetGroupID"
"', argument " "2"" of type '" "uint32_t""'"); goto fail; } while
(0)
;
6403 }
6404 arg2 = static_cast< uint32_t >(val2);
6405 {
6406 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6407 (arg1)->SetGroupID(arg2);
6408 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6409 }
6410 resultobj = SWIG_Py_Void();
6411 return resultobj;
6412fail:
6413 return NULL__null;
6414}
6415
6416
6417SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetEffectiveUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6418 PyObject *resultobj = 0;
6419 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6420 void *argp1 = 0 ;
6421 int res1 = 0 ;
6422 PyObject * obj0 = 0 ;
6423 uint32_t result;
6424
6425 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetEffectiveUserID",&obj0)) SWIG_failgoto fail;
6426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6427 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetEffectiveUserID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetEffectiveUserID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6429 }
6430 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6431 {
6432 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6433 result = (uint32_t)(arg1)->GetEffectiveUserID();
6434 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6435 }
6436 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6437 return resultobj;
6438fail:
6439 return NULL__null;
6440}
6441
6442
6443SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetEffectiveGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6444 PyObject *resultobj = 0;
6445 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6446 void *argp1 = 0 ;
6447 int res1 = 0 ;
6448 PyObject * obj0 = 0 ;
6449 uint32_t result;
6450
6451 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetEffectiveGroupID",&obj0)) SWIG_failgoto fail;
6452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6453 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetEffectiveGroupID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetEffectiveGroupID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6455 }
6456 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6457 {
6458 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6459 result = (uint32_t)(arg1)->GetEffectiveGroupID();
6460 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6461 }
6462 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6463 return resultobj;
6464fail:
6465 return NULL__null;
6466}
6467
6468
6469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_EffectiveUserIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6470 PyObject *resultobj = 0;
6471 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6472 void *argp1 = 0 ;
6473 int res1 = 0 ;
6474 PyObject * obj0 = 0 ;
6475 bool result;
6476
6477 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_EffectiveUserIDIsValid",&obj0)) SWIG_failgoto fail;
6478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6479 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_EffectiveUserIDIsValid" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_EffectiveUserIDIsValid"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6481 }
6482 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6483 {
6484 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6485 result = (bool)(arg1)->EffectiveUserIDIsValid();
6486 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6487 }
6488 resultobj = SWIG_From_bool(static_cast< bool >(result));
6489 return resultobj;
6490fail:
6491 return NULL__null;
6492}
6493
6494
6495SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_EffectiveGroupIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6496 PyObject *resultobj = 0;
6497 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6498 void *argp1 = 0 ;
6499 int res1 = 0 ;
6500 PyObject * obj0 = 0 ;
6501 bool result;
6502
6503 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_EffectiveGroupIDIsValid",&obj0)) SWIG_failgoto fail;
6504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6505 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_EffectiveGroupIDIsValid" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_EffectiveGroupIDIsValid"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6507 }
6508 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6509 {
6510 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6511 result = (bool)(arg1)->EffectiveGroupIDIsValid();
6512 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6513 }
6514 resultobj = SWIG_From_bool(static_cast< bool >(result));
6515 return resultobj;
6516fail:
6517 return NULL__null;
6518}
6519
6520
6521SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetEffectiveUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6522 PyObject *resultobj = 0;
6523 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6524 uint32_t arg2 ;
6525 void *argp1 = 0 ;
6526 int res1 = 0 ;
6527 unsigned int val2 ;
6528 int ecode2 = 0 ;
6529 PyObject * obj0 = 0 ;
6530 PyObject * obj1 = 0 ;
6531
6532 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetEffectiveUserID",&obj0,&obj1)) SWIG_failgoto fail;
6533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6534 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetEffectiveUserID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetEffectiveUserID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6536 }
6537 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6538 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6539 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetEffectiveUserID" "', argument " "2"" of type '" "uint32_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetEffectiveUserID"
"', argument " "2"" of type '" "uint32_t""'"); goto fail; } while
(0)
;
6541 }
6542 arg2 = static_cast< uint32_t >(val2);
6543 {
6544 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6545 (arg1)->SetEffectiveUserID(arg2);
6546 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6547 }
6548 resultobj = SWIG_Py_Void();
6549 return resultobj;
6550fail:
6551 return NULL__null;
6552}
6553
6554
6555SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetEffectiveGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6556 PyObject *resultobj = 0;
6557 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6558 uint32_t arg2 ;
6559 void *argp1 = 0 ;
6560 int res1 = 0 ;
6561 unsigned int val2 ;
6562 int ecode2 = 0 ;
6563 PyObject * obj0 = 0 ;
6564 PyObject * obj1 = 0 ;
6565
6566 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetEffectiveGroupID",&obj0,&obj1)) SWIG_failgoto fail;
6567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6568 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetEffectiveGroupID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetEffectiveGroupID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6570 }
6571 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6572 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6573 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetEffectiveGroupID" "', argument " "2"" of type '" "uint32_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetEffectiveGroupID"
"', argument " "2"" of type '" "uint32_t""'"); goto fail; } while
(0)
;
6575 }
6576 arg2 = static_cast< uint32_t >(val2);
6577 {
6578 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6579 (arg1)->SetEffectiveGroupID(arg2);
6580 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6581 }
6582 resultobj = SWIG_Py_Void();
6583 return resultobj;
6584fail:
6585 return NULL__null;
6586}
6587
6588
6589SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetParentProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6590 PyObject *resultobj = 0;
6591 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6592 void *argp1 = 0 ;
6593 int res1 = 0 ;
6594 PyObject * obj0 = 0 ;
6595 lldb::pid_t result;
6596
6597 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetParentProcessID",&obj0)) SWIG_failgoto fail;
6598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6599 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetParentProcessID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetParentProcessID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6601 }
6602 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6603 {
6604 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6605 result = (lldb::pid_t)(arg1)->GetParentProcessID();
6606 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6607 }
6608 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
6609 return resultobj;
6610fail:
6611 return NULL__null;
6612}
6613
6614
6615SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetParentProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6616 PyObject *resultobj = 0;
6617 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6618 lldb::pid_t arg2 ;
6619 void *argp1 = 0 ;
6620 int res1 = 0 ;
6621 unsigned long long val2 ;
6622 int ecode2 = 0 ;
6623 PyObject * obj0 = 0 ;
6624 PyObject * obj1 = 0 ;
6625
6626 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetParentProcessID",&obj0,&obj1)) SWIG_failgoto fail;
6627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6628 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetParentProcessID" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetParentProcessID"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6630 }
6631 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6632 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
6633 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAttachInfo_SetParentProcessID" "', argument " "2"" of type '" "lldb::pid_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "SBAttachInfo_SetParentProcessID"
"', argument " "2"" of type '" "lldb::pid_t""'"); goto fail;
} while(0)
;
6635 }
6636 arg2 = static_cast< lldb::pid_t >(val2);
6637 {
6638 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6639 (arg1)->SetParentProcessID(arg2);
6640 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6641 }
6642 resultobj = SWIG_Py_Void();
6643 return resultobj;
6644fail:
6645 return NULL__null;
6646}
6647
6648
6649SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_ParentProcessIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6650 PyObject *resultobj = 0;
6651 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6652 void *argp1 = 0 ;
6653 int res1 = 0 ;
6654 PyObject * obj0 = 0 ;
6655 bool result;
6656
6657 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_ParentProcessIDIsValid",&obj0)) SWIG_failgoto fail;
6658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6659 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_ParentProcessIDIsValid" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_ParentProcessIDIsValid"
"', argument " "1"" of type '" "lldb::SBAttachInfo *""'"); goto
fail; } while(0)
;
6661 }
6662 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6663 {
6664 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6665 result = (bool)(arg1)->ParentProcessIDIsValid();
6666 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6667 }
6668 resultobj = SWIG_From_bool(static_cast< bool >(result));
6669 return resultobj;
6670fail:
6671 return NULL__null;
6672}
6673
6674
6675SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6676 PyObject *resultobj = 0;
6677 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6678 void *argp1 = 0 ;
6679 int res1 = 0 ;
6680 PyObject * obj0 = 0 ;
6681 lldb::SBListener result;
6682
6683 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetListener",&obj0)) SWIG_failgoto fail;
6684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6685 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_GetListener" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_GetListener" "', argument "
"1"" of type '" "lldb::SBAttachInfo *""'"); goto fail; } while
(0)
;
6687 }
6688 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6689 {
6690 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6691 result = (arg1)->GetListener();
6692 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6693 }
6694 resultobj = SWIG_NewPointerObj((new lldb::SBListener(static_cast< const lldb::SBListener& >(result))), SWIGTYPE_p_lldb__SBListener, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBListener(static_cast
< const lldb::SBListener& >(result))), swig_types[37
], 0x1 | 0)
;
6695 return resultobj;
6696fail:
6697 return NULL__null;
6698}
6699
6700
6701SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *resultobj = 0;
6703 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6704 lldb::SBListener *arg2 = 0 ;
6705 void *argp1 = 0 ;
6706 int res1 = 0 ;
6707 void *argp2 = 0 ;
6708 int res2 = 0 ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711
6712 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetListener",&obj0,&obj1)) SWIG_failgoto fail;
6713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6714 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAttachInfo_SetListener" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "SBAttachInfo_SetListener" "', argument "
"1"" of type '" "lldb::SBAttachInfo *""'"); goto fail; } while
(0)
;
6716 }
6717 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBListener, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37]
, 0, 0)
;
6719 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAttachInfo_SetListener" "', argument " "2"" of type '" "lldb::SBListener &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "SBAttachInfo_SetListener" "', argument "
"2"" of type '" "lldb::SBListener &""'"); goto fail; } while
(0)
;
6721 }
6722 if (!argp2) {
6723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAttachInfo_SetListener" "', argument " "2"" of type '" "lldb::SBListener &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "SBAttachInfo_SetListener" "', argument " "2"" of type '"
"lldb::SBListener &""'"); goto fail; } while(0)
;
6724 }
6725 arg2 = reinterpret_cast< lldb::SBListener * >(argp2);
6726 {
6727 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6728 (arg1)->SetListener(*arg2);
6729 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6730 }
6731 resultobj = SWIG_Py_Void();
6732 return resultobj;
6733fail:
6734 return NULL__null;
6735}
6736
6737
6738SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SBAttachInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6739 PyObject *resultobj = 0;
6740 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6741 void *argp1 = 0 ;
6742 int res1 = 0 ;
6743 PyObject * obj0 = 0 ;
6744
6745 if (!PyArg_ParseTuple(args,(char *)"O:delete_SBAttachInfo",&obj0)) SWIG_failgoto fail;
6746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0x1 | 0, 0)
;
6747 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SBAttachInfo" "', argument " "1"" of type '" "lldb::SBAttachInfo *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_SBAttachInfo" "', argument "
"1"" of type '" "lldb::SBAttachInfo *""'"); goto fail; } while
(0)
;
6749 }
6750 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6751 {
6752 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6753 delete arg1;
6754 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6755 }
6756 resultobj = SWIG_Py_Void();
6757 return resultobj;
6758fail:
6759 return NULL__null;
6760}
6761
6762
6763SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SBAttachInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6764 PyObject *obj;
6765 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
6766 SWIG_TypeNewClientData(SWIGTYPE_p_lldb__SBAttachInfoswig_types[9], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
6767 return SWIG_Py_Void();
6768}
6769
6770SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBBlock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6771 PyObject *resultobj = 0;
6772 lldb::SBBlock *result = 0 ;
6773
6774 if (!PyArg_ParseTuple(args,(char *)":new_SBBlock")) SWIG_failgoto fail;
6775 {
6776 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6777 result = (lldb::SBBlock *)new lldb::SBBlock();
6778 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6779 }
6780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBBlock, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
6781 return resultobj;
6782fail:
6783 return NULL__null;
6784}
6785
6786
6787SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBBlock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6788 PyObject *resultobj = 0;
6789 lldb::SBBlock *arg1 = 0 ;
6790 void *argp1 = 0 ;
6791 int res1 = 0 ;
6792 PyObject * obj0 = 0 ;
6793 lldb::SBBlock *result = 0 ;
6794
6795 if (!PyArg_ParseTuple(args,(char *)"O:new_SBBlock",&obj0)) SWIG_failgoto fail;
6796 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBBlock, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
6797 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBBlock" "', argument " "1"" of type '" "lldb::SBBlock const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_SBBlock" "', argument "
"1"" of type '" "lldb::SBBlock const &""'"); goto fail; }
while(0)
;
6799 }
6800 if (!argp1) {
6801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBBlock" "', argument " "1"" of type '" "lldb::SBBlock const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_SBBlock" "', argument " "1"" of type '" "lldb::SBBlock const &"
"'"); goto fail; } while(0)
;
6802 }
6803 arg1 = reinterpret_cast< lldb::SBBlock * >(argp1);
6804 {
6805 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6806 result = (lldb::SBBlock *)new lldb::SBBlock((lldb::SBBlock const &)*arg1);
6807 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6808 }
6809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBBlock, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
6810 return resultobj;
6811fail:
6812 return NULL__null;
6813}
6814
6815
6816SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBBlock(PyObject *self, PyObject *args) {
6817 Py_ssize_t argc;
6818 PyObject *argv[2] = {
6819 0
6820 };
6821 Py_ssize_t ii;
6822
6823 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6824 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
6825 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
6826 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6827 }
6828 if (argc == 0) {
6829 return _wrap_new_SBBlock__SWIG_0(self, args);
6830 }
6831 if (argc == 1) {
6832 int _v;
6833 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBBlock, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[10], 0, 0
)
;
6834 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6835 if (_v) {
6836 return _wrap_new_SBBlock__SWIG_1(self, args);
6837 }
6838 }
6839
6840fail:
6841 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SBBlock'.\n"
6842 " Possible C/C++ prototypes are:\n"
6843 " lldb::SBBlock::SBBlock()\n"
6844 " lldb::SBBlock::SBBlock(lldb::SBBlock const &)\n");
6845 return 0;
6846}
6847
6848
6849SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SBBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {