Bug Summary

File:build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp
Warning:line 70002, 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~svn303373/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~svn303373/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~svn303373/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~svn303373/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~svn303373/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~svn303373/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__SBTraceswig_types[61] swig_types[61]
3097#define SWIGTYPE_p_lldb__SBTraceOptionsswig_types[62] swig_types[62]
3098#define SWIGTYPE_p_lldb__SBTypeswig_types[63] swig_types[63]
3099#define SWIGTYPE_p_lldb__SBTypeCategoryswig_types[64] swig_types[64]
3100#define SWIGTYPE_p_lldb__SBTypeEnumMemberswig_types[65] swig_types[65]
3101#define SWIGTYPE_p_lldb__SBTypeEnumMemberListswig_types[66] swig_types[66]
3102#define SWIGTYPE_p_lldb__SBTypeFilterswig_types[67] swig_types[67]
3103#define SWIGTYPE_p_lldb__SBTypeFormatswig_types[68] swig_types[68]
3104#define SWIGTYPE_p_lldb__SBTypeListswig_types[69] swig_types[69]
3105#define SWIGTYPE_p_lldb__SBTypeMemberswig_types[70] swig_types[70]
3106#define SWIGTYPE_p_lldb__SBTypeMemberFunctionswig_types[71] swig_types[71]
3107#define SWIGTYPE_p_lldb__SBTypeNameSpecifierswig_types[72] swig_types[72]
3108#define SWIGTYPE_p_lldb__SBTypeSummaryswig_types[73] swig_types[73]
3109#define SWIGTYPE_p_lldb__SBTypeSummaryOptionsswig_types[74] swig_types[74]
3110#define SWIGTYPE_p_lldb__SBTypeSyntheticswig_types[75] swig_types[75]
3111#define SWIGTYPE_p_lldb__SBUnixSignalsswig_types[76] swig_types[76]
3112#define SWIGTYPE_p_lldb__SBValueswig_types[77] swig_types[77]
3113#define SWIGTYPE_p_lldb__SBValueListswig_types[78] swig_types[78]
3114#define SWIGTYPE_p_lldb__SBVariablesOptionsswig_types[79] swig_types[79]
3115#define SWIGTYPE_p_lldb__SBWatchpointswig_types[80] swig_types[80]
3116#define SWIGTYPE_p_lldb_private__SharingPtrT_lldb_private__ValueObject_tswig_types[81] swig_types[81]
3117#define SWIGTYPE_p_long_doubleswig_types[82] swig_types[82]
3118#define SWIGTYPE_p_long_longswig_types[83] swig_types[83]
3119#define SWIGTYPE_p_p_voidswig_types[84] swig_types[84]
3120#define SWIGTYPE_p_pthread_cond_tswig_types[85] swig_types[85]
3121#define SWIGTYPE_p_pthread_key_tswig_types[86] swig_types[86]
3122#define SWIGTYPE_p_pthread_mutex_tswig_types[87] swig_types[87]
3123#define SWIGTYPE_p_pthread_rwlock_tswig_types[88] swig_types[88]
3124#define SWIGTYPE_p_pthread_tswig_types[89] swig_types[89]
3125#define SWIGTYPE_p_shortswig_types[90] swig_types[90]
3126#define SWIGTYPE_p_signed_charswig_types[91] swig_types[91]
3127#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ABI_tswig_types[92] swig_types[92]
3128#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Baton_tswig_types[93] swig_types[93]
3129#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Block_tswig_types[94] swig_types[94]
3130#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointLocation_tswig_types[95] swig_types[95]
3131#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointResolver_tswig_types[96] swig_types[96]
3132#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointSite_tswig_types[97] swig_types[97]
3133#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Breakpoint_tswig_types[98] swig_types[98]
3134#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BroadcasterManager_tswig_types[99] swig_types[99]
3135#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Broadcaster_tswig_types[100] swig_types[100]
3136#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ClangASTImporter_tswig_types[101] swig_types[101]
3137#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CommandObject_tswig_types[102] swig_types[102]
3138#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Communication_tswig_types[103] swig_types[103]
3139#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CompileUnit_tswig_types[104] swig_types[104]
3140#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Connection_tswig_types[105] swig_types[105]
3141#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataBuffer_tswig_types[106] swig_types[106]
3142#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataExtractor_tswig_types[107] swig_types[107]
3143#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Debugger_tswig_types[108] swig_types[108]
3144#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Disassembler_tswig_types[109] swig_types[109]
3145#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DynamicLoader_tswig_types[110] swig_types[110]
3146#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventDataStructuredData_tswig_types[111] swig_types[111]
3147#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventData_tswig_types[112] swig_types[112]
3148#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Event_tswig_types[113] swig_types[113]
3149#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExecutionContextRef_tswig_types[114] swig_types[114]
3150#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExpressionVariable_tswig_types[115] swig_types[115]
3151#define SWIGTYPE_p_std__shared_ptrT_lldb_private__File_tswig_types[116] swig_types[116]
3152#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FuncUnwinders_tswig_types[117] swig_types[117]
3153#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FunctionCaller_tswig_types[118] swig_types[118]
3154#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Function_tswig_types[119] swig_types[119]
3155#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOHandler_tswig_types[120] swig_types[120]
3156#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOObject_tswig_types[121] swig_types[121]
3157#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IRExecutionUnit_tswig_types[122] swig_types[122]
3158#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InlineFunctionInfo_tswig_types[123] swig_types[123]
3159#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Instruction_tswig_types[124] swig_types[124]
3160#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InstrumentationRuntime_tswig_types[125] swig_types[125]
3161#define SWIGTYPE_p_std__shared_ptrT_lldb_private__JITLoader_tswig_types[126] swig_types[126]
3162#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LanguageRuntime_tswig_types[127] swig_types[127]
3163#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LineTable_tswig_types[128] swig_types[128]
3164#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Listener_tswig_types[129] swig_types[129]
3165#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryHistory_tswig_types[130] swig_types[130]
3166#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryRegionInfo_tswig_types[131] swig_types[131]
3167#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Module_tswig_types[132] swig_types[132]
3168#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[133] swig_types[133]
3169#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFile_tswig_types[134] swig_types[134]
3170#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArch_tswig_types[135] swig_types[135]
3171#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArgs_tswig_types[136] swig_types[136]
3172#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArray_tswig_types[137] swig_types[137]
3173#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueBoolean_tswig_types[138] swig_types[138]
3174#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueDictionary_tswig_types[139] swig_types[139]
3175#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_tswig_types[140] swig_types[140]
3176#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpec_tswig_types[141] swig_types[141]
3177#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFormat_tswig_types[142] swig_types[142]
3178#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValuePathMappings_tswig_types[143] swig_types[143]
3179#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueProperties_tswig_types[144] swig_types[144]
3180#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueRegex_tswig_types[145] swig_types[145]
3181#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueSInt64_tswig_types[146] swig_types[146]
3182#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueString_tswig_types[147] swig_types[147]
3183#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUInt64_tswig_types[148] swig_types[148]
3184#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUUID_tswig_types[149] swig_types[149]
3185#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValue_tswig_types[150] swig_types[150]
3186#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Platform_tswig_types[151] swig_types[151]
3187#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessAttachInfo_tswig_types[152] swig_types[152]
3188#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_tswig_types[153] swig_types[153]
3189#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Process_tswig_types[154] swig_types[154]
3190#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Property_tswig_types[155] swig_types[155]
3191#define SWIGTYPE_p_std__shared_ptrT_lldb_private__QueueItem_tswig_types[156] swig_types[156]
3192#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_tswig_types[157] swig_types[157]
3193#define SWIGTYPE_p_std__shared_ptrT_lldb_private__REPL_tswig_types[158] swig_types[158]
3194#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterCheckpoint_tswig_types[159] swig_types[159]
3195#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterContext_tswig_types[160] swig_types[160]
3196#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegularExpression_tswig_types[161] swig_types[161]
3197#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptInterpreter_tswig_types[162] swig_types[162]
3198#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_tswig_types[163] swig_types[163]
3199#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_tswig_types[164] swig_types[164]
3200#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SearchFilter_tswig_types[165] swig_types[165]
3201#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SectionLoadList_tswig_types[166] swig_types[166]
3202#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Section_tswig_types[167] swig_types[167]
3203#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Settings_tswig_types[168] swig_types[168]
3204#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameList_tswig_types[169] swig_types[169]
3205#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrame_tswig_types[170] swig_types[170]
3206#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StopInfo_tswig_types[171] swig_types[171]
3207#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StoppointLocation_tswig_types[172] swig_types[172]
3208#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StreamFile_tswig_types[173] swig_types[173]
3209#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Stream_tswig_types[174] swig_types[174]
3210#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StringSummaryFormat_tswig_types[175] swig_types[175]
3211#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StructuredDataPlugin_tswig_types[176] swig_types[176]
3212#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_tswig_types[177] swig_types[177]
3213#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFileType_tswig_types[178] swig_types[178]
3214#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFile_tswig_types[179] swig_types[179]
3215#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_tswig_types[180] swig_types[180]
3216#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildren_tswig_types[181] swig_types[181]
3217#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SystemRuntime_tswig_types[182] swig_types[182]
3218#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TargetProperties_tswig_types[183] swig_types[183]
3219#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Target_tswig_types[184] swig_types[184]
3220#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadCollection_tswig_types[185] swig_types[185]
3221#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlanTracer_tswig_types[186] swig_types[186]
3222#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlan_tswig_types[187] swig_types[187]
3223#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Thread_tswig_types[188] swig_types[188]
3224#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TraceOptions_tswig_types[189] swig_types[189]
3225#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeCategoryImpl_tswig_types[190] swig_types[190]
3226#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeEnumMemberImpl_tswig_types[191] swig_types[191]
3227#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFilterImpl_tswig_types[192] swig_types[192]
3228#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFormatImpl_tswig_types[193] swig_types[193]
3229#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeImpl_tswig_types[194] swig_types[194]
3230#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeMemberFunctionImpl_tswig_types[195] swig_types[195]
3231#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeNameSpecifierImpl_tswig_types[196] swig_types[196]
3232#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryImpl_tswig_types[197] swig_types[197]
3233#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryOptions_tswig_types[198] swig_types[198]
3234#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSystem_tswig_types[199] swig_types[199]
3235#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeValidatorImpl_tswig_types[200] swig_types[200]
3236#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Type_tswig_types[201] swig_types[201]
3237#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnixSignals_tswig_types[202] swig_types[202]
3238#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindAssembly_tswig_types[203] swig_types[203]
3239#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindPlan_tswig_types[204] swig_types[204]
3240#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UserExpression_tswig_types[205] swig_types[205]
3241#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UtilityFunction_tswig_types[206] swig_types[206]
3242#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueList_tswig_types[207] swig_types[207]
3243#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObjectList_tswig_types[208] swig_types[208]
3244#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Value_tswig_types[209] swig_types[209]
3245#define SWIGTYPE_p_std__shared_ptrT_lldb_private__VariableList_tswig_types[210] swig_types[210]
3246#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Variable_tswig_types[211] swig_types[211]
3247#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Watchpoint_tswig_types[212] swig_types[212]
3248#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangASTContext_tswig_types[213] swig_types[213]
3249#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangModulesDeclVendor_tswig_types[214] swig_types[214]
3250#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangPersistentVariables_tswig_types[215] swig_types[215]
3251#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicCheckerFunctions_tswig_types[216] swig_types[216]
3252#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicLoader_tswig_types[217] swig_types[217]
3253#define SWIGTYPE_p_std__unique_ptrT_lldb_private__GoASTContext_tswig_types[218] swig_types[218]
3254#define SWIGTYPE_p_std__unique_ptrT_lldb_private__JITLoaderList_tswig_types[219] swig_types[219]
3255#define SWIGTYPE_p_std__unique_ptrT_lldb_private__MemoryRegionInfo_tswig_types[220] swig_types[220]
3256#define SWIGTYPE_p_std__unique_ptrT_lldb_private__OperatingSystem_tswig_types[221] swig_types[221]
3257#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ScriptInterpreter_tswig_types[222] swig_types[222]
3258#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SectionList_tswig_types[223] swig_types[223]
3259#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SourceManager_tswig_types[224] swig_types[224]
3260#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StackFrame_tswig_types[225] swig_types[225]
3261#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StructuredDataImpl_tswig_types[226] swig_types[226]
3262#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SymbolVendor_tswig_types[227] swig_types[227]
3263#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SystemRuntime_tswig_types[228] swig_types[228]
3264#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointLocation_tswig_types[229] swig_types[229]
3265#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointSite_tswig_types[230] swig_types[230]
3266#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Breakpoint_tswig_types[231] swig_types[231]
3267#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BroadcasterManager_tswig_types[232] swig_types[232]
3268#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Debugger_tswig_types[233] swig_types[233]
3269#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Listener_tswig_types[234] swig_types[234]
3270#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Module_tswig_types[235] swig_types[235]
3271#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[236] swig_types[236]
3272#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFile_tswig_types[237] swig_types[237]
3273#define SWIGTYPE_p_std__weak_ptrT_lldb_private__OptionValue_tswig_types[238] swig_types[238]
3274#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Process_tswig_types[239] swig_types[239]
3275#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Queue_tswig_types[240] swig_types[240]
3276#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Section_tswig_types[241] swig_types[241]
3277#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StackFrame_tswig_types[242] swig_types[242]
3278#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Stream_tswig_types[243] swig_types[243]
3279#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StructuredDataPlugin_tswig_types[244] swig_types[244]
3280#define SWIGTYPE_p_std__weak_ptrT_lldb_private__SymbolFileType_tswig_types[245] swig_types[245]
3281#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Target_tswig_types[246] swig_types[246]
3282#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Thread_tswig_types[247] swig_types[247]
3283#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Type_tswig_types[248] swig_types[248]
3284#define SWIGTYPE_p_std__weak_ptrT_lldb_private__UnixSignals_tswig_types[249] swig_types[249]
3285#define SWIGTYPE_p_unsigned_charswig_types[250] swig_types[250]
3286#define SWIGTYPE_p_unsigned_intswig_types[251] swig_types[251]
3287#define SWIGTYPE_p_unsigned_long_longswig_types[252] swig_types[252]
3288#define SWIGTYPE_p_unsigned_shortswig_types[253] swig_types[253]
3289#define SWIGTYPE_p_voidswig_types[254] swig_types[254]
3290static swig_type_info *swig_types[256];
3291static swig_module_info swig_module = {swig_types, 255, 0, 0, 0, 0};
3292#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3293#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3294
3295/* -------- TYPES TABLE (END) -------- */
3296
3297#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
3298# if !defined(SWIG_PYTHON_CLASSIC)
3299# error "This python version requires swig to be run with the '-classic' option"
3300# endif
3301#endif
3302
3303/*-----------------------------------------------
3304 @(target):= _lldb.so
3305 ------------------------------------------------*/
3306#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3307# define SWIG_initinit_lldb PyInit__lldb
3308
3309#else
3310# define SWIG_initinit_lldb init_lldb
3311
3312#endif
3313#define SWIG_name"_lldb" "_lldb"
3314
3315#define SWIGVERSION0x030010 0x030010
3316#define SWIG_VERSION0x030010 SWIGVERSION0x030010
3317
3318
3319#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
3320#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))
3321
3322
3323#include <stdexcept>
3324
3325
3326namespace swig {
3327 class SwigPtr_PyObject {
3328 protected:
3329 PyObject *_obj;
3330
3331 public:
3332 SwigPtr_PyObject() :_obj(0)
3333 {
3334 }
3335
3336 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3337 {
3338 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3339 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3340 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3341 }
3342
3343 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3344 {
3345 if (initial_ref) {
3346 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3347 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3348 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3349 }
3350 }
3351
3352 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3353 {
3354 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3355 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3356 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)
;
3357 _obj = item._obj;
3358 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3359 return *this;
3360 }
3361
3362 ~SwigPtr_PyObject()
3363 {
3364 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3365 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)
;
3366 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3367 }
3368
3369 operator PyObject *() const
3370 {
3371 return _obj;
3372 }
3373
3374 PyObject *operator->() const
3375 {
3376 return _obj;
3377 }
3378 };
3379}
3380
3381
3382namespace swig {
3383 struct SwigVar_PyObject : SwigPtr_PyObject {
3384 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3385
3386 SwigVar_PyObject & operator = (PyObject* obj)
3387 {
3388 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)
;
3389 _obj = obj;
3390 return *this;
3391 }
3392 };
3393}
3394
3395
3396#include <algorithm>
3397#include <string>
3398
3399
3400#include "lldb/lldb-public.h"
3401#include "lldb/API/SBAddress.h"
3402#include "lldb/API/SBAttachInfo.h"
3403#include "lldb/API/SBBlock.h"
3404#include "lldb/API/SBBreakpoint.h"
3405#include "lldb/API/SBBreakpointLocation.h"
3406#include "lldb/API/SBBroadcaster.h"
3407#include "lldb/API/SBCommandInterpreter.h"
3408#include "lldb/API/SBCommandReturnObject.h"
3409#include "lldb/API/SBCommunication.h"
3410#include "lldb/API/SBCompileUnit.h"
3411#include "lldb/API/SBData.h"
3412#include "lldb/API/SBDebugger.h"
3413#include "lldb/API/SBDeclaration.h"
3414#include "lldb/API/SBError.h"
3415#include "lldb/API/SBEvent.h"
3416#include "lldb/API/SBExecutionContext.h"
3417#include "lldb/API/SBExpressionOptions.h"
3418#include "lldb/API/SBFileSpec.h"
3419#include "lldb/API/SBFileSpecList.h"
3420#include "lldb/API/SBFrame.h"
3421#include "lldb/API/SBFunction.h"
3422#include "lldb/API/SBHostOS.h"
3423#include "lldb/API/SBInstruction.h"
3424#include "lldb/API/SBInstructionList.h"
3425#include "lldb/API/SBLanguageRuntime.h"
3426#include "lldb/API/SBLaunchInfo.h"
3427#include "lldb/API/SBLineEntry.h"
3428#include "lldb/API/SBListener.h"
3429#include "lldb/API/SBMemoryRegionInfo.h"
3430#include "lldb/API/SBMemoryRegionInfoList.h"
3431#include "lldb/API/SBModule.h"
3432#include "lldb/API/SBModuleSpec.h"
3433#include "lldb/API/SBPlatform.h"
3434#include "lldb/API/SBProcess.h"
3435#include "lldb/API/SBQueue.h"
3436#include "lldb/API/SBQueueItem.h"
3437#include "lldb/API/SBSection.h"
3438#include "lldb/API/SBSourceManager.h"
3439#include "lldb/API/SBStream.h"
3440#include "lldb/API/SBStringList.h"
3441#include "lldb/API/SBStructuredData.h"
3442#include "lldb/API/SBSymbol.h"
3443#include "lldb/API/SBSymbolContext.h"
3444#include "lldb/API/SBSymbolContextList.h"
3445#include "lldb/API/SBTarget.h"
3446#include "lldb/API/SBThread.h"
3447#include "lldb/API/SBThreadCollection.h"
3448#include "lldb/API/SBThreadPlan.h"
3449#include "lldb/API/SBTrace.h"
3450#include "lldb/API/SBTraceOptions.h"
3451#include "lldb/API/SBType.h"
3452#include "lldb/API/SBTypeCategory.h"
3453#include "lldb/API/SBTypeEnumMember.h"
3454#include "lldb/API/SBTypeFilter.h"
3455#include "lldb/API/SBTypeFormat.h"
3456#include "lldb/API/SBTypeNameSpecifier.h"
3457#include "lldb/API/SBTypeSummary.h"
3458#include "lldb/API/SBTypeSynthetic.h"
3459#include "lldb/API/SBValue.h"
3460#include "lldb/API/SBValueList.h"
3461#include "lldb/API/SBVariablesOptions.h"
3462#include "lldb/API/SBWatchpoint.h"
3463#include "lldb/API/SBUnixSignals.h"
3464
3465#include "../source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h"
3466
3467#include "../scripts/Python/python-swigsafecast.swig"
3468
3469
3470#include <stdint.h> // Use the C99 official header
3471
3472
3473SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3474 SWIG_From_int (int value)
3475{
3476 return PyInt_FromLong((long) value);
3477}
3478
3479
3480SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3481 SWIG_From_unsigned_SS_int (unsigned int value)
3482{
3483 return PyInt_FromSize_t((size_t) value);
3484}
3485
3486
3487#include <limits.h>
3488#if !defined(SWIG_NO_LLONG_MAX)
3489# if !defined(LLONG_MAX9223372036854775807LL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3490# define LLONG_MAX9223372036854775807LL __LONG_LONG_MAX__9223372036854775807LL
3491# define LLONG_MIN(-9223372036854775807LL -1LL) (-LLONG_MAX9223372036854775807LL - 1LL)
3492# define ULLONG_MAX(9223372036854775807LL*2ULL+1ULL) (LLONG_MAX9223372036854775807LL * 2ULL + 1ULL)
3493# endif
3494#endif
3495
3496
3497#if defined(LLONG_MAX9223372036854775807LL) && !defined(SWIG_LONG_LONG_AVAILABLE)
3498# define SWIG_LONG_LONG_AVAILABLE
3499#endif
3500
3501
3502#ifdef SWIG_LONG_LONG_AVAILABLE
3503SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3504SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
3505{
3506 return (value > LONG_MAX9223372036854775807L) ?
3507 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
3508}
3509#endif
3510
3511
3512SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3513SWIG_pchar_descriptor(void)
3514{
3515 static int init = 0;
3516 static swig_type_info* info = 0;
3517 if (!init) {
3518 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3519 init = 1;
3520 }
3521 return info;
3522}
3523
3524
3525SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3526SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3527{
3528 if (carray) {
3529 if (size > INT_MAX2147483647) {
3530 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3531 return pchar_descriptor ?
3532 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3533 } else {
3534#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3535#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3536 return PyBytes_FromStringAndSizePyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3537#else
3538#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03010000
3539 return PyUnicode_DecodeUTF8PyUnicodeUCS4_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
3540#else
3541 return PyUnicode_FromStringAndSizePyUnicodeUCS4_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3542#endif
3543#endif
3544#else
3545 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3546#endif
3547 }
3548 } else {
3549 return SWIG_Py_Void();
3550 }
3551}
3552
3553
3554SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3555SWIG_FromCharPtr(const char *cptr)
3556{
3557 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3558}
3559
3560
3561SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3562 SWIG_From_bool (bool value)
3563{
3564 return PyBool_FromLong(value ? 1 : 0);
3565}
3566
3567
3568SWIGINTERNstatic __attribute__ ((__unused__)) int
3569SWIG_AsVal_double (PyObject *obj, double *val)
3570{
3571 int res = SWIG_TypeError-5;
3572 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3573 if (val) *val = PyFloat_AsDouble(obj);
3574 return SWIG_OK(0);
3575#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3576 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3577 if (val) *val = PyInt_AsLong(obj);
3578 return SWIG_OK(0);
3579#endif
3580 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3581 double v = PyLong_AsDouble(obj);
3582 if (!PyErr_Occurred()) {
3583 if (val) *val = v;
3584 return SWIG_OK(0);
3585 } else {
3586 PyErr_Clear();
3587 }
3588 }
3589#ifdef SWIG_PYTHON_CAST_MODE
3590 {
3591 int dispatch = 0;
3592 double d = PyFloat_AsDouble(obj);
3593 if (!PyErr_Occurred()) {
3594 if (val) *val = d;
3595 return SWIG_AddCast(SWIG_OK)((0));
3596 } else {
3597 PyErr_Clear();
3598 }
3599 if (!dispatch) {
3600 long v = PyLong_AsLong(obj);
3601 if (!PyErr_Occurred()) {
3602 if (val) *val = v;
3603 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3604 } else {
3605 PyErr_Clear();
3606 }
3607 }
3608 }
3609#endif
3610 return res;
3611}
3612
3613
3614#include <float.h>
3615
3616
3617#include <math.h>
3618
3619
3620SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3621SWIG_CanCastAsInteger(double *d, double min, double max) {
3622 double x = *d;
3623 if ((min <= x && x <= max)) {
3624 double fx = floor(x);
3625 double cx = ceil(x);
3626 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3627 if ((errno(*__errno_location ()) == EDOM33) || (errno(*__errno_location ()) == ERANGE34)) {
3628 errno(*__errno_location ()) = 0;
3629 } else {
3630 double summ, reps, diff;
3631 if (rd < x) {
3632 diff = x - rd;
3633 } else if (rd > x) {
3634 diff = rd - x;
3635 } else {
3636 return 1;
3637 }
3638 summ = rd + x;
3639 reps = diff/summ;
3640 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3641 *d = rd;
3642 return 1;
3643 }
3644 }
3645 }
3646 return 0;
3647}
3648
3649
3650SWIGINTERNstatic __attribute__ ((__unused__)) int
3651SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3652{
3653#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3654 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3655 long v = PyInt_AsLong(obj);
3656 if (v >= 0) {
3657 if (val) *val = v;
3658 return SWIG_OK(0);
3659 } else {
3660 return SWIG_OverflowError-7;
3661 }
3662 } else
3663#endif
3664 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3665 unsigned long v = PyLong_AsUnsignedLong(obj);
3666 if (!PyErr_Occurred()) {
3667 if (val) *val = v;
3668 return SWIG_OK(0);
3669 } else {
3670 PyErr_Clear();
3671 return SWIG_OverflowError-7;
3672 }
3673 }
3674#ifdef SWIG_PYTHON_CAST_MODE
3675 {
3676 int dispatch = 0;
3677 unsigned long v = PyLong_AsUnsignedLong(obj);
3678 if (!PyErr_Occurred()) {
3679 if (val) *val = v;
3680 return SWIG_AddCast(SWIG_OK)((0));
3681 } else {
3682 PyErr_Clear();
3683 }
3684 if (!dispatch) {
3685 double d;
3686 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3687 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3688 if (val) *val = (unsigned long)(d);
3689 return res;
3690 }
3691 }
3692 }
3693#endif
3694 return SWIG_TypeError-5;
3695}
3696
3697
3698#ifdef SWIG_LONG_LONG_AVAILABLE
3699SWIGINTERNstatic __attribute__ ((__unused__)) int
3700SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
3701{
3702 int res = SWIG_TypeError-5;
3703 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3704 unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3705 if (!PyErr_Occurred()) {
3706 if (val) *val = v;
3707 return SWIG_OK(0);
3708 } else {
3709 PyErr_Clear();
3710 res = SWIG_OverflowError-7;
3711 }
3712 } else {
3713 unsigned long v;
3714 res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3715 if (SWIG_IsOK(res)(res >= 0)) {
3716 if (val) *val = v;
3717 return res;
3718 }
3719 }
3720#ifdef SWIG_PYTHON_CAST_MODE
3721 {
3722 const double mant_max = 1LL << DBL_MANT_DIG53;
3723 double d;
3724 res = SWIG_AsVal_double (obj,&d);
3725 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3726 if (val) *val = (unsigned long long)(d);
3727 return SWIG_AddCast(res)(res);
3728 }
3729 res = SWIG_TypeError-5;
3730 }
3731#endif
3732 return res;
3733}
3734#endif
3735
3736
3737SWIGINTERNstatic __attribute__ ((__unused__)) int
3738SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
3739{
3740 unsigned long v;
3741 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3742 if (SWIG_IsOK(res)(res >= 0)) {
3743 if ((v > UINT_MAX(2147483647 *2U +1U))) {
3744 return SWIG_OverflowError-7;
3745 } else {
3746 if (val) *val = static_cast< unsigned int >(v);
3747 }
3748 }
3749 return res;
3750}
3751
3752SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBAddress___str__(lldb::SBAddress *self){
3753 lldb::SBStream description;
3754 self->GetDescription (description);
3755 const char *desc = description.GetData();
3756 size_t desc_len = description.GetSize();
3757 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
3758 --desc_len;
3759 if (desc_len > 0)
3760 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
3761 else
3762 return lldb_private::PythonString("").release();
3763 }
3764
3765SWIGINTERNstatic __attribute__ ((__unused__)) int
3766SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3767{
3768#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3769#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3770 if (PyBytes_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3771#else
3772 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3773#endif
3774#else
3775 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3776#endif
3777 {
3778 char *cstr; Py_ssize_t len;
3779#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3780#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3781 if (!alloc && cptr) {
3782 /* We can't allow converting without allocation, since the internal
3783 representation of string in Python 3 is UCS-2/UCS-4 but we require
3784 a UTF-8 representation.
3785 TODO(bhy) More detailed explanation */
3786 return SWIG_RuntimeError-3;
3787 }
3788 obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj);
3789 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3790#endif
3791 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3792#else
3793 PyString_AsStringAndSize(obj, &cstr, &len);
3794#endif
3795 if (cptr) {
3796 if (alloc) {
3797 /*
3798 In python the user should not be able to modify the inner
3799 string representation. To warranty that, if you define
3800 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3801 buffer is always returned.
3802
3803 The default behavior is just to return the pointer value,
3804 so, be careful.
3805 */
3806#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3807 if (*alloc != SWIG_OLDOBJ((0)))
3808#else
3809 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3810#endif
3811 {
3812 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3813 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3814 } else {
3815 *cptr = cstr;
3816 *alloc = SWIG_OLDOBJ((0));
3817 }
3818 } else {
3819#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3820#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3821 *cptr = PyBytes_AsStringPyString_AsString(obj);
3822#else
3823 assert(0)((0) ? static_cast<void> (0) : __assert_fail ("0", "/tmp/buildd/llvm-toolchain-snapshot-5.0~svn303373/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 3823, __PRETTY_FUNCTION__))
; /* Should never reach here with Unicode strings in Python 3 */
3824#endif
3825#else
3826 *cptr = SWIG_Python_str_AsChar(obj);
3827#endif
3828 }
3829 }
3830 if (psize) *psize = len + 1;
3831#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3832 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)
;
3833#endif
3834 return SWIG_OK(0);
3835 } else {
3836#if defined(SWIG_PYTHON_2_UNICODE)
3837#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3838#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3839#endif
3840#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
<0x03000000
3841 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
) {
3842 char *cstr; Py_ssize_t len;
3843 if (!alloc && cptr) {
3844 return SWIG_RuntimeError-3;
3845 }
3846 obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj);
3847 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3848 if (cptr) {
3849 if (alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3850 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3851 }
3852 if (psize) *psize = len + 1;
3853
3854 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)
;
3855 return SWIG_OK(0);
3856 } else {
3857 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)
;
3858 }
3859 }
3860#endif
3861#endif
3862
3863 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3864 if (pchar_descriptor) {
3865 void* vptr = 0;
3866 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3867 if (cptr) *cptr = (char *) vptr;
3868 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3869 if (alloc) *alloc = SWIG_OLDOBJ((0));
3870 return SWIG_OK(0);
3871 }
3872 }
3873 }
3874 return SWIG_TypeError-5;
3875}
3876
3877
3878
3879
3880
3881SWIGINTERNstatic __attribute__ ((__unused__)) int
3882SWIG_AsVal_long (PyObject *obj, long* val)
3883{
3884#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3885 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3886 if (val) *val = PyInt_AsLong(obj);
3887 return SWIG_OK(0);
3888 } else
3889#endif
3890 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3891 long v = PyLong_AsLong(obj);
3892 if (!PyErr_Occurred()) {
3893 if (val) *val = v;
3894 return SWIG_OK(0);
3895 } else {
3896 PyErr_Clear();
3897 return SWIG_OverflowError-7;
3898 }
3899 }
3900#ifdef SWIG_PYTHON_CAST_MODE
3901 {
3902 int dispatch = 0;
3903 long v = PyInt_AsLong(obj);
3904 if (!PyErr_Occurred()) {
3905 if (val) *val = v;
3906 return SWIG_AddCast(SWIG_OK)((0));
3907 } else {
3908 PyErr_Clear();
3909 }
3910 if (!dispatch) {
3911 double d;
3912 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3913 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3914 if (val) *val = (long)(d);
3915 return res;
3916 }
3917 }
3918 }
3919#endif
3920 return SWIG_TypeError-5;
3921}
3922
3923
3924SWIGINTERNstatic __attribute__ ((__unused__)) int
3925SWIG_AsVal_bool (PyObject *obj, bool *val)
3926{
3927 int r;
3928 if (!PyBool_Check(obj)((((PyObject*)(obj))->ob_type) == &PyBool_Type))
3929 return SWIG_ERROR(-1);
3930 r = PyObject_IsTrue(obj);
3931 if (r == -1)
3932 return SWIG_ERROR(-1);
3933 if (val) *val = r ? true : false;
3934 return SWIG_OK(0);
3935}
3936
3937
3938SWIGINTERNstatic __attribute__ ((__unused__)) int
3939SWIG_AsVal_int (PyObject * obj, int *val)
3940{
3941 long v;
3942 int res = SWIG_AsVal_long (obj, &v);
3943 if (SWIG_IsOK(res)(res >= 0)) {
3944 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3945 return SWIG_OverflowError-7;
3946 } else {
3947 if (val) *val = static_cast< int >(v);
3948 }
3949 }
3950 return res;
3951}
3952
3953SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBlock___str__(lldb::SBBlock *self){
3954 lldb::SBStream description;
3955 self->GetDescription (description);
3956 const char *desc = description.GetData();
3957 size_t desc_len = description.GetSize();
3958 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
3959 --desc_len;
3960 if (desc_len > 0)
3961 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
3962 else
3963 return lldb_private::PythonString("").release();
3964 }
3965
3966 #define SWIG_From_longPyInt_FromLong PyInt_FromLong
3967
3968
3969SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3970SWIG_From_unsigned_SS_long (unsigned long value)
3971{
3972 return (value > LONG_MAX9223372036854775807L) ?
3973 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
3974}
3975
3976
3977SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3978SWIG_From_size_t (size_t value)
3979{
3980#ifdef SWIG_LONG_LONG_AVAILABLE
3981 if (sizeof(size_t) <= sizeof(unsigned long)) {
3982#endif
3983 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3984#ifdef SWIG_LONG_LONG_AVAILABLE
3985 } else {
3986 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
3987 return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value));
3988 }
3989#endif
3990}
3991
3992SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpoint___str__(lldb::SBBreakpoint *self){
3993 lldb::SBStream description;
3994 self->GetDescription (description);
3995 const char *desc = description.GetData();
3996 size_t desc_len = description.GetSize();
3997 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
3998 --desc_len;
3999 if (desc_len > 0)
4000 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4001 else
4002 return lldb_private::PythonString("").release();
4003 }
4004
4005SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
4006SWIG_AsVal_size_t (PyObject * obj, size_t *val)
4007{
4008 int res = SWIG_TypeError-5;
4009#ifdef SWIG_LONG_LONG_AVAILABLE
4010 if (sizeof(size_t) <= sizeof(unsigned long)) {
4011#endif
4012 unsigned long v;
4013 res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
4014 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
4015#ifdef SWIG_LONG_LONG_AVAILABLE
4016 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
4017 unsigned long long v;
4018 res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
4019 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
4020 }
4021#endif
4022 return res;
4023}
4024
4025SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpointLocation___str__(lldb::SBBreakpointLocation *self){
4026 lldb::SBStream description;
4027 self->GetDescription (description, lldb::eDescriptionLevelFull);
4028 const char *desc = description.GetData();
4029 size_t desc_len = description.GetSize();
4030 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4031 --desc_len;
4032 if (desc_len > 0)
4033 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4034 else
4035 return lldb_private::PythonString("").release();
4036 }
4037
4038SWIGINTERNstatic __attribute__ ((__unused__)) int
4039SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
4040{
4041 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ((0));
4042 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
4043 if (SWIG_IsOK(res)(res >= 0)) {
4044 /* special case of single char conversion when we don't need space for NUL */
4045 if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
4046 if (csize <= size) {
4047 if (val) {
4048 if (csize) memcpy(val, cptr, csize*sizeof(char));
4049 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
4050 }
4051 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) {
4052 delete[] cptr;
4053 res = SWIG_DelNewMask(res)((res >= 0) ? (res & ~((1 << 8) << 1)) : res
)
;
4054 }
4055 return res;
4056 }
4057 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] cptr;
4058 }
4059 return SWIG_TypeError-5;
4060}
4061
4062
4063SWIGINTERNstatic __attribute__ ((__unused__)) int
4064SWIG_AsVal_char (PyObject * obj, char *val)
4065{
4066 int res = SWIG_AsCharArray(obj, val, 1);
4067 if (!SWIG_IsOK(res)(res >= 0)) {
4068 long v;
4069 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v))(SWIG_AsVal_long (obj, &v));
4070 if (SWIG_IsOK(res)(res >= 0)) {
4071 if ((CHAR_MIN(-127 -1) <= v) && (v <= CHAR_MAX127)) {
4072 if (val) *val = static_cast< char >(v);
4073 } else {
4074 res = SWIG_OverflowError-7;
4075 }
4076 }
4077 }
4078 return res;
4079}
4080
4081SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateOutputFile(lldb::SBCommandReturnObject *self,FILE *fh){
4082 self->SetImmediateOutputFile(fh, true);
4083 }
4084SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateErrorFile(lldb::SBCommandReturnObject *self,FILE *fh){
4085 self->SetImmediateErrorFile(fh, true);
4086 }
4087SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_Print(lldb::SBCommandReturnObject *self,char const *str){
4088 self->Printf("%s", str);
4089 }
4090SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCommandReturnObject___str__(lldb::SBCommandReturnObject *self){
4091 lldb::SBStream description;
4092 self->GetDescription (description);
4093 const char *desc = description.GetData();
4094 size_t desc_len = description.GetSize();
4095 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4096 --desc_len;
4097 if (desc_len > 0)
4098 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4099 else
4100 return lldb_private::PythonString("").release();
4101 }
4102SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_write(lldb::SBCommandReturnObject *self,char const *str){
4103 if (str)
4104 self->Printf("%s",str);
4105 }
4106SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_flush(lldb::SBCommandReturnObject *self){}
4107SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCompileUnit___str__(lldb::SBCompileUnit *self){
4108 lldb::SBStream description;
4109 self->GetDescription (description);
4110 const char *desc = description.GetData();
4111 size_t desc_len = description.GetSize();
4112 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4113 --desc_len;
4114 if (desc_len > 0)
4115 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4116 else
4117 return lldb_private::PythonString("").release();
4118 }
4119
4120SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4121SWIG_From_unsigned_SS_char (unsigned char value)
4122{
4123 return SWIG_From_unsigned_SS_long (value);
4124}
4125
4126
4127SWIGINTERNstatic __attribute__ ((__unused__)) int
4128SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
4129{
4130 unsigned long v;
4131 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
4132 if (SWIG_IsOK(res)(res >= 0)) {
4133 if ((v > UCHAR_MAX(127*2 +1))) {
4134 return SWIG_OverflowError-7;
4135 } else {
4136 if (val) *val = static_cast< unsigned char >(v);
4137 }
4138 }
4139 return res;
4140}
4141
4142
4143 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
4144
4145
4146SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4147SWIG_From_float (float value)
4148{
4149 return SWIG_From_doublePyFloat_FromDouble (value);
4150}
4151
4152
4153SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4154SWIG_From_unsigned_SS_short (unsigned short value)
4155{
4156 return SWIG_From_unsigned_SS_long (value);
4157}
4158
4159
4160SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4161SWIG_From_signed_SS_char (signed char value)
4162{
4163 return SWIG_From_longPyInt_FromLong (value);
4164}
4165
4166
4167SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4168SWIG_From_short (short value)
4169{
4170 return SWIG_From_longPyInt_FromLong (value);
4171}
4172
4173
4174#ifdef SWIG_LONG_LONG_AVAILABLE
4175SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
4176SWIG_From_long_SS_long (long long value)
4177{
4178 return ((value < LONG_MIN(-9223372036854775807L -1L)) || (value > LONG_MAX9223372036854775807L)) ?
4179 PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value));
4180}
4181#endif
4182
4183SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBData___str__(lldb::SBData *self){
4184 lldb::SBStream description;
4185 self->GetDescription (description);
4186 const char *desc = description.GetData();
4187 size_t desc_len = description.GetSize();
4188 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4189 --desc_len;
4190 if (desc_len > 0)
4191 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4192 else
4193 return lldb_private::PythonString("").release();
4194 }
4195SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDebugger___str__(lldb::SBDebugger *self){
4196 lldb::SBStream description;
4197 self->GetDescription (description);
4198 const char *desc = description.GetData();
4199 size_t desc_len = description.GetSize();
4200 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4201 --desc_len;
4202 if (desc_len > 0)
4203 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4204 else
4205 return lldb_private::PythonString("").release();
4206 }
4207SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDeclaration___str__(lldb::SBDeclaration *self){
4208 lldb::SBStream description;
4209 self->GetDescription (description);
4210 const char *desc = description.GetData();
4211 size_t desc_len = description.GetSize();
4212 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4213 --desc_len;
4214 if (desc_len > 0)
4215 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4216 else
4217 return lldb_private::PythonString("").release();
4218 }
4219SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBError___str__(lldb::SBError *self){
4220 lldb::SBStream description;
4221 self->GetDescription (description);
4222 const char *desc = description.GetData();
4223 size_t desc_len = description.GetSize();
4224 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4225 --desc_len;
4226 if (desc_len > 0)
4227 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4228 else
4229 return lldb_private::PythonString("").release();
4230 }
4231SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFileSpec___str__(lldb::SBFileSpec *self){
4232 lldb::SBStream description;
4233 self->GetDescription (description);
4234 const char *desc = description.GetData();
4235 size_t desc_len = description.GetSize();
4236 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4237 --desc_len;
4238 if (desc_len > 0)
4239 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4240 else
4241 return lldb_private::PythonString("").release();
4242 }
4243SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFrame___str__(lldb::SBFrame *self){
4244 lldb::SBStream description;
4245 self->GetDescription (description);
4246 const char *desc = description.GetData();
4247 size_t desc_len = description.GetSize();
4248 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4249 --desc_len;
4250 if (desc_len > 0)
4251 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4252 else
4253 return lldb_private::PythonString("").release();
4254 }
4255SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFunction___str__(lldb::SBFunction *self){
4256 lldb::SBStream description;
4257 self->GetDescription (description);
4258 const char *desc = description.GetData();
4259 size_t desc_len = description.GetSize();
4260 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4261 --desc_len;
4262 if (desc_len > 0)
4263 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4264 else
4265 return lldb_private::PythonString("").release();
4266 }
4267SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstruction___str__(lldb::SBInstruction *self){
4268 lldb::SBStream description;
4269 self->GetDescription (description);
4270 const char *desc = description.GetData();
4271 size_t desc_len = description.GetSize();
4272 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4273 --desc_len;
4274 if (desc_len > 0)
4275 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4276 else
4277 return lldb_private::PythonString("").release();
4278 }
4279SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstructionList___str__(lldb::SBInstructionList *self){
4280 lldb::SBStream description;
4281 self->GetDescription (description);
4282 const char *desc = description.GetData();
4283 size_t desc_len = description.GetSize();
4284 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4285 --desc_len;
4286 if (desc_len > 0)
4287 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4288 else
4289 return lldb_private::PythonString("").release();
4290 }
4291SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBLineEntry___str__(lldb::SBLineEntry *self){
4292 lldb::SBStream description;
4293 self->GetDescription (description);
4294 const char *desc = description.GetData();
4295 size_t desc_len = description.GetSize();
4296 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4297 --desc_len;
4298 if (desc_len > 0)
4299 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4300 else
4301 return lldb_private::PythonString("").release();
4302 }
4303SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBMemoryRegionInfo___str__(lldb::SBMemoryRegionInfo *self){
4304 lldb::SBStream description;
4305 self->GetDescription (description);
4306 const char *desc = description.GetData();
4307 size_t desc_len = description.GetSize();
4308 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4309 --desc_len;
4310 if (desc_len > 0)
4311 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4312 else
4313 return lldb_private::PythonString("").release();
4314 }
4315SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModule___str__(lldb::SBModule *self){
4316 lldb::SBStream description;
4317 self->GetDescription (description);
4318 const char *desc = description.GetData();
4319 size_t desc_len = description.GetSize();
4320 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4321 --desc_len;
4322 if (desc_len > 0)
4323 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4324 else
4325 return lldb_private::PythonString("").release();
4326 }
4327SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpec___str__(lldb::SBModuleSpec *self){
4328 lldb::SBStream description;
4329 self->GetDescription (description);
4330 const char *desc = description.GetData();
4331 size_t desc_len = description.GetSize();
4332 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4333 --desc_len;
4334 if (desc_len > 0)
4335 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4336 else
4337 return lldb_private::PythonString("").release();
4338 }
4339SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpecList___str__(lldb::SBModuleSpecList *self){
4340 lldb::SBStream description;
4341 self->GetDescription (description);
4342 const char *desc = description.GetData();
4343 size_t desc_len = description.GetSize();
4344 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4345 --desc_len;
4346 if (desc_len > 0)
4347 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4348 else
4349 return lldb_private::PythonString("").release();
4350 }
4351SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBProcess___str__(lldb::SBProcess *self){
4352 lldb::SBStream description;
4353 self->GetDescription (description);
4354 const char *desc = description.GetData();
4355 size_t desc_len = description.GetSize();
4356 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4357 --desc_len;
4358 if (desc_len > 0)
4359 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4360 else
4361 return lldb_private::PythonString("").release();
4362 }
4363SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSection___str__(lldb::SBSection *self){
4364 lldb::SBStream description;
4365 self->GetDescription (description);
4366 const char *desc = description.GetData();
4367 size_t desc_len = description.GetSize();
4368 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4369 --desc_len;
4370 if (desc_len > 0)
4371 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4372 else
4373 return lldb_private::PythonString("").release();
4374 }
4375SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_Print(lldb::SBStream *self,char const *str){
4376 self->Printf("%s", str);
4377 }
4378SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_write(lldb::SBStream *self,char const *str){
4379 if (str)
4380 self->Printf("%s",str);
4381 }
4382SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_flush(lldb::SBStream *self){}
4383SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbol___str__(lldb::SBSymbol *self){
4384 lldb::SBStream description;
4385 self->GetDescription (description);
4386 const char *desc = description.GetData();
4387 size_t desc_len = description.GetSize();
4388 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4389 --desc_len;
4390 if (desc_len > 0)
4391 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4392 else
4393 return lldb_private::PythonString("").release();
4394 }
4395SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContext___str__(lldb::SBSymbolContext *self){
4396 lldb::SBStream description;
4397 self->GetDescription (description);
4398 const char *desc = description.GetData();
4399 size_t desc_len = description.GetSize();
4400 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4401 --desc_len;
4402 if (desc_len > 0)
4403 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4404 else
4405 return lldb_private::PythonString("").release();
4406 }
4407SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContextList___str__(lldb::SBSymbolContextList *self){
4408 lldb::SBStream description;
4409 self->GetDescription (description);
4410 const char *desc = description.GetData();
4411 size_t desc_len = description.GetSize();
4412 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4413 --desc_len;
4414 if (desc_len > 0)
4415 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4416 else
4417 return lldb_private::PythonString("").release();
4418 }
4419
4420#ifdef SWIG_LONG_LONG_AVAILABLE
4421SWIGINTERNstatic __attribute__ ((__unused__)) int
4422SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
4423{
4424 int res = SWIG_TypeError-5;
4425 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
4426 long long v = PyLong_AsLongLong(obj);
4427 if (!PyErr_Occurred()) {
4428 if (val) *val = v;
4429 return SWIG_OK(0);
4430 } else {
4431 PyErr_Clear();
4432 res = SWIG_OverflowError-7;
4433 }
4434 } else {
4435 long v;
4436 res = SWIG_AsVal_long (obj,&v);
4437 if (SWIG_IsOK(res)(res >= 0)) {
4438 if (val) *val = v;
4439 return res;
4440 }
4441 }
4442#ifdef SWIG_PYTHON_CAST_MODE
4443 {
4444 const double mant_max = 1LL << DBL_MANT_DIG53;
4445 const double mant_min = -mant_max;
4446 double d;
4447 res = SWIG_AsVal_double (obj,&d);
4448 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
4449 if (val) *val = (long long)(d);
4450 return SWIG_AddCast(res)(res);
4451 }
4452 res = SWIG_TypeError-5;
4453 }
4454#endif
4455 return res;
4456}
4457#endif
4458
4459SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTarget___str__(lldb::SBTarget *self){
4460 lldb::SBStream description;
4461 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4462 const char *desc = description.GetData();
4463 size_t desc_len = description.GetSize();
4464 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4465 --desc_len;
4466 if (desc_len > 0)
4467 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4468 else
4469 return lldb_private::PythonString("").release();
4470 }
4471SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBThread___str__(lldb::SBThread *self){
4472 lldb::SBStream description;
4473 self->GetDescription (description);
4474 const char *desc = description.GetData();
4475 size_t desc_len = description.GetSize();
4476 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4477 --desc_len;
4478 if (desc_len > 0)
4479 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4480 else
4481 return lldb_private::PythonString("").release();
4482 }
4483SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMember___str__(lldb::SBTypeMember *self){
4484 lldb::SBStream description;
4485 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4486 const char *desc = description.GetData();
4487 size_t desc_len = description.GetSize();
4488 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4489 --desc_len;
4490 if (desc_len > 0)
4491 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4492 else
4493 return lldb_private::PythonString("").release();
4494 }
4495SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMemberFunction___str__(lldb::SBTypeMemberFunction *self){
4496 lldb::SBStream description;
4497 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4498 const char *desc = description.GetData();
4499 size_t desc_len = description.GetSize();
4500 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4501 --desc_len;
4502 if (desc_len > 0)
4503 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4504 else
4505 return lldb_private::PythonString("").release();
4506 }
4507SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBType___str__(lldb::SBType *self){
4508 lldb::SBStream description;
4509 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4510 const char *desc = description.GetData();
4511 size_t desc_len = description.GetSize();
4512 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4513 --desc_len;
4514 if (desc_len > 0)
4515 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4516 else
4517 return lldb_private::PythonString("").release();
4518 }
4519SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeCategory___str__(lldb::SBTypeCategory *self){
4520 lldb::SBStream description;
4521 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4522 const char *desc = description.GetData();
4523 size_t desc_len = description.GetSize();
4524 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4525 --desc_len;
4526 if (desc_len > 0)
4527 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4528 else
4529 return lldb_private::PythonString("").release();
4530 }
4531SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeEnumMember___str__(lldb::SBTypeEnumMember *self){
4532 lldb::SBStream description;
4533 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4534 const char *desc = description.GetData();
4535 size_t desc_len = description.GetSize();
4536 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4537 --desc_len;
4538 if (desc_len > 0)
4539 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4540 else
4541 return lldb_private::PythonString("").release();
4542 }
4543SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFilter___str__(lldb::SBTypeFilter *self){
4544 lldb::SBStream description;
4545 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4546 const char *desc = description.GetData();
4547 size_t desc_len = description.GetSize();
4548 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4549 --desc_len;
4550 if (desc_len > 0)
4551 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4552 else
4553 return lldb_private::PythonString("").release();
4554 }
4555SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFormat___str__(lldb::SBTypeFormat *self){
4556 lldb::SBStream description;
4557 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4558 const char *desc = description.GetData();
4559 size_t desc_len = description.GetSize();
4560 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4561 --desc_len;
4562 if (desc_len > 0)
4563 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4564 else
4565 return lldb_private::PythonString("").release();
4566 }
4567SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeNameSpecifier___str__(lldb::SBTypeNameSpecifier *self){
4568 lldb::SBStream description;
4569 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4570 const char *desc = description.GetData();
4571 size_t desc_len = description.GetSize();
4572 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4573 --desc_len;
4574 if (desc_len > 0)
4575 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4576 else
4577 return lldb_private::PythonString("").release();
4578 }
4579SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSummary___str__(lldb::SBTypeSummary *self){
4580 lldb::SBStream description;
4581 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4582 const char *desc = description.GetData();
4583 size_t desc_len = description.GetSize();
4584 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4585 --desc_len;
4586 if (desc_len > 0)
4587 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4588 else
4589 return lldb_private::PythonString("").release();
4590 }
4591SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSynthetic___str__(lldb::SBTypeSynthetic *self){
4592 lldb::SBStream description;
4593 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4594 const char *desc = description.GetData();
4595 size_t desc_len = description.GetSize();
4596 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4597 --desc_len;
4598 if (desc_len > 0)
4599 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4600 else
4601 return lldb_private::PythonString("").release();
4602 }
4603SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValue___str__(lldb::SBValue *self){
4604 lldb::SBStream description;
4605 self->GetDescription (description);
4606 const char *desc = description.GetData();
4607 size_t desc_len = description.GetSize();
4608 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4609 --desc_len;
4610 if (desc_len > 0)
4611 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4612 else
4613 return lldb_private::PythonString("").release();
4614 }
4615SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValueList___str__(lldb::SBValueList *self){
4616 lldb::SBStream description;
4617 const size_t n = self->GetSize();
4618 if (n)
4619 {
4620 for (size_t i=0; i<n; ++i)
4621 self->GetValueAtIndex(i).GetDescription(description);
4622 }
4623 else
4624 {
4625 description.Printf("<empty> lldb.SBValueList()");
4626 }
4627 const char *desc = description.GetData();
4628 size_t desc_len = description.GetSize();
4629 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4630 --desc_len;
4631 if (desc_len > 0)
4632 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4633 else
4634 return lldb_private::PythonString("").release();
4635 }
4636SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBWatchpoint___str__(lldb::SBWatchpoint *self){
4637 lldb::SBStream description;
4638 self->GetDescription (description, lldb::eDescriptionLevelVerbose);
4639 const char *desc = description.GetData();
4640 size_t desc_len = description.GetSize();
4641 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4642 --desc_len;
4643 if (desc_len > 0)
4644 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4645 else
4646 return lldb_private::PythonString("").release();
4647 }
4648
4649
4650template <typename T>
4651PyObject *
4652SBTypeToSWIGWrapper (T* item);
4653
4654class PyErr_Cleaner
4655{
4656public:
4657 PyErr_Cleaner(bool print=false) :
4658 m_print(print)
4659 {
4660 }
4661
4662 ~PyErr_Cleaner()
4663 {
4664 if (PyErr_Occurred())
4665 {
4666 if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
4667 PyErr_Print();
4668 PyErr_Clear();
4669 }
4670 }
4671
4672private:
4673 bool m_print;
4674};
4675
4676
4677#ifdef __cplusplus201103L
4678extern "C" {
4679#endif
4680SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4681 PyObject *resultobj = 0;
4682 lldb::SBAddress *result = 0 ;
4683
4684 if (!PyArg_ParseTuple(args,(char *)":new_SBAddress")) SWIG_failgoto fail;
4685 {
4686 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4687 result = (lldb::SBAddress *)new lldb::SBAddress();
4688 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4689 }
4690 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)
;
4691 return resultobj;
4692fail:
4693 return NULL__null;
4694}
4695
4696
4697SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4698 PyObject *resultobj = 0;
4699 lldb::SBAddress *arg1 = 0 ;
4700 void *argp1 = 0 ;
4701 int res1 = 0 ;
4702 PyObject * obj0 = 0 ;
4703 lldb::SBAddress *result = 0 ;
4704
4705 if (!PyArg_ParseTuple(args,(char *)"O:new_SBAddress",&obj0)) SWIG_failgoto fail;
4706 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBAddress, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4707 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4708 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)
;
4709 }
4710 if (!argp1) {
4711 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)
;
4712 }
4713 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4714 {
4715 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4716 result = (lldb::SBAddress *)new lldb::SBAddress((lldb::SBAddress const &)*arg1);
4717 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4718 }
4719 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)
;
4720 return resultobj;
4721fail:
4722 return NULL__null;
4723}
4724
4725
4726SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4727 PyObject *resultobj = 0;
4728 lldb::SBSection arg1 ;
4729 lldb::addr_t arg2 ;
4730 void *argp1 ;
4731 int res1 = 0 ;
4732 unsigned long long val2 ;
4733 int ecode2 = 0 ;
4734 PyObject * obj0 = 0 ;
4735 PyObject * obj1 = 0 ;
4736 lldb::SBAddress *result = 0 ;
4737
4738 if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAddress",&obj0,&obj1)) SWIG_failgoto fail;
4739 {
4740 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBSection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[49]
, 0 | 0, 0)
;
4741 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4742 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)
;
4743 }
4744 if (!argp1) {
4745 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)
;
4746 } else {
4747 lldb::SBSection * temp = reinterpret_cast< lldb::SBSection * >(argp1);
4748 arg1 = *temp;
4749 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete temp;
4750 }
4751 }
4752 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
4753 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4754 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)
;
4755 }
4756 arg2 = static_cast< lldb::addr_t >(val2);
4757 {
4758 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4759 result = (lldb::SBAddress *)new lldb::SBAddress(arg1,arg2);
4760 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4761 }
4762 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)
;
4763 return resultobj;
4764fail:
4765 return NULL__null;
4766}
4767
4768
4769SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4770 PyObject *resultobj = 0;
4771 lldb::addr_t arg1 ;
4772 lldb::SBTarget *arg2 = 0 ;
4773 unsigned long long val1 ;
4774 int ecode1 = 0 ;
4775 void *argp2 = 0 ;
4776 int res2 = 0 ;
4777 PyObject * obj0 = 0 ;
4778 PyObject * obj1 = 0 ;
4779 lldb::SBAddress *result = 0 ;
4780
4781 if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAddress",&obj0,&obj1)) SWIG_failgoto fail;
4782 ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1);
4783 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4784 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)
;
4785 }
4786 arg1 = static_cast< lldb::addr_t >(val1);
4787 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBTarget, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[57]
, 0, 0)
;
4788 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4789 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)
;
4790 }
4791 if (!argp2) {
4792 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)
;
4793 }
4794 arg2 = reinterpret_cast< lldb::SBTarget * >(argp2);
4795 {
4796 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4797 result = (lldb::SBAddress *)new lldb::SBAddress(arg1,*arg2);
4798 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4799 }
4800 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)
;
4801 return resultobj;
4802fail:
4803 return NULL__null;
4804}
4805
4806
4807SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress(PyObject *self, PyObject *args) {
4808 Py_ssize_t argc;
4809 PyObject *argv[3] = {
4810 0
4811 };
4812 Py_ssize_t ii;
4813
4814 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4815 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
4816 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4817 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4818 }
4819 if (argc == 0) {
4820 return _wrap_new_SBAddress__SWIG_0(self, args);
4821 }
4822 if (argc == 1) {
4823 int _v;
4824 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBAddress, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[8], 0, 0);
4825 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4826 if (_v) {
4827 return _wrap_new_SBAddress__SWIG_1(self, args);
4828 }
4829 }
4830 if (argc == 2) {
4831 int _v;
4832 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBSection, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[49], 0, 0
)
;
4833 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4834 if (_v) {
4835 {
4836 int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL__null);
4837 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4838 }
4839 if (_v) {
4840 return _wrap_new_SBAddress__SWIG_2(self, args);
4841 }
4842 }
4843 }
4844 if (argc == 2) {
4845 int _v;
4846 {
4847 int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL__null);
4848 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4849 }
4850 if (_v) {
4851 void *vptr = 0;
4852 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_lldb__SBTarget, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[57
], 0, 0)
;
4853 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4854 if (_v) {
4855 return _wrap_new_SBAddress__SWIG_3(self, args);
4856 }
4857 }
4858 }
4859
4860fail:
4861 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SBAddress'.\n"
4862 " Possible C/C++ prototypes are:\n"
4863 " lldb::SBAddress::SBAddress()\n"
4864 " lldb::SBAddress::SBAddress(lldb::SBAddress const &)\n"
4865 " lldb::SBAddress::SBAddress(lldb::SBSection,lldb::addr_t)\n"
4866 " lldb::SBAddress::SBAddress(lldb::addr_t,lldb::SBTarget &)\n");
4867 return 0;
4868}
4869
4870
4871SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SBAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4872 PyObject *resultobj = 0;
4873 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4874 void *argp1 = 0 ;
4875 int res1 = 0 ;
4876 PyObject * obj0 = 0 ;
4877
4878 if (!PyArg_ParseTuple(args,(char *)"O:delete_SBAddress",&obj0)) SWIG_failgoto fail;
4879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0x1 | 0, 0)
;
4880 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4881 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)
;
4882 }
4883 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4884 {
4885 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4886 delete arg1;
4887 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4888 }
4889 resultobj = SWIG_Py_Void();
4890 return resultobj;
4891fail:
4892 return NULL__null;
4893}
4894
4895
4896SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4897 PyObject *resultobj = 0;
4898 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4899 void *argp1 = 0 ;
4900 int res1 = 0 ;
4901 PyObject * obj0 = 0 ;
4902 bool result;
4903
4904 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_IsValid",&obj0)) SWIG_failgoto fail;
4905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4906 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4907 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)
;
4908 }
4909 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4910 {
4911 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4912 result = (bool)((lldb::SBAddress const *)arg1)->IsValid();
4913 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4914 }
4915 resultobj = SWIG_From_bool(static_cast< bool >(result));
4916 return resultobj;
4917fail:
4918 return NULL__null;
4919}
4920
4921
4922SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4923 PyObject *resultobj = 0;
4924 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4925 void *argp1 = 0 ;
4926 int res1 = 0 ;
4927 PyObject * obj0 = 0 ;
4928
4929 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_Clear",&obj0)) SWIG_failgoto fail;
4930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4931 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4932 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)
;
4933 }
4934 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4935 {
4936 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4937 (arg1)->Clear();
4938 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4939 }
4940 resultobj = SWIG_Py_Void();
4941 return resultobj;
4942fail:
4943 return NULL__null;
4944}
4945
4946
4947SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetFileAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4948 PyObject *resultobj = 0;
4949 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4950 void *argp1 = 0 ;
4951 int res1 = 0 ;
4952 PyObject * obj0 = 0 ;
4953 lldb::addr_t result;
4954
4955 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetFileAddress",&obj0)) SWIG_failgoto fail;
4956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4957 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4958 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)
;
4959 }
4960 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4961 {
4962 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4963 result = (lldb::addr_t)((lldb::SBAddress const *)arg1)->GetFileAddress();
4964 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4965 }
4966 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
4967 return resultobj;
4968fail:
4969 return NULL__null;
4970}
4971
4972
4973SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetLoadAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4974 PyObject *resultobj = 0;
4975 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
4976 lldb::SBTarget *arg2 = 0 ;
4977 void *argp1 = 0 ;
4978 int res1 = 0 ;
4979 void *argp2 = 0 ;
4980 int res2 = 0 ;
4981 PyObject * obj0 = 0 ;
4982 PyObject * obj1 = 0 ;
4983 lldb::addr_t result;
4984
4985 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetLoadAddress",&obj0,&obj1)) SWIG_failgoto fail;
4986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
4987 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4988 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)
;
4989 }
4990 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
4991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBTarget, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[57]
, 0 | 0, 0)
;
4992 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4993 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)
;
4994 }
4995 if (!argp2) {
4996 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)
;
4997 }
4998 arg2 = reinterpret_cast< lldb::SBTarget * >(argp2);
4999 {
5000 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5001 result = (lldb::addr_t)((lldb::SBAddress const *)arg1)->GetLoadAddress((lldb::SBTarget const &)*arg2);
5002 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5003 }
5004 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
5005 return resultobj;
5006fail:
5007 return NULL__null;
5008}
5009
5010
5011SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_SetLoadAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5012 PyObject *resultobj = 0;
5013 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5014 lldb::addr_t arg2 ;
5015 lldb::SBTarget *arg3 = 0 ;
5016 void *argp1 = 0 ;
5017 int res1 = 0 ;
5018 unsigned long long val2 ;
5019 int ecode2 = 0 ;
5020 void *argp3 = 0 ;
5021 int res3 = 0 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 PyObject * obj2 = 0 ;
5025
5026 if (!PyArg_ParseTuple(args,(char *)"OOO:SBAddress_SetLoadAddress",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5028 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5029 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)
;
5030 }
5031 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5032 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
5033 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5034 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)
;
5035 }
5036 arg2 = static_cast< lldb::addr_t >(val2);
5037 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_lldb__SBTarget, 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[57]
, 0, 0)
;
5038 if (!SWIG_IsOK(res3)(res3 >= 0)) {
5039 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)
;
5040 }
5041 if (!argp3) {
5042 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)
;
5043 }
5044 arg3 = reinterpret_cast< lldb::SBTarget * >(argp3);
5045 {
5046 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5047 (arg1)->SetLoadAddress(arg2,*arg3);
5048 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5049 }
5050 resultobj = SWIG_Py_Void();
5051 return resultobj;
5052fail:
5053 return NULL__null;
5054}
5055
5056
5057SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_OffsetAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5058 PyObject *resultobj = 0;
5059 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5060 lldb::addr_t arg2 ;
5061 void *argp1 = 0 ;
5062 int res1 = 0 ;
5063 unsigned long long val2 ;
5064 int ecode2 = 0 ;
5065 PyObject * obj0 = 0 ;
5066 PyObject * obj1 = 0 ;
5067 bool result;
5068
5069 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_OffsetAddress",&obj0,&obj1)) SWIG_failgoto fail;
5070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5071 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5072 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)
;
5073 }
5074 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5075 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
5076 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5077 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)
;
5078 }
5079 arg2 = static_cast< lldb::addr_t >(val2);
5080 {
5081 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5082 result = (bool)(arg1)->OffsetAddress(arg2);
5083 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5084 }
5085 resultobj = SWIG_From_bool(static_cast< bool >(result));
5086 return resultobj;
5087fail:
5088 return NULL__null;
5089}
5090
5091
5092SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5093 PyObject *resultobj = 0;
5094 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5095 lldb::SBStream *arg2 = 0 ;
5096 void *argp1 = 0 ;
5097 int res1 = 0 ;
5098 void *argp2 = 0 ;
5099 int res2 = 0 ;
5100 PyObject * obj0 = 0 ;
5101 PyObject * obj1 = 0 ;
5102 bool result;
5103
5104 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetDescription",&obj0,&obj1)) SWIG_failgoto fail;
5105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5106 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5107 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)
;
5108 }
5109 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5110 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBStream, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[51]
, 0, 0)
;
5111 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5112 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)
;
5113 }
5114 if (!argp2) {
5115 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)
;
5116 }
5117 arg2 = reinterpret_cast< lldb::SBStream * >(argp2);
5118 {
5119 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5120 result = (bool)(arg1)->GetDescription(*arg2);
5121 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5122 }
5123 resultobj = SWIG_From_bool(static_cast< bool >(result));
5124 return resultobj;
5125fail:
5126 return NULL__null;
5127}
5128
5129
5130SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5131 PyObject *resultobj = 0;
5132 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5133 void *argp1 = 0 ;
5134 int res1 = 0 ;
5135 PyObject * obj0 = 0 ;
5136 lldb::SBSection result;
5137
5138 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetSection",&obj0)) SWIG_failgoto fail;
5139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5140 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5141 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)
;
5142 }
5143 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5144 {
5145 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5146 result = (arg1)->GetSection();
5147 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5148 }
5149 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)
;
5150 return resultobj;
5151fail:
5152 return NULL__null;
5153}
5154
5155
5156SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5157 PyObject *resultobj = 0;
5158 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5159 void *argp1 = 0 ;
5160 int res1 = 0 ;
5161 PyObject * obj0 = 0 ;
5162 lldb::addr_t result;
5163
5164 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetOffset",&obj0)) SWIG_failgoto fail;
5165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5166 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5167 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)
;
5168 }
5169 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5170 {
5171 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5172 result = (lldb::addr_t)(arg1)->GetOffset();
5173 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5174 }
5175 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
5176 return resultobj;
5177fail:
5178 return NULL__null;
5179}
5180
5181
5182SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_SetAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5183 PyObject *resultobj = 0;
5184 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5185 lldb::SBSection arg2 ;
5186 lldb::addr_t arg3 ;
5187 void *argp1 = 0 ;
5188 int res1 = 0 ;
5189 void *argp2 ;
5190 int res2 = 0 ;
5191 unsigned long long val3 ;
5192 int ecode3 = 0 ;
5193 PyObject * obj0 = 0 ;
5194 PyObject * obj1 = 0 ;
5195 PyObject * obj2 = 0 ;
5196
5197 if (!PyArg_ParseTuple(args,(char *)"OOO:SBAddress_SetAddress",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5199 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5200 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)
;
5201 }
5202 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5203 {
5204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBSection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[49]
, 0 | 0, 0)
;
5205 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5206 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)
;
5207 }
5208 if (!argp2) {
5209 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)
;
5210 } else {
5211 lldb::SBSection * temp = reinterpret_cast< lldb::SBSection * >(argp2);
5212 arg2 = *temp;
5213 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete temp;
5214 }
5215 }
5216 ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3);
5217 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5218 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)
;
5219 }
5220 arg3 = static_cast< lldb::addr_t >(val3);
5221 {
5222 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5223 (arg1)->SetAddress(arg2,arg3);
5224 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5225 }
5226 resultobj = SWIG_Py_Void();
5227 return resultobj;
5228fail:
5229 return NULL__null;
5230}
5231
5232
5233SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetAddressClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5234 PyObject *resultobj = 0;
5235 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5236 void *argp1 = 0 ;
5237 int res1 = 0 ;
5238 PyObject * obj0 = 0 ;
5239 lldb::AddressClass result;
5240
5241 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetAddressClass",&obj0)) SWIG_failgoto fail;
5242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5243 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5244 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)
;
5245 }
5246 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5247 {
5248 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5249 result = (lldb::AddressClass)(arg1)->GetAddressClass();
5250 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5251 }
5252 resultobj = SWIG_From_int(static_cast< int >(result));
5253 return resultobj;
5254fail:
5255 return NULL__null;
5256}
5257
5258
5259SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSymbolContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5260 PyObject *resultobj = 0;
5261 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5262 uint32_t arg2 ;
5263 void *argp1 = 0 ;
5264 int res1 = 0 ;
5265 unsigned int val2 ;
5266 int ecode2 = 0 ;
5267 PyObject * obj0 = 0 ;
5268 PyObject * obj1 = 0 ;
5269 lldb::SBSymbolContext result;
5270
5271 if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetSymbolContext",&obj0,&obj1)) SWIG_failgoto fail;
5272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5273 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5274 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)
;
5275 }
5276 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5277 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
5278 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5279 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)
;
5280 }
5281 arg2 = static_cast< uint32_t >(val2);
5282 {
5283 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5284 result = (arg1)->GetSymbolContext(arg2);
5285 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5286 }
5287 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)
;
5288 return resultobj;
5289fail:
5290 return NULL__null;
5291}
5292
5293
5294SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5295 PyObject *resultobj = 0;
5296 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5297 void *argp1 = 0 ;
5298 int res1 = 0 ;
5299 PyObject * obj0 = 0 ;
5300 lldb::SBModule result;
5301
5302 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetModule",&obj0)) SWIG_failgoto fail;
5303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5304 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5305 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)
;
5306 }
5307 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5308 {
5309 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5310 result = (arg1)->GetModule();
5311 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5312 }
5313 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)
;
5314 return resultobj;
5315fail:
5316 return NULL__null;
5317}
5318
5319
5320SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetCompileUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5321 PyObject *resultobj = 0;
5322 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5323 void *argp1 = 0 ;
5324 int res1 = 0 ;
5325 PyObject * obj0 = 0 ;
5326 lldb::SBCompileUnit result;
5327
5328 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetCompileUnit",&obj0)) SWIG_failgoto fail;
5329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5330 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5331 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)
;
5332 }
5333 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5334 {
5335 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5336 result = (arg1)->GetCompileUnit();
5337 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5338 }
5339 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)
;
5340 return resultobj;
5341fail:
5342 return NULL__null;
5343}
5344
5345
5346SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5347 PyObject *resultobj = 0;
5348 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5349 void *argp1 = 0 ;
5350 int res1 = 0 ;
5351 PyObject * obj0 = 0 ;
5352 lldb::SBFunction result;
5353
5354 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetFunction",&obj0)) SWIG_failgoto fail;
5355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5356 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5357 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)
;
5358 }
5359 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5360 {
5361 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5362 result = (arg1)->GetFunction();
5363 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5364 }
5365 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)
;
5366 return resultobj;
5367fail:
5368 return NULL__null;
5369}
5370
5371
5372SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5373 PyObject *resultobj = 0;
5374 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5375 void *argp1 = 0 ;
5376 int res1 = 0 ;
5377 PyObject * obj0 = 0 ;
5378 lldb::SBBlock result;
5379
5380 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetBlock",&obj0)) SWIG_failgoto fail;
5381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5382 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5383 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)
;
5384 }
5385 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5386 {
5387 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5388 result = (arg1)->GetBlock();
5389 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5390 }
5391 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)
;
5392 return resultobj;
5393fail:
5394 return NULL__null;
5395}
5396
5397
5398SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5399 PyObject *resultobj = 0;
5400 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5401 void *argp1 = 0 ;
5402 int res1 = 0 ;
5403 PyObject * obj0 = 0 ;
5404 lldb::SBSymbol result;
5405
5406 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetSymbol",&obj0)) SWIG_failgoto fail;
5407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5408 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5409 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)
;
5410 }
5411 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5412 {
5413 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5414 result = (arg1)->GetSymbol();
5415 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5416 }
5417 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)
;
5418 return resultobj;
5419fail:
5420 return NULL__null;
5421}
5422
5423
5424SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetLineEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5425 PyObject *resultobj = 0;
5426 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5427 void *argp1 = 0 ;
5428 int res1 = 0 ;
5429 PyObject * obj0 = 0 ;
5430 lldb::SBLineEntry result;
5431
5432 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetLineEntry",&obj0)) SWIG_failgoto fail;
5433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5434 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5435 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)
;
5436 }
5437 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5438 {
5439 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5440 result = (arg1)->GetLineEntry();
5441 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5442 }
5443 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)
;
5444 return resultobj;
5445fail:
5446 return NULL__null;
5447}
5448
5449
5450SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5451 PyObject *resultobj = 0;
5452 lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
5453 void *argp1 = 0 ;
5454 int res1 = 0 ;
5455 PyObject * obj0 = 0 ;
5456 PyObject *result = 0 ;
5457
5458 if (!PyArg_ParseTuple(args,(char *)"O:SBAddress___str__",&obj0)) SWIG_failgoto fail;
5459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
5460 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5461 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)
;
5462 }
5463 arg1 = reinterpret_cast< lldb::SBAddress * >(argp1);
5464 {
5465 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5466 result = (PyObject *)lldb_SBAddress___str__(arg1);
5467 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5468 }
5469 resultobj = result;
5470 return resultobj;
5471fail:
5472 return NULL__null;
5473}
5474
5475
5476SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SBAddress_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5477 PyObject *obj;
5478 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
5479 SWIG_TypeNewClientData(SWIGTYPE_p_lldb__SBAddressswig_types[8], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
5480 return SWIG_Py_Void();
5481}
5482
5483SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5484 PyObject *resultobj = 0;
5485 lldb::SBAttachInfo *result = 0 ;
5486
5487 if (!PyArg_ParseTuple(args,(char *)":new_SBAttachInfo")) SWIG_failgoto fail;
5488 {
5489 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5490 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo();
5491 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5492 }
5493 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)
;
5494 return resultobj;
5495fail:
5496 return NULL__null;
5497}
5498
5499
5500SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5501 PyObject *resultobj = 0;
5502 lldb::pid_t arg1 ;
5503 unsigned long long val1 ;
5504 int ecode1 = 0 ;
5505 PyObject * obj0 = 0 ;
5506 lldb::SBAttachInfo *result = 0 ;
5507
5508 if (!PyArg_ParseTuple(args,(char *)"O:new_SBAttachInfo",&obj0)) SWIG_failgoto fail;
5509 ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1);
5510 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
5511 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)
;
5512 }
5513 arg1 = static_cast< lldb::pid_t >(val1);
5514 {
5515 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5516 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo(arg1);
5517 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5518 }
5519 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)
;
5520 return resultobj;
5521fail:
5522 return NULL__null;
5523}
5524
5525
5526SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5527 PyObject *resultobj = 0;
5528 char *arg1 = (char *) 0 ;
5529 bool arg2 ;
5530 int res1 ;
5531 char *buf1 = 0 ;
5532 int alloc1 = 0 ;
5533 bool val2 ;
5534 int ecode2 = 0 ;
5535 PyObject * obj0 = 0 ;
5536 PyObject * obj1 = 0 ;
5537 lldb::SBAttachInfo *result = 0 ;
5538
5539 if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAttachInfo",&obj0,&obj1)) SWIG_failgoto fail;
5540 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL__null, &alloc1);
5541 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5542 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)
;
5543 }
5544 arg1 = reinterpret_cast< char * >(buf1);
5545 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5546 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5547 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)
;
5548 }
5549 arg2 = static_cast< bool >(val2);
5550 {
5551 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5552 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((char const *)arg1,arg2);
5553 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5554 }
5555 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)
;
5556 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5557 return resultobj;
5558fail:
5559 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5560 return NULL__null;
5561}
5562
5563
5564SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5565 PyObject *resultobj = 0;
5566 char *arg1 = (char *) 0 ;
5567 bool arg2 ;
5568 bool arg3 ;
5569 int res1 ;
5570 char *buf1 = 0 ;
5571 int alloc1 = 0 ;
5572 bool val2 ;
5573 int ecode2 = 0 ;
5574 bool val3 ;
5575 int ecode3 = 0 ;
5576 PyObject * obj0 = 0 ;
5577 PyObject * obj1 = 0 ;
5578 PyObject * obj2 = 0 ;
5579 lldb::SBAttachInfo *result = 0 ;
5580
5581 if (!PyArg_ParseTuple(args,(char *)"OOO:new_SBAttachInfo",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5582 res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL__null, &alloc1);
5583 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5584 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)
;
5585 }
5586 arg1 = reinterpret_cast< char * >(buf1);
5587 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5588 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5589 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)
;
5590 }
5591 arg2 = static_cast< bool >(val2);
5592 ecode3 = SWIG_AsVal_bool(obj2, &val3);
5593 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5594 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)
;
5595 }
5596 arg3 = static_cast< bool >(val3);
5597 {
5598 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5599 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((char const *)arg1,arg2,arg3);
5600 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5601 }
5602 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)
;
5603 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5604 return resultobj;
5605fail:
5606 if (alloc1 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf1;
5607 return NULL__null;
5608}
5609
5610
5611SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5612 PyObject *resultobj = 0;
5613 lldb::SBAttachInfo *arg1 = 0 ;
5614 void *argp1 = 0 ;
5615 int res1 = 0 ;
5616 PyObject * obj0 = 0 ;
5617 lldb::SBAttachInfo *result = 0 ;
5618
5619 if (!PyArg_ParseTuple(args,(char *)"O:new_SBAttachInfo",&obj0)) SWIG_failgoto fail;
5620 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5621 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5622 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)
;
5623 }
5624 if (!argp1) {
5625 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)
;
5626 }
5627 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5628 {
5629 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5630 result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((lldb::SBAttachInfo const &)*arg1);
5631 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5632 }
5633 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)
;
5634 return resultobj;
5635fail:
5636 return NULL__null;
5637}
5638
5639
5640SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAttachInfo(PyObject *self, PyObject *args) {
5641 Py_ssize_t argc;
5642 PyObject *argv[4] = {
5643 0
5644 };
5645 Py_ssize_t ii;
5646
5647 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5648 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5649 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5650 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5651 }
5652 if (argc == 0) {
5653 return _wrap_new_SBAttachInfo__SWIG_0(self, args);
5654 }
5655 if (argc == 1) {
5656 int _v;
5657 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[9], 0, 0);
5658 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5659 if (_v) {
5660 return _wrap_new_SBAttachInfo__SWIG_4(self, args);
5661 }
5662 }
5663 if (argc == 1) {
5664 int _v;
5665 {
5666 int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL__null);
5667 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5668 }
5669 if (_v) {
5670 return _wrap_new_SBAttachInfo__SWIG_1(self, args);
5671 }
5672 }
5673 if (argc == 2) {
5674 int _v;
5675 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL__null, 0);
5676 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5677 if (_v) {
5678 {
5679 int res = SWIG_AsVal_bool(argv[1], NULL__null);
5680 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5681 }
5682 if (_v) {
5683 return _wrap_new_SBAttachInfo__SWIG_2(self, args);
5684 }
5685 }
5686 }
5687 if (argc == 3) {
5688 int _v;
5689 int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL__null, 0);
5690 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5691 if (_v) {
5692 {
5693 int res = SWIG_AsVal_bool(argv[1], NULL__null);
5694 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5695 }
5696 if (_v) {
5697 {
5698 int res = SWIG_AsVal_bool(argv[2], NULL__null);
5699 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5700 }
5701 if (_v) {
5702 return _wrap_new_SBAttachInfo__SWIG_3(self, args);
5703 }
5704 }
5705 }
5706 }
5707
5708fail:
5709 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SBAttachInfo'.\n"
5710 " Possible C/C++ prototypes are:\n"
5711 " lldb::SBAttachInfo::SBAttachInfo()\n"
5712 " lldb::SBAttachInfo::SBAttachInfo(lldb::pid_t)\n"
5713 " lldb::SBAttachInfo::SBAttachInfo(char const *,bool)\n"
5714 " lldb::SBAttachInfo::SBAttachInfo(char const *,bool,bool)\n"
5715 " lldb::SBAttachInfo::SBAttachInfo(lldb::SBAttachInfo const &)\n");
5716 return 0;
5717}
5718
5719
5720SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5721 PyObject *resultobj = 0;
5722 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5723 void *argp1 = 0 ;
5724 int res1 = 0 ;
5725 PyObject * obj0 = 0 ;
5726 lldb::pid_t result;
5727
5728 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetProcessID",&obj0)) SWIG_failgoto fail;
5729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5730 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5731 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)
;
5732 }
5733 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5734 {
5735 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5736 result = (lldb::pid_t)(arg1)->GetProcessID();
5737 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5738 }
5739 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
5740 return resultobj;
5741fail:
5742 return NULL__null;
5743}
5744
5745
5746SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5747 PyObject *resultobj = 0;
5748 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5749 lldb::pid_t arg2 ;
5750 void *argp1 = 0 ;
5751 int res1 = 0 ;
5752 unsigned long long val2 ;
5753 int ecode2 = 0 ;
5754 PyObject * obj0 = 0 ;
5755 PyObject * obj1 = 0 ;
5756
5757 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetProcessID",&obj0,&obj1)) SWIG_failgoto fail;
5758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5759 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5760 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)
;
5761 }
5762 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5763 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
5764 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5765 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)
;
5766 }
5767 arg2 = static_cast< lldb::pid_t >(val2);
5768 {
5769 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5770 (arg1)->SetProcessID(arg2);
5771 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5772 }
5773 resultobj = SWIG_Py_Void();
5774 return resultobj;
5775fail:
5776 return NULL__null;
5777}
5778
5779
5780SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetExecutable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5781 PyObject *resultobj = 0;
5782 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5783 char *arg2 = (char *) 0 ;
5784 void *argp1 = 0 ;
5785 int res1 = 0 ;
5786 int res2 ;
5787 char *buf2 = 0 ;
5788 int alloc2 = 0 ;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791
5792 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetExecutable",&obj0,&obj1)) SWIG_failgoto fail;
5793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5794 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5795 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)
;
5796 }
5797 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5798 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL__null, &alloc2);
5799 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5800 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)
;
5801 }
5802 arg2 = reinterpret_cast< char * >(buf2);
5803 {
5804 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5805 (arg1)->SetExecutable((char const *)arg2);
5806 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5807 }
5808 resultobj = SWIG_Py_Void();
5809 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
5810 return resultobj;
5811fail:
5812 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
5813 return NULL__null;
5814}
5815
5816
5817SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetExecutable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5818 PyObject *resultobj = 0;
5819 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5820 lldb::SBFileSpec arg2 ;
5821 void *argp1 = 0 ;
5822 int res1 = 0 ;
5823 void *argp2 ;
5824 int res2 = 0 ;
5825 PyObject * obj0 = 0 ;
5826 PyObject * obj1 = 0 ;
5827
5828 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetExecutable",&obj0,&obj1)) SWIG_failgoto fail;
5829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5830 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5831 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)
;
5832 }
5833 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5834 {
5835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBFileSpec, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[27]
, 0 | 0, 0)
;
5836 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5837 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)
;
5838 }
5839 if (!argp2) {
5840 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)
;
5841 } else {
5842 lldb::SBFileSpec * temp = reinterpret_cast< lldb::SBFileSpec * >(argp2);
5843 arg2 = *temp;
5844 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete temp;
5845 }
5846 }
5847 {
5848 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5849 (arg1)->SetExecutable(arg2);
5850 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5851 }
5852 resultobj = SWIG_Py_Void();
5853 return resultobj;
5854fail:
5855 return NULL__null;
5856}
5857
5858
5859SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetExecutable(PyObject *self, PyObject *args) {
5860 Py_ssize_t argc;
5861 PyObject *argv[3] = {
5862 0
5863 };
5864 Py_ssize_t ii;
5865
5866 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5867 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5868 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5869 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5870 }
5871 if (argc == 2) {
5872 int _v;
5873 void *vptr = 0;
5874 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5875 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5876 if (_v) {
5877 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_lldb__SBFileSpec, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[27], 0, 0
)
;
5878 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5879 if (_v) {
5880 return _wrap_SBAttachInfo_SetExecutable__SWIG_1(self, args);
5881 }
5882 }
5883 }
5884 if (argc == 2) {
5885 int _v;
5886 void *vptr = 0;
5887 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5888 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5889 if (_v) {
5890 int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL__null, 0);
5891 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5892 if (_v) {
5893 return _wrap_SBAttachInfo_SetExecutable__SWIG_0(self, args);
5894 }
5895 }
5896 }
5897
5898fail:
5899 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SBAttachInfo_SetExecutable'.\n"
5900 " Possible C/C++ prototypes are:\n"
5901 " lldb::SBAttachInfo::SetExecutable(char const *)\n"
5902 " lldb::SBAttachInfo::SetExecutable(lldb::SBFileSpec)\n");
5903 return 0;
5904}
5905
5906
5907SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetWaitForLaunch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5908 PyObject *resultobj = 0;
5909 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5910 void *argp1 = 0 ;
5911 int res1 = 0 ;
5912 PyObject * obj0 = 0 ;
5913 bool result;
5914
5915 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetWaitForLaunch",&obj0)) SWIG_failgoto fail;
5916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5917 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5918 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)
;
5919 }
5920 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5921 {
5922 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5923 result = (bool)(arg1)->GetWaitForLaunch();
5924 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5925 }
5926 resultobj = SWIG_From_bool(static_cast< bool >(result));
5927 return resultobj;
5928fail:
5929 return NULL__null;
5930}
5931
5932
5933SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetWaitForLaunch__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5934 PyObject *resultobj = 0;
5935 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5936 bool arg2 ;
5937 void *argp1 = 0 ;
5938 int res1 = 0 ;
5939 bool val2 ;
5940 int ecode2 = 0 ;
5941 PyObject * obj0 = 0 ;
5942 PyObject * obj1 = 0 ;
5943
5944 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetWaitForLaunch",&obj0,&obj1)) SWIG_failgoto fail;
5945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5946 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5947 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)
;
5948 }
5949 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5950 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5951 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5952 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)
;
5953 }
5954 arg2 = static_cast< bool >(val2);
5955 {
5956 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5957 (arg1)->SetWaitForLaunch(arg2);
5958 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5959 }
5960 resultobj = SWIG_Py_Void();
5961 return resultobj;
5962fail:
5963 return NULL__null;
5964}
5965
5966
5967SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetWaitForLaunch__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5968 PyObject *resultobj = 0;
5969 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
5970 bool arg2 ;
5971 bool arg3 ;
5972 void *argp1 = 0 ;
5973 int res1 = 0 ;
5974 bool val2 ;
5975 int ecode2 = 0 ;
5976 bool val3 ;
5977 int ecode3 = 0 ;
5978 PyObject * obj0 = 0 ;
5979 PyObject * obj1 = 0 ;
5980 PyObject * obj2 = 0 ;
5981
5982 if (!PyArg_ParseTuple(args,(char *)"OOO:SBAttachInfo_SetWaitForLaunch",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5984 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5985 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)
;
5986 }
5987 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
5988 ecode2 = SWIG_AsVal_bool(obj1, &val2);
5989 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5990 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)
;
5991 }
5992 arg2 = static_cast< bool >(val2);
5993 ecode3 = SWIG_AsVal_bool(obj2, &val3);
5994 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5995 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)
;
5996 }
5997 arg3 = static_cast< bool >(val3);
5998 {
5999 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6000 (arg1)->SetWaitForLaunch(arg2,arg3);
6001 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6002 }
6003 resultobj = SWIG_Py_Void();
6004 return resultobj;
6005fail:
6006 return NULL__null;
6007}
6008
6009
6010SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetWaitForLaunch(PyObject *self, PyObject *args) {
6011 Py_ssize_t argc;
6012 PyObject *argv[4] = {
6013 0
6014 };
6015 Py_ssize_t ii;
6016
6017 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6018 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
6019 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6020 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6021 }
6022 if (argc == 2) {
6023 int _v;
6024 void *vptr = 0;
6025 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
6026 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6027 if (_v) {
6028 {
6029 int res = SWIG_AsVal_bool(argv[1], NULL__null);
6030 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6031 }
6032 if (_v) {
6033 return _wrap_SBAttachInfo_SetWaitForLaunch__SWIG_0(self, args);
6034 }
6035 }
6036 }
6037 if (argc == 3) {
6038 int _v;
6039 void *vptr = 0;
6040 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SBAttachInfo, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
6041 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6042 if (_v) {
6043 {
6044 int res = SWIG_AsVal_bool(argv[1], NULL__null);
6045 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6046 }
6047 if (_v) {
6048 {
6049 int res = SWIG_AsVal_bool(argv[2], NULL__null);
6050 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6051 }
6052 if (_v) {
6053 return _wrap_SBAttachInfo_SetWaitForLaunch__SWIG_1(self, args);
6054 }
6055 }
6056 }
6057 }
6058
6059fail:
6060 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SBAttachInfo_SetWaitForLaunch'.\n"
6061 " Possible C/C++ prototypes are:\n"
6062 " lldb::SBAttachInfo::SetWaitForLaunch(bool)\n"
6063 " lldb::SBAttachInfo::SetWaitForLaunch(bool,bool)\n");
6064 return 0;
6065}
6066
6067
6068SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetIgnoreExisting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6069 PyObject *resultobj = 0;
6070 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6071 void *argp1 = 0 ;
6072 int res1 = 0 ;
6073 PyObject * obj0 = 0 ;
6074 bool result;
6075
6076 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetIgnoreExisting",&obj0)) SWIG_failgoto fail;
6077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6078 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6079 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)
;
6080 }
6081 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6082 {
6083 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6084 result = (bool)(arg1)->GetIgnoreExisting();
6085 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6086 }
6087 resultobj = SWIG_From_bool(static_cast< bool >(result));
6088 return resultobj;
6089fail:
6090 return NULL__null;
6091}
6092
6093
6094SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetIgnoreExisting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6095 PyObject *resultobj = 0;
6096 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6097 bool arg2 ;
6098 void *argp1 = 0 ;
6099 int res1 = 0 ;
6100 bool val2 ;
6101 int ecode2 = 0 ;
6102 PyObject * obj0 = 0 ;
6103 PyObject * obj1 = 0 ;
6104
6105 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetIgnoreExisting",&obj0,&obj1)) SWIG_failgoto fail;
6106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6107 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6108 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)
;
6109 }
6110 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6111 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6112 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6113 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)
;
6114 }
6115 arg2 = static_cast< bool >(val2);
6116 {
6117 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6118 (arg1)->SetIgnoreExisting(arg2);
6119 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6120 }
6121 resultobj = SWIG_Py_Void();
6122 return resultobj;
6123fail:
6124 return NULL__null;
6125}
6126
6127
6128SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetResumeCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6129 PyObject *resultobj = 0;
6130 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 PyObject * obj0 = 0 ;
6134 uint32_t result;
6135
6136 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetResumeCount",&obj0)) SWIG_failgoto fail;
6137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6138 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6139 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)
;
6140 }
6141 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6142 {
6143 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6144 result = (uint32_t)(arg1)->GetResumeCount();
6145 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6146 }
6147 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6148 return resultobj;
6149fail:
6150 return NULL__null;
6151}
6152
6153
6154SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetResumeCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6155 PyObject *resultobj = 0;
6156 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6157 uint32_t arg2 ;
6158 void *argp1 = 0 ;
6159 int res1 = 0 ;
6160 unsigned int val2 ;
6161 int ecode2 = 0 ;
6162 PyObject * obj0 = 0 ;
6163 PyObject * obj1 = 0 ;
6164
6165 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetResumeCount",&obj0,&obj1)) SWIG_failgoto fail;
6166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6167 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6168 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)
;
6169 }
6170 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6171 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6172 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6173 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)
;
6174 }
6175 arg2 = static_cast< uint32_t >(val2);
6176 {
6177 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6178 (arg1)->SetResumeCount(arg2);
6179 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6180 }
6181 resultobj = SWIG_Py_Void();
6182 return resultobj;
6183fail:
6184 return NULL__null;
6185}
6186
6187
6188SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetProcessPluginName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6191 void *argp1 = 0 ;
6192 int res1 = 0 ;
6193 PyObject * obj0 = 0 ;
6194 char *result = 0 ;
6195
6196 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetProcessPluginName",&obj0)) SWIG_failgoto fail;
6197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6198 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6199 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)
;
6200 }
6201 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6202 {
6203 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6204 result = (char *)(arg1)->GetProcessPluginName();
6205 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6206 }
6207 resultobj = SWIG_FromCharPtr((const char *)result);
6208 return resultobj;
6209fail:
6210 return NULL__null;
6211}
6212
6213
6214SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetProcessPluginName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6215 PyObject *resultobj = 0;
6216 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6217 char *arg2 = (char *) 0 ;
6218 void *argp1 = 0 ;
6219 int res1 = 0 ;
6220 int res2 ;
6221 char *buf2 = 0 ;
6222 int alloc2 = 0 ;
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
6225
6226 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetProcessPluginName",&obj0,&obj1)) SWIG_failgoto fail;
6227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6228 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6229 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)
;
6230 }
6231 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6232 res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL__null, &alloc2);
6233 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6234 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)
;
6235 }
6236 arg2 = reinterpret_cast< char * >(buf2);
6237 {
6238 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6239 (arg1)->SetProcessPluginName((char const *)arg2);
6240 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6241 }
6242 resultobj = SWIG_Py_Void();
6243 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
6244 return resultobj;
6245fail:
6246 if (alloc2 == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf2;
6247 return NULL__null;
6248}
6249
6250
6251SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6252 PyObject *resultobj = 0;
6253 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6254 void *argp1 = 0 ;
6255 int res1 = 0 ;
6256 PyObject * obj0 = 0 ;
6257 uint32_t result;
6258
6259 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetUserID",&obj0)) SWIG_failgoto fail;
6260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6261 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6262 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)
;
6263 }
6264 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6265 {
6266 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6267 result = (uint32_t)(arg1)->GetUserID();
6268 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6269 }
6270 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6271 return resultobj;
6272fail:
6273 return NULL__null;
6274}
6275
6276
6277SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6278 PyObject *resultobj = 0;
6279 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6280 void *argp1 = 0 ;
6281 int res1 = 0 ;
6282 PyObject * obj0 = 0 ;
6283 uint32_t result;
6284
6285 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetGroupID",&obj0)) SWIG_failgoto fail;
6286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6287 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6288 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)
;
6289 }
6290 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6291 {
6292 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6293 result = (uint32_t)(arg1)->GetGroupID();
6294 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6295 }
6296 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6297 return resultobj;
6298fail:
6299 return NULL__null;
6300}
6301
6302
6303SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_UserIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6304 PyObject *resultobj = 0;
6305 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6306 void *argp1 = 0 ;
6307 int res1 = 0 ;
6308 PyObject * obj0 = 0 ;
6309 bool result;
6310
6311 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_UserIDIsValid",&obj0)) SWIG_failgoto fail;
6312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6313 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6314 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)
;
6315 }
6316 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6317 {
6318 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6319 result = (bool)(arg1)->UserIDIsValid();
6320 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6321 }
6322 resultobj = SWIG_From_bool(static_cast< bool >(result));
6323 return resultobj;
6324fail:
6325 return NULL__null;
6326}
6327
6328
6329SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GroupIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6330 PyObject *resultobj = 0;
6331 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6332 void *argp1 = 0 ;
6333 int res1 = 0 ;
6334 PyObject * obj0 = 0 ;
6335 bool result;
6336
6337 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GroupIDIsValid",&obj0)) SWIG_failgoto fail;
6338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6339 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6340 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)
;
6341 }
6342 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6343 {
6344 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6345 result = (bool)(arg1)->GroupIDIsValid();
6346 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6347 }
6348 resultobj = SWIG_From_bool(static_cast< bool >(result));
6349 return resultobj;
6350fail:
6351 return NULL__null;
6352}
6353
6354
6355SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6356 PyObject *resultobj = 0;
6357 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6358 uint32_t arg2 ;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 unsigned int val2 ;
6362 int ecode2 = 0 ;
6363 PyObject * obj0 = 0 ;
6364 PyObject * obj1 = 0 ;
6365
6366 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetUserID",&obj0,&obj1)) SWIG_failgoto fail;
6367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6368 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6369 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)
;
6370 }
6371 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6372 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6373 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6374 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)
;
6375 }
6376 arg2 = static_cast< uint32_t >(val2);
6377 {
6378 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6379 (arg1)->SetUserID(arg2);
6380 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6381 }
6382 resultobj = SWIG_Py_Void();
6383 return resultobj;
6384fail:
6385 return NULL__null;
6386}
6387
6388
6389SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6390 PyObject *resultobj = 0;
6391 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6392 uint32_t arg2 ;
6393 void *argp1 = 0 ;
6394 int res1 = 0 ;
6395 unsigned int val2 ;
6396 int ecode2 = 0 ;
6397 PyObject * obj0 = 0 ;
6398 PyObject * obj1 = 0 ;
6399
6400 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetGroupID",&obj0,&obj1)) SWIG_failgoto fail;
6401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6402 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6403 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)
;
6404 }
6405 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6406 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6407 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6408 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)
;
6409 }
6410 arg2 = static_cast< uint32_t >(val2);
6411 {
6412 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6413 (arg1)->SetGroupID(arg2);
6414 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6415 }
6416 resultobj = SWIG_Py_Void();
6417 return resultobj;
6418fail:
6419 return NULL__null;
6420}
6421
6422
6423SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetEffectiveUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424 PyObject *resultobj = 0;
6425 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6426 void *argp1 = 0 ;
6427 int res1 = 0 ;
6428 PyObject * obj0 = 0 ;
6429 uint32_t result;
6430
6431 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetEffectiveUserID",&obj0)) SWIG_failgoto fail;
6432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6433 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6434 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)
;
6435 }
6436 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6437 {
6438 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6439 result = (uint32_t)(arg1)->GetEffectiveUserID();
6440 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6441 }
6442 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6443 return resultobj;
6444fail:
6445 return NULL__null;
6446}
6447
6448
6449SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetEffectiveGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6450 PyObject *resultobj = 0;
6451 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6452 void *argp1 = 0 ;
6453 int res1 = 0 ;
6454 PyObject * obj0 = 0 ;
6455 uint32_t result;
6456
6457 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetEffectiveGroupID",&obj0)) SWIG_failgoto fail;
6458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6459 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6460 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)
;
6461 }
6462 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6463 {
6464 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6465 result = (uint32_t)(arg1)->GetEffectiveGroupID();
6466 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6467 }
6468 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
6469 return resultobj;
6470fail:
6471 return NULL__null;
6472}
6473
6474
6475SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_EffectiveUserIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6476 PyObject *resultobj = 0;
6477 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6478 void *argp1 = 0 ;
6479 int res1 = 0 ;
6480 PyObject * obj0 = 0 ;
6481 bool result;
6482
6483 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_EffectiveUserIDIsValid",&obj0)) SWIG_failgoto fail;
6484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6485 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6486 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)
;
6487 }
6488 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6489 {
6490 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6491 result = (bool)(arg1)->EffectiveUserIDIsValid();
6492 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6493 }
6494 resultobj = SWIG_From_bool(static_cast< bool >(result));
6495 return resultobj;
6496fail:
6497 return NULL__null;
6498}
6499
6500
6501SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_EffectiveGroupIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6502 PyObject *resultobj = 0;
6503 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6504 void *argp1 = 0 ;
6505 int res1 = 0 ;
6506 PyObject * obj0 = 0 ;
6507 bool result;
6508
6509 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_EffectiveGroupIDIsValid",&obj0)) SWIG_failgoto fail;
6510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6511 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6512 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)
;
6513 }
6514 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6515 {
6516 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6517 result = (bool)(arg1)->EffectiveGroupIDIsValid();
6518 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6519 }
6520 resultobj = SWIG_From_bool(static_cast< bool >(result));
6521 return resultobj;
6522fail:
6523 return NULL__null;
6524}
6525
6526
6527SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetEffectiveUserID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6528 PyObject *resultobj = 0;
6529 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6530 uint32_t arg2 ;
6531 void *argp1 = 0 ;
6532 int res1 = 0 ;
6533 unsigned int val2 ;
6534 int ecode2 = 0 ;
6535 PyObject * obj0 = 0 ;
6536 PyObject * obj1 = 0 ;
6537
6538 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetEffectiveUserID",&obj0,&obj1)) SWIG_failgoto fail;
6539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6540 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6541 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)
;
6542 }
6543 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6544 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6545 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6546 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)
;
6547 }
6548 arg2 = static_cast< uint32_t >(val2);
6549 {
6550 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6551 (arg1)->SetEffectiveUserID(arg2);
6552 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6553 }
6554 resultobj = SWIG_Py_Void();
6555 return resultobj;
6556fail:
6557 return NULL__null;
6558}
6559
6560
6561SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetEffectiveGroupID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6562 PyObject *resultobj = 0;
6563 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6564 uint32_t arg2 ;
6565 void *argp1 = 0 ;
6566 int res1 = 0 ;
6567 unsigned int val2 ;
6568 int ecode2 = 0 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571
6572 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetEffectiveGroupID",&obj0,&obj1)) SWIG_failgoto fail;
6573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6574 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6575 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)
;
6576 }
6577 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6578 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
6579 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6580 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)
;
6581 }
6582 arg2 = static_cast< uint32_t >(val2);
6583 {
6584 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6585 (arg1)->SetEffectiveGroupID(arg2);
6586 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6587 }
6588 resultobj = SWIG_Py_Void();
6589 return resultobj;
6590fail:
6591 return NULL__null;
6592}
6593
6594
6595SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetParentProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6596 PyObject *resultobj = 0;
6597 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6598 void *argp1 = 0 ;
6599 int res1 = 0 ;
6600 PyObject * obj0 = 0 ;
6601 lldb::pid_t result;
6602
6603 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetParentProcessID",&obj0)) SWIG_failgoto fail;
6604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6605 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6606 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)
;
6607 }
6608 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6609 {
6610 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6611 result = (lldb::pid_t)(arg1)->GetParentProcessID();
6612 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6613 }
6614 resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
6615 return resultobj;
6616fail:
6617 return NULL__null;
6618}
6619
6620
6621SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetParentProcessID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6622 PyObject *resultobj = 0;
6623 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6624 lldb::pid_t arg2 ;
6625 void *argp1 = 0 ;
6626 int res1 = 0 ;
6627 unsigned long long val2 ;
6628 int ecode2 = 0 ;
6629 PyObject * obj0 = 0 ;
6630 PyObject * obj1 = 0 ;
6631
6632 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetParentProcessID",&obj0,&obj1)) SWIG_failgoto fail;
6633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6634 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6635 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)
;
6636 }
6637 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6638 ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2);
6639 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6640 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)
;
6641 }
6642 arg2 = static_cast< lldb::pid_t >(val2);
6643 {
6644 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6645 (arg1)->SetParentProcessID(arg2);
6646 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6647 }
6648 resultobj = SWIG_Py_Void();
6649 return resultobj;
6650fail:
6651 return NULL__null;
6652}
6653
6654
6655SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_ParentProcessIDIsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6656 PyObject *resultobj = 0;
6657 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6658 void *argp1 = 0 ;
6659 int res1 = 0 ;
6660 PyObject * obj0 = 0 ;
6661 bool result;
6662
6663 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_ParentProcessIDIsValid",&obj0)) SWIG_failgoto fail;
6664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6665 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6666 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)
;
6667 }
6668 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6669 {
6670 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6671 result = (bool)(arg1)->ParentProcessIDIsValid();
6672 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6673 }
6674 resultobj = SWIG_From_bool(static_cast< bool >(result));
6675 return resultobj;
6676fail:
6677 return NULL__null;
6678}
6679
6680
6681SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_GetListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6682 PyObject *resultobj = 0;
6683 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 PyObject * obj0 = 0 ;
6687 lldb::SBListener result;
6688
6689 if (!PyArg_ParseTuple(args,(char *)"O:SBAttachInfo_GetListener",&obj0)) SWIG_failgoto fail;
6690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6691 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6692 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)
;
6693 }
6694 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6695 {
6696 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6697 result = (arg1)->GetListener();
6698 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6699 }
6700 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)
;
6701 return resultobj;
6702fail:
6703 return NULL__null;
6704}
6705
6706
6707SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAttachInfo_SetListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6708 PyObject *resultobj = 0;
6709 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6710 lldb::SBListener *arg2 = 0 ;
6711 void *argp1 = 0 ;
6712 int res1 = 0 ;
6713 void *argp2 = 0 ;
6714 int res2 = 0 ;
6715 PyObject * obj0 = 0 ;
6716 PyObject * obj1 = 0 ;
6717
6718 if (!PyArg_ParseTuple(args,(char *)"OO:SBAttachInfo_SetListener",&obj0,&obj1)) SWIG_failgoto fail;
6719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
6720 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6721 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)
;
6722 }
6723 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBListener, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37]
, 0, 0)
;
6725 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6726 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)
;
6727 }
6728 if (!argp2) {
6729 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)
;
6730 }
6731 arg2 = reinterpret_cast< lldb::SBListener * >(argp2);
6732 {
6733 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6734 (arg1)->SetListener(*arg2);
6735 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6736 }
6737 resultobj = SWIG_Py_Void();
6738 return resultobj;
6739fail:
6740 return NULL__null;
6741}
6742
6743
6744SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SBAttachInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6745 PyObject *resultobj = 0;
6746 lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
6747 void *argp1 = 0 ;
6748 int res1 = 0 ;
6749 PyObject * obj0 = 0 ;
6750
6751 if (!PyArg_ParseTuple(args,(char *)"O:delete_SBAttachInfo",&obj0)) SWIG_failgoto fail;
6752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAttachInfo, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0x1 | 0, 0)
;
6753 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6754 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)
;
6755 }
6756 arg1 = reinterpret_cast< lldb::SBAttachInfo * >(argp1);
6757 {
6758 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6759 delete arg1;
6760 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6761 }
6762 resultobj = SWIG_Py_Void();
6763 return resultobj;
6764fail:
6765 return NULL__null;
6766}
6767
6768
6769SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SBAttachInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6770 PyObject *obj;
6771 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
6772 SWIG_TypeNewClientData(SWIGTYPE_p_lldb__SBAttachInfoswig_types[9], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
6773 return SWIG_Py_Void();
6774}
6775
6776SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBBlock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6777 PyObject *resultobj = 0;
6778 lldb::SBBlock *result = 0 ;
6779
6780 if (!PyArg_ParseTuple(args,(char *)":new_SBBlock")) SWIG_failgoto fail;
6781 {
6782 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6783 result = (lldb::SBBlock *)new lldb::SBBlock();
6784 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6785 }
6786 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)
;
6787 return resultobj;
6788fail:
6789 return NULL__null;
6790}
6791
6792
6793SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBBlock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6794 PyObject *resultobj = 0;
6795 lldb::SBBlock *arg1 = 0 ;
6796 void *argp1 = 0 ;
6797 int res1 = 0 ;
6798 PyObject * obj0 = 0 ;
6799 lldb::SBBlock *result = 0 ;
6800
6801 if (!PyArg_ParseTuple(args,(char *)"O:new_SBBlock",&obj0)) SWIG_failgoto fail;
6802 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBBlock, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
6803 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6804 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)
;
6805 }
6806 if (!argp1) {
6807 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)
;
6808 }
6809 arg1 = reinterpret_cast< lldb::SBBlock * >(argp1);
6810 {
6811 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
6812 result = (lldb::SBBlock *)new lldb::SBBlock((lldb::SBBlock const &)*arg1);
6813 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
6814 }
6815 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)
;
6816 return resultobj;
6817fail:
6818 return NULL__null;
6819}
6820
6821
6822SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBBlock(PyObject *self, PyObject *args) {
6823 Py_ssize_t argc;
6824 PyObject *argv[2] = {
6825 0
6826 };
6827 Py_ssize_t ii;
6828
6829 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6830 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
6831 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
6832 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6833 }
6834 if (argc == 0) {
6835 return _wrap_new_SBBlock__SWIG_0(self, args);
6836 }
6837 if (argc == 1) {
6838 int _v;
6839 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBBlock, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[10], 0, 0
)
;
6840 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6841 if (_v) {
6842 return _wrap_new_SBBlock__SWIG_1(self, args);
6843 }
6844 }
6845
6846fail:
6847 SWIG_SetErrorMsgSW