[Lldb-commits] [lldb] r167220 [2/3] - in /lldb/branches/windows: ./ include/lldb/ include/lldb/API/ include/lldb/Core/ scripts/ source/Expression/ source/Plugins/SymbolFile/DWARF/ source/Symbol/ source/Target/ tools/driver/
Carlo Kok
ck at remobjects.com
Thu Nov 1 00:39:11 PDT 2012
Removed: lldb/branches/windows/scripts/lldb_wrap.cxx
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/scripts/lldb_wrap.cxx?rev=167219&view=auto
==============================================================================
--- lldb/branches/windows/scripts/lldb_wrap.cxx (original)
+++ lldb/branches/windows/scripts/lldb_wrap.cxx (removed)
@@ -1,16594 +0,0 @@
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.8
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-#define SWIGCSHARP
-
-
-#ifdef __cplusplus
-/* SwigValueWrapper is described in swig.swg */
-template<typename T> class SwigValueWrapper {
- struct SwigMovePointer {
- T *ptr;
- SwigMovePointer(T *p) : ptr(p) { }
- ~SwigMovePointer() { delete ptr; }
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
- } pointer;
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
-public:
- SwigValueWrapper() : pointer(0) { }
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
- operator T&() const { return *pointer.ptr; }
- T *operator&() { return pointer.ptr; }
-};
-
-template <typename T> T SwigValueInit() {
- return T();
-}
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# elif defined(__HP_aCC)
-/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
-/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIG_MSC_UNSUPPRESS_4505
-# if defined(_MSC_VER)
-# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
-#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
-# define _SCL_SECURE_NO_DEPRECATE
-#endif
-
-
-
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-
-
-/* Support for throwing C# exceptions from C/C++. There are two types:
- * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */
-typedef enum {
- SWIG_CSharpApplicationException,
- SWIG_CSharpArithmeticException,
- SWIG_CSharpDivideByZeroException,
- SWIG_CSharpIndexOutOfRangeException,
- SWIG_CSharpInvalidCastException,
- SWIG_CSharpInvalidOperationException,
- SWIG_CSharpIOException,
- SWIG_CSharpNullReferenceException,
- SWIG_CSharpOutOfMemoryException,
- SWIG_CSharpOverflowException,
- SWIG_CSharpSystemException
-} SWIG_CSharpExceptionCodes;
-
-typedef enum {
- SWIG_CSharpArgumentException,
- SWIG_CSharpArgumentNullException,
- SWIG_CSharpArgumentOutOfRangeException
-} SWIG_CSharpExceptionArgumentCodes;
-
-typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *);
-typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *);
-
-typedef struct {
- SWIG_CSharpExceptionCodes code;
- SWIG_CSharpExceptionCallback_t callback;
-} SWIG_CSharpException_t;
-
-typedef struct {
- SWIG_CSharpExceptionArgumentCodes code;
- SWIG_CSharpExceptionArgumentCallback_t callback;
-} SWIG_CSharpExceptionArgument_t;
-
-static SWIG_CSharpException_t SWIG_csharp_exceptions[] = {
- { SWIG_CSharpApplicationException, NULL },
- { SWIG_CSharpArithmeticException, NULL },
- { SWIG_CSharpDivideByZeroException, NULL },
- { SWIG_CSharpIndexOutOfRangeException, NULL },
- { SWIG_CSharpInvalidCastException, NULL },
- { SWIG_CSharpInvalidOperationException, NULL },
- { SWIG_CSharpIOException, NULL },
- { SWIG_CSharpNullReferenceException, NULL },
- { SWIG_CSharpOutOfMemoryException, NULL },
- { SWIG_CSharpOverflowException, NULL },
- { SWIG_CSharpSystemException, NULL }
-};
-
-static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
- { SWIG_CSharpArgumentException, NULL },
- { SWIG_CSharpArgumentNullException, NULL },
- { SWIG_CSharpArgumentOutOfRangeException, NULL }
-};
-
-static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
- SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback;
- if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) {
- callback = SWIG_csharp_exceptions[code].callback;
- }
- callback(msg);
-}
-
-static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) {
- SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback;
- if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
- callback = SWIG_csharp_exceptions_argument[code].callback;
- }
- callback(msg, param_name);
-}
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_lldb(
- SWIG_CSharpExceptionCallback_t applicationCallback,
- SWIG_CSharpExceptionCallback_t arithmeticCallback,
- SWIG_CSharpExceptionCallback_t divideByZeroCallback,
- SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback,
- SWIG_CSharpExceptionCallback_t invalidCastCallback,
- SWIG_CSharpExceptionCallback_t invalidOperationCallback,
- SWIG_CSharpExceptionCallback_t ioCallback,
- SWIG_CSharpExceptionCallback_t nullReferenceCallback,
- SWIG_CSharpExceptionCallback_t outOfMemoryCallback,
- SWIG_CSharpExceptionCallback_t overflowCallback,
- SWIG_CSharpExceptionCallback_t systemCallback) {
- SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback;
- SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback;
- SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback;
- SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback;
- SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback;
- SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback;
- SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback;
- SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback;
- SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback;
- SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback;
- SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback;
-}
-
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_lldb(
- SWIG_CSharpExceptionArgumentCallback_t argumentCallback,
- SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback,
- SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) {
- SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback;
- SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback;
- SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback;
-}
-
-
-/* Callback for returning strings to C# without leaking memory */
-typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
-static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL;
-
-
-#ifdef __cplusplus
-extern "C"
-#endif
-SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_lldb(SWIG_CSharpStringHelperCallback callback) {
- SWIG_csharp_string_callback = callback;
-}
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else
-
-
-#include <string>
-
-
-#include "lldb/lldb-public.h"
-#include "lldb/API/SBAddress.h"
-#include "lldb/API/SBBlock.h"
-#include "lldb/API/SBBreakpoint.h"
-#include "lldb/API/SBBreakpointLocation.h"
-#include "lldb/API/SBBroadcaster.h"
-#include "lldb/API/SBCommandInterpreter.h"
-#include "lldb/API/SBCommandReturnObject.h"
-#include "lldb/API/SBCommunication.h"
-#include "lldb/API/SBCompileUnit.h"
-#include "lldb/API/SBData.h"
-#include "lldb/API/SBDebugger.h"
-#include "lldb/API/SBError.h"
-#include "lldb/API/SBEvent.h"
-#include "lldb/API/SBFileSpec.h"
-#include "lldb/API/SBFileSpecList.h"
-#include "lldb/API/SBFrame.h"
-#include "lldb/API/SBFunction.h"
-#include "lldb/API/SBHostOS.h"
-#include "lldb/API/SBInputReader.h"
-#include "lldb/API/SBInstruction.h"
-#include "lldb/API/SBInstructionList.h"
-#include "lldb/API/SBLineEntry.h"
-#include "lldb/API/SBListener.h"
-#include "lldb/API/SBModule.h"
-#include "lldb/API/SBProcess.h"
-#include "lldb/API/SBSection.h"
-#include "lldb/API/SBSourceManager.h"
-#include "lldb/API/SBStream.h"
-#include "lldb/API/SBStringList.h"
-#include "lldb/API/SBSymbol.h"
-#include "lldb/API/SBSymbolContext.h"
-#include "lldb/API/SBSymbolContextList.h"
-#include "lldb/API/SBTarget.h"
-#include "lldb/API/SBThread.h"
-#include "lldb/API/SBType.h"
-#include "lldb/API/SBTypeCategory.h"
-#include "lldb/API/SBTypeFilter.h"
-#include "lldb/API/SBTypeFormat.h"
-#include "lldb/API/SBTypeNameSpecifier.h"
-#include "lldb/API/SBTypeSummary.h"
-#include "lldb/API/SBTypeSynthetic.h"
-#include "lldb/API/SBValue.h"
-#include "lldb/API/SBValueList.h"
-#include "lldb/API/SBWatchpoint.h"
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_UINT32_MAX_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(4294967295U);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_UINT64_MAX_get() {
- unsigned long long jresult ;
- unsigned long long result;
-
- result = (unsigned long long)(18446744073709551615ULL);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_GENERIC_ERROR_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(4294967295U);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_INVALID_BREAK_ID_get() {
- int jresult ;
- int result;
-
- result = (int)(0);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_DEFAULT_BREAK_SIZE_get() {
- int jresult ;
- int result;
-
- result = (int)(0);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_INVALID_WATCH_ID_get() {
- int jresult ;
- int result;
-
- result = (int)(0);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_WATCH_TYPE_READ_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1u << 0));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_WATCH_TYPE_WRITE_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1u << 1));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_PC_get() {
- int jresult ;
- int result;
-
- result = (int)(0);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_SP_get() {
- int jresult ;
- int result;
-
- result = (int)(1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_FP_get() {
- int jresult ;
- int result;
-
- result = (int)(2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_RA_get() {
- int jresult ;
- int result;
-
- result = (int)(3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_FLAGS_get() {
- int jresult ;
- int result;
-
- result = (int)(4);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG1_get() {
- int jresult ;
- int result;
-
- result = (int)(5);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG2_get() {
- int jresult ;
- int result;
-
- result = (int)(6);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG3_get() {
- int jresult ;
- int result;
-
- result = (int)(7);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG4_get() {
- int jresult ;
- int result;
-
- result = (int)(8);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG5_get() {
- int jresult ;
- int result;
-
- result = (int)(9);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG6_get() {
- int jresult ;
- int result;
-
- result = (int)(10);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG7_get() {
- int jresult ;
- int result;
-
- result = (int)(11);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_REGNUM_GENERIC_ARG8_get() {
- int jresult ;
- int result;
-
- result = (int)(12);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_LLDB_INVALID_ADDRESS_get() {
- unsigned long long jresult ;
- unsigned long long result;
-
- result = (unsigned long long)(18446744073709551615ULL);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_INVALID_INDEX32_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(4294967295U);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_INVALID_IVAR_OFFSET_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(4294967295U);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_INVALID_IMAGE_TOKEN_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(4294967295U);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_INVALID_REGNUM_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(4294967295U);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_LLDB_INVALID_UID_get() {
- unsigned long long jresult ;
- unsigned long long result;
-
- result = (unsigned long long)(18446744073709551615ULL);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_INVALID_PROCESS_ID_get() {
- int jresult ;
- int result;
-
- result = (int)(0);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_INVALID_THREAD_ID_get() {
- int jresult ;
- int result;
-
- result = (int)(0);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_INVALID_FRAME_ID_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(4294967295U);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_LLDB_ARCH_DEFAULT_get() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)("systemArch");
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_LLDB_ARCH_DEFAULT_32BIT_get() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)("systemArch32");
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_LLDB_ARCH_DEFAULT_64BIT_get() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)("systemArch64");
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_INVALID_CPUTYPE_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((0xFFFFFFFEu));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_LLDB_MAX_NUM_OPTION_SETS_get() {
- int jresult ;
- int result;
-
- result = (int)(32);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_ALL_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)(0xFFFFFFFFU);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_1_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 0));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_2_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 1));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_3_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 2));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_4_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 3));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_5_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 4));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_6_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 5));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_7_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 6));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_8_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 7));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_9_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 8));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_LLDB_OPT_SET_10_get() {
- unsigned int jresult ;
- unsigned int result;
-
- result = (unsigned int)((1U << 9));
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAddress__SWIG_0() {
- void * jresult ;
- lldb::SBAddress *result = 0 ;
-
- result = (lldb::SBAddress *)new lldb::SBAddress();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAddress__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = 0 ;
- lldb::SBAddress *result = 0 ;
-
- arg1 = (lldb::SBAddress *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBAddress const & type is null", 0);
- return 0;
- }
- result = (lldb::SBAddress *)new lldb::SBAddress((lldb::SBAddress const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAddress__SWIG_2(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBSection arg1 ;
- lldb::addr_t arg2 ;
- lldb::SBSection *argp1 ;
- lldb::addr_t *argp2 ;
- lldb::SBAddress *result = 0 ;
-
- argp1 = (lldb::SBSection *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBSection", 0);
- return 0;
- }
- arg1 = *argp1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (lldb::SBAddress *)new lldb::SBAddress(arg1,arg2);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAddress__SWIG_3(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::addr_t arg1 ;
- lldb::SBTarget *arg2 = 0 ;
- lldb::addr_t *argp1 ;
- lldb::SBAddress *result = 0 ;
-
- argp1 = (lldb::addr_t *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg1 = *argp1;
- arg2 = (lldb::SBTarget *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget & type is null", 0);
- return 0;
- }
- result = (lldb::SBAddress *)new lldb::SBAddress(arg1,*arg2);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBAddress(void * jarg1) {
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
-
- arg1 = (lldb::SBAddress *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAddress_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (bool)((lldb::SBAddress const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAddress_Clear(void * jarg1) {
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
-
- arg1 = (lldb::SBAddress *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetFileAddress(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = ((lldb::SBAddress const *)arg1)->GetFileAddress();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetLoadAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBTarget *arg2 = 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- arg2 = (lldb::SBTarget *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget const & type is null", 0);
- return 0;
- }
- result = ((lldb::SBAddress const *)arg1)->GetLoadAddress((lldb::SBTarget const &)*arg2);
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAddress_SetLoadAddress(void * jarg1, void * jarg2, void * jarg3) {
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::addr_t arg2 ;
- lldb::SBTarget *arg3 = 0 ;
- lldb::addr_t *argp2 ;
-
- arg1 = (lldb::SBAddress *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return ;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBTarget *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget & type is null", 0);
- return ;
- }
- (arg1)->SetLoadAddress(arg2,*arg3);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAddress_OffsetAddress(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->OffsetAddress(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAddress_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetSection(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBSection result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetSection();
- jresult = new lldb::SBSection((const lldb::SBSection &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetOffset(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetOffset();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAddress_SetAddress(void * jarg1, void * jarg2, void * jarg3) {
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBSection arg2 ;
- lldb::addr_t arg3 ;
- lldb::SBSection *argp2 ;
- lldb::addr_t *argp3 ;
-
- arg1 = (lldb::SBAddress *)jarg1;
- argp2 = (lldb::SBSection *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBSection", 0);
- return ;
- }
- arg2 = *argp2;
- argp3 = (lldb::addr_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return ;
- }
- arg3 = *argp3;
- (arg1)->SetAddress(arg2,arg3);
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBAddress_GetAddressClass(void * jarg1) {
- int jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::AddressClass result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (lldb::AddressClass)(arg1)->GetAddressClass();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetSymbolContext(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBSymbolContext result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetSymbolContext(arg2);
- jresult = new lldb::SBSymbolContext((const lldb::SBSymbolContext &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetModule(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBModule result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetModule();
- jresult = new lldb::SBModule((const lldb::SBModule &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetCompileUnit(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBCompileUnit result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetCompileUnit();
- jresult = new lldb::SBCompileUnit((const lldb::SBCompileUnit &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetFunction(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBFunction result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetFunction();
- jresult = new lldb::SBFunction((const lldb::SBFunction &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetBlock(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetBlock();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetSymbol(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBSymbol result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetSymbol();
- jresult = new lldb::SBSymbol((const lldb::SBSymbol &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAddress_GetLineEntry(void * jarg1) {
- void * jresult ;
- lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ;
- lldb::SBLineEntry result;
-
- arg1 = (lldb::SBAddress *)jarg1;
- result = (arg1)->GetLineEntry();
- jresult = new lldb::SBLineEntry((const lldb::SBLineEntry &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBlock__SWIG_0() {
- void * jresult ;
- lldb::SBBlock *result = 0 ;
-
- result = (lldb::SBBlock *)new lldb::SBBlock();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBlock__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = 0 ;
- lldb::SBBlock *result = 0 ;
-
- arg1 = (lldb::SBBlock *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBlock const & type is null", 0);
- return 0;
- }
- result = (lldb::SBBlock *)new lldb::SBBlock((lldb::SBBlock const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBBlock(void * jarg1) {
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
-
- arg1 = (lldb::SBBlock *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBlock_IsInlined(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (bool)((lldb::SBBlock const *)arg1)->IsInlined();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBlock_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (bool)((lldb::SBBlock const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBlock_GetInlinedName(void * jarg1) {
- char * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (char *)((lldb::SBBlock const *)arg1)->GetInlinedName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetInlinedCallSiteFile(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = ((lldb::SBBlock const *)arg1)->GetInlinedCallSiteFile();
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetInlinedCallSiteLine(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = ((lldb::SBBlock const *)arg1)->GetInlinedCallSiteLine();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetInlinedCallSiteColumn(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = ((lldb::SBBlock const *)arg1)->GetInlinedCallSiteColumn();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetParent(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (arg1)->GetParent();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetContainingInlinedBlock(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (arg1)->GetContainingInlinedBlock();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetSibling(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (arg1)->GetSibling();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetFirstChild(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (arg1)->GetFirstChild();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetNumRanges(void * jarg1) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- result = (arg1)->GetNumRanges();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetRangeStartAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetRangeStartAddress(arg2);
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetRangeEndAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetRangeEndAddress(arg2);
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetRangeIndexForBlockAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBAddress arg2 ;
- lldb::SBAddress *argp2 ;
- uint32_t result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- argp2 = (lldb::SBAddress *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBAddress", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetRangeIndexForBlockAddress(arg2);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBlock_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetVariables__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, unsigned int jarg4, unsigned int jarg5, int jarg6) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBFrame *arg2 = 0 ;
- bool arg3 ;
- bool arg4 ;
- bool arg5 ;
- lldb::DynamicValueType arg6 ;
- lldb::SBValueList result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- arg2 = (lldb::SBFrame *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFrame & type is null", 0);
- return 0;
- }
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- arg5 = jarg5 ? true : false;
- arg6 = (lldb::DynamicValueType)jarg6;
- result = (arg1)->GetVariables(*arg2,arg3,arg4,arg5,arg6);
- jresult = new lldb::SBValueList((const lldb::SBValueList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBlock_GetVariables__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3, unsigned int jarg4, unsigned int jarg5) {
- void * jresult ;
- lldb::SBBlock *arg1 = (lldb::SBBlock *) 0 ;
- lldb::SBTarget *arg2 = 0 ;
- bool arg3 ;
- bool arg4 ;
- bool arg5 ;
- lldb::SBValueList result;
-
- arg1 = (lldb::SBBlock *)jarg1;
- arg2 = (lldb::SBTarget *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget & type is null", 0);
- return 0;
- }
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- arg5 = jarg5 ? true : false;
- result = (arg1)->GetVariables(*arg2,arg3,arg4,arg5);
- jresult = new lldb::SBValueList((const lldb::SBValueList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBreakpoint__SWIG_0() {
- void * jresult ;
- lldb::SBBreakpoint *result = 0 ;
-
- result = (lldb::SBBreakpoint *)new lldb::SBBreakpoint();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBreakpoint__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = 0 ;
- lldb::SBBreakpoint *result = 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBreakpoint const & type is null", 0);
- return 0;
- }
- result = (lldb::SBBreakpoint *)new lldb::SBBreakpoint((lldb::SBBreakpoint const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBBreakpoint(void * jarg1) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetID(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::break_id_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = ((lldb::SBBreakpoint const *)arg1)->GetID();
- jresult = new lldb::break_id_t((const lldb::break_id_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpoint_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = (bool)((lldb::SBBreakpoint const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_ClearAllBreakpointSites(void * jarg1) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- (arg1)->ClearAllBreakpointSites();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_FindLocationByAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- lldb::SBBreakpointLocation result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->FindLocationByAddress(arg2);
- jresult = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_FindLocationIDByAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- lldb::break_id_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->FindLocationIDByAddress(arg2);
- jresult = new lldb::break_id_t((const lldb::break_id_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_FindLocationByID(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::break_id_t arg2 ;
- lldb::break_id_t *argp2 ;
- lldb::SBBreakpointLocation result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- argp2 = (lldb::break_id_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::break_id_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->FindLocationByID(arg2);
- jresult = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetLocationAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBBreakpointLocation result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetLocationAtIndex(arg2);
- jresult = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetEnabled(void * jarg1, unsigned int jarg2) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetEnabled(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpoint_IsEnabled(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = (bool)(arg1)->IsEnabled();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetHitCount(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = ((lldb::SBBreakpoint const *)arg1)->GetHitCount();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetIgnoreCount(void * jarg1, void * jarg2) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetIgnoreCount(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetIgnoreCount(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = ((lldb::SBBreakpoint const *)arg1)->GetIgnoreCount();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetCondition(void * jarg1, char * jarg2) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetCondition((char const *)arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBreakpoint_GetCondition(void * jarg1) {
- char * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = (char *)(arg1)->GetCondition();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetThreadID(void * jarg1, void * jarg2) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::tid_t arg2 ;
- lldb::tid_t *argp2 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- argp2 = (lldb::tid_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::tid_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetThreadID(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetThreadID(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::tid_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = (arg1)->GetThreadID();
- jresult = new lldb::tid_t((const lldb::tid_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetThreadIndex(void * jarg1, void * jarg2) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetThreadIndex(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetThreadIndex(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = ((lldb::SBBreakpoint const *)arg1)->GetThreadIndex();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetThreadName(void * jarg1, char * jarg2) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetThreadName((char const *)arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBreakpoint_GetThreadName(void * jarg1) {
- char * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = (char *)((lldb::SBBreakpoint const *)arg1)->GetThreadName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetQueueName(void * jarg1, char * jarg2) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetQueueName((char const *)arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBreakpoint_GetQueueName(void * jarg1) {
- char * jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = (char *)((lldb::SBBreakpoint const *)arg1)->GetQueueName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpoint_SetCallback(void * jarg1, void * jarg2, void* jarg3) {
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::SBBreakpoint::BreakpointHitCallback arg2 = (lldb::SBBreakpoint::BreakpointHitCallback) 0 ;
- void *arg3 = (void *) 0 ;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- arg2 = (lldb::SBBreakpoint::BreakpointHitCallback)jarg2;
- arg3 = (void *)jarg3; /* IntPtr */
- (arg1)->SetCallback(arg2,arg3);
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBBreakpoint_GetNumResolvedLocations(void * jarg1) {
- unsigned long jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = ((lldb::SBBreakpoint const *)arg1)->GetNumResolvedLocations();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBBreakpoint_GetNumLocations(void * jarg1) {
- unsigned long jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- result = ((lldb::SBBreakpoint const *)arg1)->GetNumLocations();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpoint_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBBreakpoint *arg1 = (lldb::SBBreakpoint *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBBreakpoint *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpoint_EventIsBreakpointEvent(void * jarg1) {
- unsigned int jresult ;
- lldb::SBEvent *arg1 = 0 ;
- bool result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (bool)lldb::SBBreakpoint::EventIsBreakpointEvent((lldb::SBEvent const &)*arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBBreakpoint_GetBreakpointEventTypeFromEvent(void * jarg1) {
- int jresult ;
- lldb::SBEvent *arg1 = 0 ;
- lldb::BreakpointEventType result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (lldb::BreakpointEventType)lldb::SBBreakpoint::GetBreakpointEventTypeFromEvent((lldb::SBEvent const &)*arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetBreakpointFromEvent(void * jarg1) {
- void * jresult ;
- lldb::SBEvent *arg1 = 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = lldb::SBBreakpoint::GetBreakpointFromEvent((lldb::SBEvent const &)*arg1);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBEvent *arg1 = 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBBreakpointLocation result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = lldb::SBBreakpoint::GetBreakpointLocationAtIndexFromEvent((lldb::SBEvent const &)*arg1,arg2);
- jresult = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpoint_GetNumBreakpointLocationsFromEvent(void * jarg1) {
- void * jresult ;
- lldb::SBEvent *arg1 = 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = lldb::SBBreakpoint::GetNumBreakpointLocationsFromEvent((lldb::SBEvent const &)*arg1);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBreakpointLocation__SWIG_0() {
- void * jresult ;
- lldb::SBBreakpointLocation *result = 0 ;
-
- result = (lldb::SBBreakpointLocation *)new lldb::SBBreakpointLocation();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBreakpointLocation__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = 0 ;
- lldb::SBBreakpointLocation *result = 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBreakpointLocation const & type is null", 0);
- return 0;
- }
- result = (lldb::SBBreakpointLocation *)new lldb::SBBreakpointLocation((lldb::SBBreakpointLocation const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBBreakpointLocation(void * jarg1) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpointLocation_GetID(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- lldb::break_id_t result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (arg1)->GetID();
- jresult = new lldb::break_id_t((const lldb::break_id_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpointLocation_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (bool)((lldb::SBBreakpointLocation const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpointLocation_GetAddress(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (arg1)->GetAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpointLocation_GetLoadAddress(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (arg1)->GetLoadAddress();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpointLocation_SetEnabled(void * jarg1, unsigned int jarg2) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetEnabled(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpointLocation_IsEnabled(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (bool)(arg1)->IsEnabled();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpointLocation_GetIgnoreCount(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (arg1)->GetIgnoreCount();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpointLocation_SetIgnoreCount(void * jarg1, void * jarg2) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetIgnoreCount(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpointLocation_SetCondition(void * jarg1, char * jarg2) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetCondition((char const *)arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBreakpointLocation_GetCondition(void * jarg1) {
- char * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (char *)(arg1)->GetCondition();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpointLocation_SetThreadID(void * jarg1, void * jarg2) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- lldb::tid_t arg2 ;
- lldb::tid_t *argp2 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- argp2 = (lldb::tid_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::tid_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetThreadID(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpointLocation_GetThreadID(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- lldb::tid_t result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (arg1)->GetThreadID();
- jresult = new lldb::tid_t((const lldb::tid_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpointLocation_SetThreadIndex(void * jarg1, void * jarg2) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetThreadIndex(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpointLocation_GetThreadIndex(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = ((lldb::SBBreakpointLocation const *)arg1)->GetThreadIndex();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpointLocation_SetThreadName(void * jarg1, char * jarg2) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetThreadName((char const *)arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBreakpointLocation_GetThreadName(void * jarg1) {
- char * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (char *)((lldb::SBBreakpointLocation const *)arg1)->GetThreadName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBreakpointLocation_SetQueueName(void * jarg1, char * jarg2) {
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetQueueName((char const *)arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBreakpointLocation_GetQueueName(void * jarg1) {
- char * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (char *)((lldb::SBBreakpointLocation const *)arg1)->GetQueueName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpointLocation_IsResolved(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (bool)(arg1)->IsResolved();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBreakpointLocation_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBreakpointLocation_GetBreakpoint(void * jarg1) {
- void * jresult ;
- lldb::SBBreakpointLocation *arg1 = (lldb::SBBreakpointLocation *) 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBBreakpointLocation *)jarg1;
- result = (arg1)->GetBreakpoint();
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBroadcaster__SWIG_0() {
- void * jresult ;
- lldb::SBBroadcaster *result = 0 ;
-
- result = (lldb::SBBroadcaster *)new lldb::SBBroadcaster();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBroadcaster__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBBroadcaster *result = 0 ;
-
- arg1 = (char *)jarg1;
- result = (lldb::SBBroadcaster *)new lldb::SBBroadcaster((char const *)arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBBroadcaster__SWIG_2(void * jarg1) {
- void * jresult ;
- lldb::SBBroadcaster *arg1 = 0 ;
- lldb::SBBroadcaster *result = 0 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- result = (lldb::SBBroadcaster *)new lldb::SBBroadcaster((lldb::SBBroadcaster const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBBroadcaster(void * jarg1) {
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBroadcaster_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- bool result;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- result = (bool)((lldb::SBBroadcaster const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBroadcaster_Clear(void * jarg1) {
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBroadcaster_BroadcastEventByType__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- uint32_t arg2 ;
- bool arg3 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- arg3 = jarg3 ? true : false;
- (arg1)->BroadcastEventByType(arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBroadcaster_BroadcastEventByType__SWIG_1(void * jarg1, void * jarg2) {
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->BroadcastEventByType(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBroadcaster_BroadcastEvent__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return ;
- }
- arg3 = jarg3 ? true : false;
- (arg1)->BroadcastEvent((lldb::SBEvent const &)*arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBroadcaster_BroadcastEvent__SWIG_1(void * jarg1, void * jarg2) {
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return ;
- }
- (arg1)->BroadcastEvent((lldb::SBEvent const &)*arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBBroadcaster_AddInitialEventsToListener(void * jarg1, void * jarg2, void * jarg3) {
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener const & type is null", 0);
- return ;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg3 = *argp3;
- (arg1)->AddInitialEventsToListener((lldb::SBListener const &)*arg2,arg3);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBBroadcaster_AddListener(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- uint32_t result;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->AddListener((lldb::SBListener const &)*arg2,arg3);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBBroadcaster_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- result = (char *)((lldb::SBBroadcaster const *)arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBroadcaster_EventTypeHasListeners(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->EventTypeHasListeners(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBroadcaster_RemoveListener__SWIG_0(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- bool result;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->RemoveListener((lldb::SBListener const &)*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBBroadcaster_RemoveListener__SWIG_1(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBBroadcaster *arg1 = (lldb::SBBroadcaster *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBBroadcaster *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->RemoveListener((lldb::SBListener const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_eBroadcastBitThreadShouldExit_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommandInterpreter::eBroadcastBitThreadShouldExit;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_eBroadcastBitResetPrompt_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommandInterpreter::eBroadcastBitResetPrompt;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_eBroadcastBitQuitCommandReceived_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommandInterpreter::eBroadcastBitQuitCommandReceived;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_eBroadcastBitAsynchronousOutputData_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommandInterpreter::eBroadcastBitAsynchronousOutputData;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_eBroadcastBitAsynchronousErrorData_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommandInterpreter::eBroadcastBitAsynchronousErrorData;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBCommandInterpreter(void * jarg1) {
- void * jresult ;
- lldb::SBCommandInterpreter *arg1 = 0 ;
- lldb::SBCommandInterpreter *result = 0 ;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCommandInterpreter const & type is null", 0);
- return 0;
- }
- result = (lldb::SBCommandInterpreter *)new lldb::SBCommandInterpreter((lldb::SBCommandInterpreter const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBCommandInterpreter(void * jarg1) {
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBCommandInterpreter_GetArgumentTypeAsCString(int jarg1) {
- char * jresult ;
- lldb::CommandArgumentType arg1 ;
- char *result = 0 ;
-
- arg1 = (lldb::CommandArgumentType)jarg1;
- result = (char *)lldb::SBCommandInterpreter::GetArgumentTypeAsCString(arg1);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBCommandInterpreter_GetArgumentDescriptionAsCString(int jarg1) {
- char * jresult ;
- lldb::CommandArgumentType arg1 ;
- char *result = 0 ;
-
- arg1 = (lldb::CommandArgumentType)jarg1;
- result = (char *)lldb::SBCommandInterpreter::GetArgumentDescriptionAsCString(arg1);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandInterpreter_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- result = (bool)((lldb::SBCommandInterpreter const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandInterpreter_CommandExists(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->CommandExists((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandInterpreter_AliasExists(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->AliasExists((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCommandInterpreter_GetBroadcaster(void * jarg1) {
- void * jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- lldb::SBBroadcaster result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- result = (arg1)->GetBroadcaster();
- jresult = new lldb::SBBroadcaster((const lldb::SBBroadcaster &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBCommandInterpreter_GetBroadcasterClass() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)lldb::SBCommandInterpreter::GetBroadcasterClass();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandInterpreter_HasCommands(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- result = (bool)(arg1)->HasCommands();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandInterpreter_HasAliases(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- result = (bool)(arg1)->HasAliases();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandInterpreter_HasAliasOptions(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- result = (bool)(arg1)->HasAliasOptions();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCommandInterpreter_GetProcess(void * jarg1) {
- void * jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- result = (arg1)->GetProcess();
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandInterpreter_SourceInitFileInHomeDirectory(void * jarg1, void * jarg2) {
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- lldb::SBCommandReturnObject *arg2 = 0 ;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- arg2 = (lldb::SBCommandReturnObject *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCommandReturnObject & type is null", 0);
- return ;
- }
- (arg1)->SourceInitFileInHomeDirectory(*arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandInterpreter_SourceInitFileInCurrentWorkingDirectory(void * jarg1, void * jarg2) {
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- lldb::SBCommandReturnObject *arg2 = 0 ;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- arg2 = (lldb::SBCommandReturnObject *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCommandReturnObject & type is null", 0);
- return ;
- }
- (arg1)->SourceInitFileInCurrentWorkingDirectory(*arg2);
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_HandleCommand__SWIG_0(void * jarg1, char * jarg2, void * jarg3, unsigned int jarg4) {
- int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBCommandReturnObject *arg3 = 0 ;
- bool arg4 ;
- lldb::ReturnStatus result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::SBCommandReturnObject *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCommandReturnObject & type is null", 0);
- return 0;
- }
- arg4 = jarg4 ? true : false;
- result = (lldb::ReturnStatus)(arg1)->HandleCommand((char const *)arg2,*arg3,arg4);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_HandleCommand__SWIG_1(void * jarg1, char * jarg2, void * jarg3) {
- int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBCommandReturnObject *arg3 = 0 ;
- lldb::ReturnStatus result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::SBCommandReturnObject *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCommandReturnObject & type is null", 0);
- return 0;
- }
- result = (lldb::ReturnStatus)(arg1)->HandleCommand((char const *)arg2,*arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandInterpreter_HandleCompletion(void * jarg1, char * jarg2, void * jarg3, int jarg4, int jarg5, void * jarg6) {
- int jresult ;
- lldb::SBCommandInterpreter *arg1 = (lldb::SBCommandInterpreter *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- int arg4 ;
- int arg5 ;
- lldb::SBStringList *arg6 = 0 ;
- uint32_t *argp3 ;
- int result;
-
- arg1 = (lldb::SBCommandInterpreter *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (int)jarg4;
- arg5 = (int)jarg5;
- arg6 = (lldb::SBStringList *)jarg6;
- if (!arg6) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStringList & type is null", 0);
- return 0;
- }
- result = (int)(arg1)->HandleCompletion((char const *)arg2,arg3,arg4,arg5,*arg6);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBCommandReturnObject__SWIG_0() {
- void * jresult ;
- lldb::SBCommandReturnObject *result = 0 ;
-
- result = (lldb::SBCommandReturnObject *)new lldb::SBCommandReturnObject();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBCommandReturnObject__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBCommandReturnObject *arg1 = 0 ;
- lldb::SBCommandReturnObject *result = 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCommandReturnObject const & type is null", 0);
- return 0;
- }
- result = (lldb::SBCommandReturnObject *)new lldb::SBCommandReturnObject((lldb::SBCommandReturnObject const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBCommandReturnObject(void * jarg1) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandReturnObject_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (bool)((lldb::SBCommandReturnObject const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBCommandReturnObject_GetOutput(void * jarg1) {
- char * jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (char *)(arg1)->GetOutput();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBCommandReturnObject_GetError(void * jarg1) {
- char * jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (char *)(arg1)->GetError();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBCommandReturnObject_PutOutput(void * jarg1, void * jarg2) {
- unsigned long jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (FILE *)jarg2;
- result = (arg1)->PutOutput(arg2);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBCommandReturnObject_GetOutputSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (arg1)->GetOutputSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBCommandReturnObject_GetErrorSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (arg1)->GetErrorSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBCommandReturnObject_PutError(void * jarg1, void * jarg2) {
- unsigned long jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (FILE *)jarg2;
- result = (arg1)->PutError(arg2);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandReturnObject_Clear(void * jarg1) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandReturnObject_SetStatus(void * jarg1, int jarg2) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- lldb::ReturnStatus arg2 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (lldb::ReturnStatus)jarg2;
- (arg1)->SetStatus(arg2);
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommandReturnObject_GetStatus(void * jarg1) {
- int jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- lldb::ReturnStatus result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (lldb::ReturnStatus)(arg1)->GetStatus();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandReturnObject_Succeeded(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (bool)(arg1)->Succeeded();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandReturnObject_HasResult(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- result = (bool)(arg1)->HasResult();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandReturnObject_AppendMessage(void * jarg1, char * jarg2) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->AppendMessage((char const *)arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommandReturnObject_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandReturnObject_SetImmediateOutputFile(void * jarg1, void * jarg2) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (FILE *)jarg2;
- (arg1)->SetImmediateOutputFile(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandReturnObject_SetImmediateErrorFile(void * jarg1, void * jarg2) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (FILE *)jarg2;
- (arg1)->SetImmediateErrorFile(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandReturnObject_PutCString__SWIG_0(void * jarg1, char * jarg2, int jarg3) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (int)jarg3;
- (arg1)->PutCString((char const *)arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommandReturnObject_PutCString__SWIG_1(void * jarg1, char * jarg2) {
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->PutCString((char const *)arg2);
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBCommandReturnObject_Printf(void * jarg1, char * jarg2) {
- unsigned long jresult ;
- lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
- char *arg2 = (char *) 0 ;
- void *arg3 = 0 ;
- size_t result;
-
- arg1 = (lldb::SBCommandReturnObject *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->Printf((char const *)arg2,arg3);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_eBroadcastBitDisconnected_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommunication::eBroadcastBitDisconnected;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_eBroadcastBitReadThreadGotBytes_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommunication::eBroadcastBitReadThreadGotBytes;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_eBroadcastBitReadThreadDidExit_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommunication::eBroadcastBitReadThreadDidExit;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_eBroadcastBitReadThreadShouldExit_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommunication::eBroadcastBitReadThreadShouldExit;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_eBroadcastBitPacketAvailable_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommunication::eBroadcastBitPacketAvailable;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_eAllEventBits_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBCommunication::eAllEventBits;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBCommunication__SWIG_0() {
- void * jresult ;
- lldb::SBCommunication *result = 0 ;
-
- result = (lldb::SBCommunication *)new lldb::SBCommunication();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBCommunication__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBCommunication *result = 0 ;
-
- arg1 = (char *)jarg1;
- result = (lldb::SBCommunication *)new lldb::SBCommunication((char const *)arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBCommunication(void * jarg1) {
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommunication_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (bool)((lldb::SBCommunication const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCommunication_GetBroadcaster(void * jarg1) {
- void * jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- lldb::SBBroadcaster result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (arg1)->GetBroadcaster();
- jresult = new lldb::SBBroadcaster((const lldb::SBBroadcaster &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBCommunication_GetBroadcasterClass() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)lldb::SBCommunication::GetBroadcasterClass();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_AdoptFileDesriptor(void * jarg1, int jarg2, unsigned int jarg3) {
- int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- int arg2 ;
- bool arg3 ;
- lldb::ConnectionStatus result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- arg2 = (int)jarg2;
- arg3 = jarg3 ? true : false;
- result = (lldb::ConnectionStatus)(arg1)->AdoptFileDesriptor(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_Connect(void * jarg1, char * jarg2) {
- int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::ConnectionStatus result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- arg2 = (char *)jarg2;
- result = (lldb::ConnectionStatus)(arg1)->Connect((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBCommunication_Disconnect(void * jarg1) {
- int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- lldb::ConnectionStatus result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (lldb::ConnectionStatus)(arg1)->Disconnect();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommunication_IsConnected(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (bool)((lldb::SBCommunication const *)arg1)->IsConnected();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommunication_GetCloseOnEOF(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (bool)(arg1)->GetCloseOnEOF();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBCommunication_SetCloseOnEOF(void * jarg1, unsigned int jarg2) {
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetCloseOnEOF(arg2);
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBCommunication_Read(void * jarg1, void* jarg2, unsigned long jarg3, void * jarg4, void * jarg5) {
- unsigned long jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- void *arg2 = (void *) 0 ;
- size_t arg3 ;
- uint32_t arg4 ;
- lldb::ConnectionStatus *arg5 = 0 ;
- uint32_t *argp4 ;
- size_t result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- arg2 = (void *)jarg2; /* IntPtr */
- arg3 = (size_t)jarg3;
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- arg5 = (lldb::ConnectionStatus *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::ConnectionStatus & type is null", 0);
- return 0;
- }
- result = (arg1)->Read(arg2,arg3,arg4,*arg5);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBCommunication_Write(void * jarg1, void* jarg2, unsigned long jarg3, void * jarg4) {
- unsigned long jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- void *arg2 = (void *) 0 ;
- size_t arg3 ;
- lldb::ConnectionStatus *arg4 = 0 ;
- size_t result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- arg2 = (void *)jarg2; /* IntPtr */
- arg3 = (size_t)jarg3;
- arg4 = (lldb::ConnectionStatus *)jarg4;
- if (!arg4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::ConnectionStatus & type is null", 0);
- return 0;
- }
- result = (arg1)->Write((void const *)arg2,arg3,*arg4);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommunication_ReadThreadStart(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (bool)(arg1)->ReadThreadStart();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommunication_ReadThreadStop(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (bool)(arg1)->ReadThreadStop();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommunication_ReadThreadIsRunning(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- result = (bool)(arg1)->ReadThreadIsRunning();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCommunication_SetReadThreadBytesReceivedCallback(void * jarg1, void * jarg2, void* jarg3) {
- unsigned int jresult ;
- lldb::SBCommunication *arg1 = (lldb::SBCommunication *) 0 ;
- lldb::SBCommunication::ReadThreadBytesReceived arg2 = (lldb::SBCommunication::ReadThreadBytesReceived) 0 ;
- void *arg3 = (void *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCommunication *)jarg1;
- arg2 = (lldb::SBCommunication::ReadThreadBytesReceived)jarg2;
- arg3 = (void *)jarg3; /* IntPtr */
- result = (bool)(arg1)->SetReadThreadBytesReceivedCallback(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBCompileUnit__SWIG_0() {
- void * jresult ;
- lldb::SBCompileUnit *result = 0 ;
-
- result = (lldb::SBCompileUnit *)new lldb::SBCompileUnit();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBCompileUnit__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = 0 ;
- lldb::SBCompileUnit *result = 0 ;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCompileUnit const & type is null", 0);
- return 0;
- }
- result = (lldb::SBCompileUnit *)new lldb::SBCompileUnit((lldb::SBCompileUnit const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBCompileUnit(void * jarg1) {
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCompileUnit_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- bool result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- result = (bool)((lldb::SBCompileUnit const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_GetFileSpec(void * jarg1) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- result = ((lldb::SBCompileUnit const *)arg1)->GetFileSpec();
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_GetNumLineEntries(void * jarg1) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- result = ((lldb::SBCompileUnit const *)arg1)->GetNumLineEntries();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_GetLineEntryAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBLineEntry result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = ((lldb::SBCompileUnit const *)arg1)->GetLineEntryAtIndex(arg2);
- jresult = new lldb::SBLineEntry((const lldb::SBLineEntry &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_FindLineEntryIndex__SWIG_0(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- uint32_t arg2 ;
- uint32_t arg3 ;
- lldb::SBFileSpec *arg4 = (lldb::SBFileSpec *) 0 ;
- uint32_t *argp2 ;
- uint32_t *argp3 ;
- uint32_t result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (lldb::SBFileSpec *)jarg4;
- result = ((lldb::SBCompileUnit const *)arg1)->FindLineEntryIndex(arg2,arg3,arg4);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_FindLineEntryIndex__SWIG_1(void * jarg1, void * jarg2, void * jarg3, void * jarg4, unsigned int jarg5) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- uint32_t arg2 ;
- uint32_t arg3 ;
- lldb::SBFileSpec *arg4 = (lldb::SBFileSpec *) 0 ;
- bool arg5 ;
- uint32_t *argp2 ;
- uint32_t *argp3 ;
- uint32_t result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (lldb::SBFileSpec *)jarg4;
- arg5 = jarg5 ? true : false;
- result = ((lldb::SBCompileUnit const *)arg1)->FindLineEntryIndex(arg2,arg3,arg4,arg5);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_GetSupportFileAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = ((lldb::SBCompileUnit const *)arg1)->GetSupportFileAtIndex(arg2);
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_GetNumSupportFiles(void * jarg1) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- result = ((lldb::SBCompileUnit const *)arg1)->GetNumSupportFiles();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBCompileUnit_FindSupportFileIndex(void * jarg1, void * jarg2, void * jarg3, unsigned int jarg4) {
- void * jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- uint32_t arg2 ;
- lldb::SBFileSpec *arg3 = 0 ;
- bool arg4 ;
- uint32_t *argp2 ;
- uint32_t result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBFileSpec *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- arg4 = jarg4 ? true : false;
- result = (arg1)->FindSupportFileIndex(arg2,(lldb::SBFileSpec const &)*arg3,arg4);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBCompileUnit_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBCompileUnit *arg1 = (lldb::SBCompileUnit *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBCompileUnit *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBData__SWIG_0() {
- void * jresult ;
- lldb::SBData *result = 0 ;
-
- result = (lldb::SBData *)new lldb::SBData();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBData__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBData *arg1 = 0 ;
- lldb::SBData *result = 0 ;
-
- arg1 = (lldb::SBData *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBData const & type is null", 0);
- return 0;
- }
- result = (lldb::SBData *)new lldb::SBData((lldb::SBData const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBData(void * jarg1) {
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
-
- arg1 = (lldb::SBData *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetAddressByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- uint8_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- result = (arg1)->GetAddressByteSize();
- jresult = new uint8_t((const uint8_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBData_SetAddressByteSize(void * jarg1, void * jarg2) {
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- uint8_t arg2 ;
- uint8_t *argp2 ;
-
- arg1 = (lldb::SBData *)jarg1;
- argp2 = (uint8_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint8_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetAddressByteSize(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBData_Clear(void * jarg1) {
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
-
- arg1 = (lldb::SBData *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- result = (bool)(arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBData_GetByteSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- result = (arg1)->GetByteSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBData_GetByteOrder(void * jarg1) {
- int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::ByteOrder result;
-
- arg1 = (lldb::SBData *)jarg1;
- result = (lldb::ByteOrder)(arg1)->GetByteOrder();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBData_SetByteOrder(void * jarg1, int jarg2) {
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::ByteOrder arg2 ;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::ByteOrder)jarg2;
- (arg1)->SetByteOrder(arg2);
-}
-
-
-SWIGEXPORT float SWIGSTDCALL CSharp_SBData_GetFloat(void * jarg1, void * jarg2, void * jarg3) {
- float jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- float result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (float)(arg1)->GetFloat(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT double SWIGSTDCALL CSharp_SBData_GetDouble(void * jarg1, void * jarg2, void * jarg3) {
- double jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- double result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (double)(arg1)->GetDouble(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetLongDouble(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- long double result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (long double)(arg1)->GetLongDouble(*arg2,arg3);
- jresult = new long double((const long double &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetAddress(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetAddress(*arg2,arg3);
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetUnsignedInt8(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- uint8_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetUnsignedInt8(*arg2,arg3);
- jresult = new uint8_t((const uint8_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetUnsignedInt16(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- uint16_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetUnsignedInt16(*arg2,arg3);
- jresult = new uint16_t((const uint16_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetUnsignedInt32(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- uint32_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetUnsignedInt32(*arg2,arg3);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetUnsignedInt64(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- uint64_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetUnsignedInt64(*arg2,arg3);
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetSignedInt8(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- int8_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetSignedInt8(*arg2,arg3);
- jresult = new int8_t((const int8_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetSignedInt16(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- int16_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetSignedInt16(*arg2,arg3);
- jresult = new int16_t((const int16_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetSignedInt32(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- int32_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetSignedInt32(*arg2,arg3);
- jresult = new int32_t((const int32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_GetSignedInt64(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- int64_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetSignedInt64(*arg2,arg3);
- jresult = new int64_t((const int64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBData_GetString(void * jarg1, void * jarg2, void * jarg3) {
- char * jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (char *)(arg1)->GetString(*arg2,arg3);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_GetDescription(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::addr_t arg3 ;
- lldb::addr_t *argp3 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- argp3 = (lldb::addr_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBData_ReadRawData(void * jarg1, void * jarg2, void * jarg3, void* jarg4, unsigned long jarg5) {
- unsigned long jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t arg3 ;
- void *arg4 = (void *) 0 ;
- size_t arg5 ;
- uint32_t *argp3 ;
- size_t result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (void *)jarg4; /* IntPtr */
- arg5 = (size_t)jarg5;
- result = (arg1)->ReadRawData(*arg2,arg3,arg4,arg5);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBData_SetData(void * jarg1, void * jarg2, void* jarg3, unsigned long jarg4, int jarg5, void * jarg6) {
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBError *arg2 = 0 ;
- void *arg3 = (void *) 0 ;
- size_t arg4 ;
- lldb::ByteOrder arg5 ;
- uint8_t arg6 ;
- uint8_t *argp6 ;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return ;
- }
- arg3 = (void *)jarg3; /* IntPtr */
- arg4 = (size_t)jarg4;
- arg5 = (lldb::ByteOrder)jarg5;
- argp6 = (uint8_t *)jarg6;
- if (!argp6) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint8_t", 0);
- return ;
- }
- arg6 = *argp6;
- (arg1)->SetData(*arg2,(void const *)arg3,arg4,arg5,arg6);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_Append(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- lldb::SBData *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (lldb::SBData *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBData const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->Append((lldb::SBData const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_CreateDataFromCString(int jarg1, void * jarg2, char * jarg3) {
- void * jresult ;
- lldb::ByteOrder arg1 ;
- uint32_t arg2 ;
- char *arg3 = (char *) 0 ;
- uint32_t *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::ByteOrder)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (char *)jarg3;
- result = lldb::SBData::CreateDataFromCString(arg1,arg2,(char const *)arg3);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_CreateDataFromUInt64Array(int jarg1, void * jarg2, void * jarg3, unsigned long jarg4) {
- void * jresult ;
- lldb::ByteOrder arg1 ;
- uint32_t arg2 ;
- uint64_t *arg3 = (uint64_t *) 0 ;
- size_t arg4 ;
- uint32_t *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::ByteOrder)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (uint64_t *)jarg3;
- arg4 = (size_t)jarg4;
- result = lldb::SBData::CreateDataFromUInt64Array(arg1,arg2,arg3,arg4);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_CreateDataFromUInt32Array(int jarg1, void * jarg2, void * jarg3, unsigned long jarg4) {
- void * jresult ;
- lldb::ByteOrder arg1 ;
- uint32_t arg2 ;
- uint32_t *arg3 = (uint32_t *) 0 ;
- size_t arg4 ;
- uint32_t *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::ByteOrder)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (uint32_t *)jarg3;
- arg4 = (size_t)jarg4;
- result = lldb::SBData::CreateDataFromUInt32Array(arg1,arg2,arg3,arg4);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_CreateDataFromSInt64Array(int jarg1, void * jarg2, void * jarg3, unsigned long jarg4) {
- void * jresult ;
- lldb::ByteOrder arg1 ;
- uint32_t arg2 ;
- int64_t *arg3 = (int64_t *) 0 ;
- size_t arg4 ;
- uint32_t *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::ByteOrder)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (int64_t *)jarg3;
- arg4 = (size_t)jarg4;
- result = lldb::SBData::CreateDataFromSInt64Array(arg1,arg2,arg3,arg4);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_CreateDataFromSInt32Array(int jarg1, void * jarg2, void * jarg3, unsigned long jarg4) {
- void * jresult ;
- lldb::ByteOrder arg1 ;
- uint32_t arg2 ;
- int32_t *arg3 = (int32_t *) 0 ;
- size_t arg4 ;
- uint32_t *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::ByteOrder)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (int32_t *)jarg3;
- arg4 = (size_t)jarg4;
- result = lldb::SBData::CreateDataFromSInt32Array(arg1,arg2,arg3,arg4);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBData_CreateDataFromDoubleArray(int jarg1, void * jarg2, void * jarg3, unsigned long jarg4) {
- void * jresult ;
- lldb::ByteOrder arg1 ;
- uint32_t arg2 ;
- double *arg3 = (double *) 0 ;
- size_t arg4 ;
- uint32_t *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::ByteOrder)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (double *)jarg3;
- arg4 = (size_t)jarg4;
- result = lldb::SBData::CreateDataFromDoubleArray(arg1,arg2,arg3,arg4);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_SetDataFromCString(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->SetDataFromCString((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_SetDataFromUInt64Array(void * jarg1, void * jarg2, unsigned long jarg3) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- uint64_t *arg2 = (uint64_t *) 0 ;
- size_t arg3 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (uint64_t *)jarg2;
- arg3 = (size_t)jarg3;
- result = (bool)(arg1)->SetDataFromUInt64Array(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_SetDataFromUInt32Array(void * jarg1, void * jarg2, unsigned long jarg3) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- uint32_t *arg2 = (uint32_t *) 0 ;
- size_t arg3 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (uint32_t *)jarg2;
- arg3 = (size_t)jarg3;
- result = (bool)(arg1)->SetDataFromUInt32Array(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_SetDataFromSInt64Array(void * jarg1, void * jarg2, unsigned long jarg3) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- int64_t *arg2 = (int64_t *) 0 ;
- size_t arg3 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (int64_t *)jarg2;
- arg3 = (size_t)jarg3;
- result = (bool)(arg1)->SetDataFromSInt64Array(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_SetDataFromSInt32Array(void * jarg1, void * jarg2, unsigned long jarg3) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- int32_t *arg2 = (int32_t *) 0 ;
- size_t arg3 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (int32_t *)jarg2;
- arg3 = (size_t)jarg3;
- result = (bool)(arg1)->SetDataFromSInt32Array(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBData_SetDataFromDoubleArray(void * jarg1, void * jarg2, unsigned long jarg3) {
- unsigned int jresult ;
- lldb::SBData *arg1 = (lldb::SBData *) 0 ;
- double *arg2 = (double *) 0 ;
- size_t arg3 ;
- bool result;
-
- arg1 = (lldb::SBData *)jarg1;
- arg2 = (double *)jarg2;
- arg3 = (size_t)jarg3;
- result = (bool)(arg1)->SetDataFromDoubleArray(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_Initialize() {
- lldb::SBDebugger::Initialize();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_Terminate() {
- lldb::SBDebugger::Terminate();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_Create__SWIG_0() {
- void * jresult ;
- lldb::SBDebugger result;
-
- result = lldb::SBDebugger::Create();
- jresult = new lldb::SBDebugger((const lldb::SBDebugger &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_Create__SWIG_1(unsigned int jarg1) {
- void * jresult ;
- bool arg1 ;
- lldb::SBDebugger result;
-
- arg1 = jarg1 ? true : false;
- result = lldb::SBDebugger::Create(arg1);
- jresult = new lldb::SBDebugger((const lldb::SBDebugger &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_Create__SWIG_2(unsigned int jarg1, void * jarg2, void* jarg3) {
- void * jresult ;
- bool arg1 ;
- lldb::LogOutputCallback arg2 = (lldb::LogOutputCallback) 0 ;
- void *arg3 = (void *) 0 ;
- lldb::SBDebugger result;
-
- arg1 = jarg1 ? true : false;
- arg2 = (lldb::LogOutputCallback)jarg2;
- arg3 = (void *)jarg3; /* IntPtr */
- result = lldb::SBDebugger::Create(arg1,arg2,arg3);
- jresult = new lldb::SBDebugger((const lldb::SBDebugger &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_Destroy(void * jarg1) {
- lldb::SBDebugger *arg1 = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBDebugger & type is null", 0);
- return ;
- }
- lldb::SBDebugger::Destroy(*arg1);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_MemoryPressureDetected() {
- lldb::SBDebugger::MemoryPressureDetected();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBDebugger__SWIG_0() {
- void * jresult ;
- lldb::SBDebugger *result = 0 ;
-
- result = (lldb::SBDebugger *)new lldb::SBDebugger();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBDebugger__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = 0 ;
- lldb::SBDebugger *result = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBDebugger const & type is null", 0);
- return 0;
- }
- result = (lldb::SBDebugger *)new lldb::SBDebugger((lldb::SBDebugger const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBDebugger(void * jarg1) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (bool)((lldb::SBDebugger const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_Clear(void * jarg1) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetAsync(void * jarg1, unsigned int jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetAsync(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_GetAsync(void * jarg1) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (bool)(arg1)->GetAsync();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SkipLLDBInitFiles(void * jarg1, unsigned int jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SkipLLDBInitFiles(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetInputFileHandle(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (FILE *)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->SetInputFileHandle(arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetOutputFileHandle(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (FILE *)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->SetOutputFileHandle(arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetErrorFileHandle(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (FILE *)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->SetErrorFileHandle(arg2,arg3);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetInputFileHandle(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- FILE *result = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (FILE *)(arg1)->GetInputFileHandle();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetOutputFileHandle(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- FILE *result = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (FILE *)(arg1)->GetOutputFileHandle();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetErrorFileHandle(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- FILE *result = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (FILE *)(arg1)->GetErrorFileHandle();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetCommandInterpreter(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- SwigValueWrapper< lldb::SBCommandInterpreter > result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetCommandInterpreter();
- jresult = new lldb::SBCommandInterpreter((const lldb::SBCommandInterpreter &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_HandleCommand(void * jarg1, char * jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->HandleCommand((char const *)arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetListener(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBListener result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetListener();
- jresult = new lldb::SBListener((const lldb::SBListener &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_HandleProcessEvent(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBProcess *arg2 = 0 ;
- lldb::SBEvent *arg3 = 0 ;
- FILE *arg4 = (FILE *) 0 ;
- FILE *arg5 = (FILE *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::SBProcess *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBProcess const & type is null", 0);
- return ;
- }
- arg3 = (lldb::SBEvent *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return ;
- }
- arg4 = (FILE *)jarg4;
- arg5 = (FILE *)jarg5;
- (arg1)->HandleProcessEvent((lldb::SBProcess const &)*arg2,(lldb::SBEvent const &)*arg3,arg4,arg5);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_CreateTarget__SWIG_0(void * jarg1, char * jarg2, char * jarg3, char * jarg4, unsigned int jarg5, void * jarg6) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) 0 ;
- bool arg5 ;
- lldb::SBError *arg6 = 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- arg4 = (char *)jarg4;
- arg5 = jarg5 ? true : false;
- arg6 = (lldb::SBError *)jarg6;
- if (!arg6) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->CreateTarget((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,*arg6);
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_CreateTargetWithFileAndTargetTriple(void * jarg1, char * jarg2, char * jarg3) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- result = (arg1)->CreateTargetWithFileAndTargetTriple((char const *)arg2,(char const *)arg3);
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_CreateTargetWithFileAndArch(void * jarg1, char * jarg2, char * jarg3) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- result = (arg1)->CreateTargetWithFileAndArch((char const *)arg2,(char const *)arg3);
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_CreateTarget__SWIG_1(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->CreateTarget((char const *)arg2);
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_DeleteTarget(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTarget *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::SBTarget *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->DeleteTarget(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetTargetAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetTargetAtIndex(arg2);
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetIndexOfTarget(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTarget arg2 ;
- lldb::SBTarget *argp2 ;
- uint32_t result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (lldb::SBTarget *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTarget", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetIndexOfTarget(arg2);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_FindTargetWithProcessID(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::pid_t arg2 ;
- lldb::pid_t *argp2 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (lldb::pid_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::pid_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->FindTargetWithProcessID(arg2);
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_FindTargetWithFileAndArch(void * jarg1, char * jarg2, char * jarg3) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- result = (arg1)->FindTargetWithFileAndArch((char const *)arg2,(char const *)arg3);
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetNumTargets(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetNumTargets();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetSelectedTarget(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetSelectedTarget();
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetSelectedTarget(void * jarg1, void * jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTarget *arg2 = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::SBTarget *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget & type is null", 0);
- return ;
- }
- (arg1)->SetSelectedTarget(*arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetSourceManager(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- SwigValueWrapper< lldb::SBSourceManager > result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetSourceManager();
- jresult = new lldb::SBSourceManager((const lldb::SBSourceManager &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_SetCurrentPlatform(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->SetCurrentPlatform((char const *)arg2);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_SetCurrentPlatformSDKRoot(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->SetCurrentPlatformSDKRoot((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_SetUseExternalEditor(void * jarg1, unsigned int jarg2) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool arg2 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = jarg2 ? true : false;
- result = (bool)(arg1)->SetUseExternalEditor(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_GetUseExternalEditor(void * jarg1) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (bool)(arg1)->GetUseExternalEditor();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_GetDefaultArchitecture(char * jarg1, unsigned long jarg2) {
- unsigned int jresult ;
- char *arg1 = (char *) 0 ;
- size_t arg2 ;
- bool result;
-
- arg1 = (char *)jarg1;
- arg2 = (size_t)jarg2;
- result = (bool)lldb::SBDebugger::GetDefaultArchitecture(arg1,arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_SetDefaultArchitecture(char * jarg1) {
- unsigned int jresult ;
- char *arg1 = (char *) 0 ;
- bool result;
-
- arg1 = (char *)jarg1;
- result = (bool)lldb::SBDebugger::SetDefaultArchitecture((char const *)arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBDebugger_GetScriptingLanguage(void * jarg1, char * jarg2) {
- int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::ScriptLanguage result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- result = (lldb::ScriptLanguage)(arg1)->GetScriptingLanguage((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBDebugger_GetVersionString() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)lldb::SBDebugger::GetVersionString();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBDebugger_StateAsCString(int jarg1) {
- char * jresult ;
- lldb::StateType arg1 ;
- char *result = 0 ;
-
- arg1 = (lldb::StateType)jarg1;
- result = (char *)lldb::SBDebugger::StateAsCString(arg1);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_StateIsRunningState(int jarg1) {
- unsigned int jresult ;
- lldb::StateType arg1 ;
- bool result;
-
- arg1 = (lldb::StateType)jarg1;
- result = (bool)lldb::SBDebugger::StateIsRunningState(arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_StateIsStoppedState(int jarg1) {
- unsigned int jresult ;
- lldb::StateType arg1 ;
- bool result;
-
- arg1 = (lldb::StateType)jarg1;
- result = (bool)lldb::SBDebugger::StateIsStoppedState(arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_EnableLog(void * jarg1, char * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- char **arg3 = (char **) 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char **)jarg3;
- result = (bool)(arg1)->EnableLog((char const *)arg2,(char const **)arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetLoggingCallback(void * jarg1, void * jarg2, void* jarg3) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::LogOutputCallback arg2 = (lldb::LogOutputCallback) 0 ;
- void *arg3 = (void *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::LogOutputCallback)jarg2;
- arg3 = (void *)jarg3; /* IntPtr */
- (arg1)->SetLoggingCallback(arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_DispatchInput(void * jarg1, void* jarg2, unsigned long jarg3) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- void *arg2 = (void *) 0 ;
- size_t arg3 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (void *)jarg2; /* IntPtr */
- arg3 = (size_t)jarg3;
- (arg1)->DispatchInput((void const *)arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_DispatchInputInterrupt(void * jarg1) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- (arg1)->DispatchInputInterrupt();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_DispatchInputEndOfFile(void * jarg1) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- (arg1)->DispatchInputEndOfFile();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_PushInputReader(void * jarg1, void * jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBInputReader *arg2 = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::SBInputReader *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBInputReader & type is null", 0);
- return ;
- }
- (arg1)->PushInputReader(*arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_NotifyTopInputReader(void * jarg1, int jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::InputReaderAction arg2 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::InputReaderAction)jarg2;
- (arg1)->NotifyTopInputReader(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_InputReaderIsTopReader(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBInputReader *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::SBInputReader *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBInputReader const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->InputReaderIsTopReader((lldb::SBInputReader const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBDebugger_GetInstanceName(void * jarg1) {
- char * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (char *)(arg1)->GetInstanceName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_FindDebuggerWithID(int jarg1) {
- void * jresult ;
- int arg1 ;
- lldb::SBDebugger result;
-
- arg1 = (int)jarg1;
- result = lldb::SBDebugger::FindDebuggerWithID(arg1);
- jresult = new lldb::SBDebugger((const lldb::SBDebugger &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_SetInternalVariable(char * jarg1, char * jarg2, char * jarg3) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- lldb::SBError result;
-
- arg1 = (char *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- result = lldb::SBDebugger::SetInternalVariable((char const *)arg1,(char const *)arg2,(char const *)arg3);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetInternalVariableValue(char * jarg1, char * jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBStringList result;
-
- arg1 = (char *)jarg1;
- arg2 = (char *)jarg2;
- result = lldb::SBDebugger::GetInternalVariableValue((char const *)arg1,(char const *)arg2);
- jresult = new lldb::SBStringList((const lldb::SBStringList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetTerminalWidth(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = ((lldb::SBDebugger const *)arg1)->GetTerminalWidth();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetTerminalWidth(void * jarg1, void * jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetTerminalWidth(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetID(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::user_id_t result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetID();
- jresult = new lldb::user_id_t((const lldb::user_id_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBDebugger_GetPrompt(void * jarg1) {
- char * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (char *)((lldb::SBDebugger const *)arg1)->GetPrompt();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetPrompt(void * jarg1, char * jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetPrompt((char const *)arg2);
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBDebugger_GetScriptLanguage(void * jarg1) {
- int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::ScriptLanguage result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (lldb::ScriptLanguage)((lldb::SBDebugger const *)arg1)->GetScriptLanguage();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetScriptLanguage(void * jarg1, int jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::ScriptLanguage arg2 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (lldb::ScriptLanguage)jarg2;
- (arg1)->SetScriptLanguage(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_GetCloseInputOnEOF(void * jarg1) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (bool)((lldb::SBDebugger const *)arg1)->GetCloseInputOnEOF();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBDebugger_SetCloseInputOnEOF(void * jarg1, unsigned int jarg2) {
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetCloseInputOnEOF(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetCategory(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBTypeCategory result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->GetCategory((char const *)arg2);
- jresult = new lldb::SBTypeCategory((const lldb::SBTypeCategory &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_CreateCategory(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBTypeCategory result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->CreateCategory((char const *)arg2);
- jresult = new lldb::SBTypeCategory((const lldb::SBTypeCategory &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBDebugger_DeleteCategory(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->DeleteCategory((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetNumCategories(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetNumCategories();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetCategoryAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeCategory result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetCategoryAtIndex(arg2);
- jresult = new lldb::SBTypeCategory((const lldb::SBTypeCategory &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetDefaultCategory(void * jarg1) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTypeCategory result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- result = (arg1)->GetDefaultCategory();
- jresult = new lldb::SBTypeCategory((const lldb::SBTypeCategory &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetFormatForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeFormat result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFormatForType(arg2);
- jresult = new lldb::SBTypeFormat((const lldb::SBTypeFormat &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetSummaryForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeSummary result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetSummaryForType(arg2);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetFilterForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeFilter result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFilterForType(arg2);
- jresult = new lldb::SBTypeFilter((const lldb::SBTypeFilter &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBDebugger_GetSyntheticForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (lldb::SBDebugger *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetSyntheticForType(arg2);
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBError__SWIG_0() {
- void * jresult ;
- lldb::SBError *result = 0 ;
-
- result = (lldb::SBError *)new lldb::SBError();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBError__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBError *arg1 = 0 ;
- lldb::SBError *result = 0 ;
-
- arg1 = (lldb::SBError *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError const & type is null", 0);
- return 0;
- }
- result = (lldb::SBError *)new lldb::SBError((lldb::SBError const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBError(void * jarg1) {
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
-
- arg1 = (lldb::SBError *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBError_GetCString(void * jarg1) {
- char * jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBError *)jarg1;
- result = (char *)((lldb::SBError const *)arg1)->GetCString();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBError_Clear(void * jarg1) {
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
-
- arg1 = (lldb::SBError *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBError_Fail(void * jarg1) {
- unsigned int jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- bool result;
-
- arg1 = (lldb::SBError *)jarg1;
- result = (bool)((lldb::SBError const *)arg1)->Fail();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBError_Success(void * jarg1) {
- unsigned int jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- bool result;
-
- arg1 = (lldb::SBError *)jarg1;
- result = (bool)((lldb::SBError const *)arg1)->Success();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBError_GetError(void * jarg1) {
- void * jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBError *)jarg1;
- result = ((lldb::SBError const *)arg1)->GetError();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBError_GetType(void * jarg1) {
- int jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- lldb::ErrorType result;
-
- arg1 = (lldb::SBError *)jarg1;
- result = (lldb::ErrorType)((lldb::SBError const *)arg1)->GetType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBError_SetError(void * jarg1, void * jarg2, int jarg3) {
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- uint32_t arg2 ;
- lldb::ErrorType arg3 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBError *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- arg3 = (lldb::ErrorType)jarg3;
- (arg1)->SetError(arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBError_SetErrorToErrno(void * jarg1) {
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
-
- arg1 = (lldb::SBError *)jarg1;
- (arg1)->SetErrorToErrno();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBError_SetErrorToGenericError(void * jarg1) {
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
-
- arg1 = (lldb::SBError *)jarg1;
- (arg1)->SetErrorToGenericError();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBError_SetErrorString(void * jarg1, char * jarg2) {
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBError *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetErrorString((char const *)arg2);
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBError_SetErrorStringWithFormat(void * jarg1, char * jarg2) {
- int jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- char *arg2 = (char *) 0 ;
- void *arg3 = 0 ;
- int result;
-
- arg1 = (lldb::SBError *)jarg1;
- arg2 = (char *)jarg2;
- result = (int)(arg1)->SetErrorStringWithFormat((char const *)arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBError_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- bool result;
-
- arg1 = (lldb::SBError *)jarg1;
- result = (bool)((lldb::SBError const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBError_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBError *arg1 = (lldb::SBError *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBError *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBEvent__SWIG_0() {
- void * jresult ;
- lldb::SBEvent *result = 0 ;
-
- result = (lldb::SBEvent *)new lldb::SBEvent();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBEvent__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBEvent *arg1 = 0 ;
- lldb::SBEvent *result = 0 ;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (lldb::SBEvent *)new lldb::SBEvent((lldb::SBEvent const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBEvent__SWIG_2(void * jarg1, char * jarg2, void * jarg3) {
- void * jresult ;
- uint32_t arg1 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- uint32_t *argp1 ;
- uint32_t *argp3 ;
- lldb::SBEvent *result = 0 ;
-
- argp1 = (uint32_t *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg1 = *argp1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (lldb::SBEvent *)new lldb::SBEvent(arg1,(char const *)arg2,arg3);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBEvent(void * jarg1) {
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
-
- arg1 = (lldb::SBEvent *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBEvent_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
- bool result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- result = (bool)((lldb::SBEvent const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBEvent_GetDataFlavor(void * jarg1) {
- char * jresult ;
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBEvent *)jarg1;
- result = (char *)(arg1)->GetDataFlavor();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBEvent_GetType(void * jarg1) {
- void * jresult ;
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- result = ((lldb::SBEvent const *)arg1)->GetType();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBEvent_GetBroadcaster(void * jarg1) {
- void * jresult ;
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
- lldb::SBBroadcaster result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- result = ((lldb::SBEvent const *)arg1)->GetBroadcaster();
- jresult = new lldb::SBBroadcaster((const lldb::SBBroadcaster &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBEvent_GetBroadcasterClass(void * jarg1) {
- char * jresult ;
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBEvent *)jarg1;
- result = (char *)((lldb::SBEvent const *)arg1)->GetBroadcasterClass();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBEvent_BroadcasterMatchesRef(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
- lldb::SBBroadcaster *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- arg2 = (lldb::SBBroadcaster *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->BroadcasterMatchesRef((lldb::SBBroadcaster const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBEvent_Clear(void * jarg1) {
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
-
- arg1 = (lldb::SBEvent *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBEvent_GetCStringFromEvent(void * jarg1) {
- char * jresult ;
- lldb::SBEvent *arg1 = 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (char *)lldb::SBEvent::GetCStringFromEvent((lldb::SBEvent const &)*arg1);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBEvent_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBEvent *arg1 = (lldb::SBEvent *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)((lldb::SBEvent const *)arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFileSpec__SWIG_0() {
- void * jresult ;
- lldb::SBFileSpec *result = 0 ;
-
- result = (lldb::SBFileSpec *)new lldb::SBFileSpec();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFileSpec__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBFileSpec *arg1 = 0 ;
- lldb::SBFileSpec *result = 0 ;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- result = (lldb::SBFileSpec *)new lldb::SBFileSpec((lldb::SBFileSpec const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFileSpec__SWIG_2(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBFileSpec *result = 0 ;
-
- arg1 = (char *)jarg1;
- result = (lldb::SBFileSpec *)new lldb::SBFileSpec((char const *)arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFileSpec__SWIG_3(char * jarg1, unsigned int jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- bool arg2 ;
- lldb::SBFileSpec *result = 0 ;
-
- arg1 = (char *)jarg1;
- arg2 = jarg2 ? true : false;
- result = (lldb::SBFileSpec *)new lldb::SBFileSpec((char const *)arg1,arg2);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBFileSpec(void * jarg1) {
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFileSpec_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
- bool result;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- result = (bool)((lldb::SBFileSpec const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFileSpec_Exists(void * jarg1) {
- unsigned int jresult ;
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
- bool result;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- result = (bool)((lldb::SBFileSpec const *)arg1)->Exists();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFileSpec_ResolveExecutableLocation(void * jarg1) {
- unsigned int jresult ;
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
- bool result;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- result = (bool)(arg1)->ResolveExecutableLocation();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBFileSpec_GetFilename(void * jarg1) {
- char * jresult ;
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- result = (char *)((lldb::SBFileSpec const *)arg1)->GetFilename();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBFileSpec_GetDirectory(void * jarg1) {
- char * jresult ;
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- result = (char *)((lldb::SBFileSpec const *)arg1)->GetDirectory();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFileSpec_GetPath(void * jarg1, char * jarg2, unsigned long jarg3) {
- void * jresult ;
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
- uint32_t result;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (size_t)jarg3;
- result = ((lldb::SBFileSpec const *)arg1)->GetPath(arg2,arg3);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBFileSpec_ResolvePath(char * jarg1, char * jarg2, unsigned long jarg3) {
- int jresult ;
- char *arg1 = (char *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
- int result;
-
- arg1 = (char *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (size_t)jarg3;
- result = (int)lldb::SBFileSpec::ResolvePath((char const *)arg1,arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFileSpec_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBFileSpec *arg1 = (lldb::SBFileSpec *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBFileSpec *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)((lldb::SBFileSpec const *)arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFileSpecList__SWIG_0() {
- void * jresult ;
- lldb::SBFileSpecList *result = 0 ;
-
- result = (lldb::SBFileSpecList *)new lldb::SBFileSpecList();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFileSpecList__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBFileSpecList *arg1 = 0 ;
- lldb::SBFileSpecList *result = 0 ;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpecList const & type is null", 0);
- return 0;
- }
- result = (lldb::SBFileSpecList *)new lldb::SBFileSpecList((lldb::SBFileSpecList const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBFileSpecList(void * jarg1) {
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFileSpecList_GetSize(void * jarg1) {
- void * jresult ;
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- result = ((lldb::SBFileSpecList const *)arg1)->GetSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFileSpecList_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)((lldb::SBFileSpecList const *)arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBFileSpecList_Append(void * jarg1, void * jarg2) {
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
- lldb::SBFileSpec *arg2 = 0 ;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- arg2 = (lldb::SBFileSpec *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return ;
- }
- (arg1)->Append((lldb::SBFileSpec const &)*arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFileSpecList_AppendIfUnique(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
- lldb::SBFileSpec *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- arg2 = (lldb::SBFileSpec *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->AppendIfUnique((lldb::SBFileSpec const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBFileSpecList_Clear(void * jarg1) {
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFileSpecList_FindFileIndex(void * jarg1, void * jarg2, void * jarg3, unsigned int jarg4) {
- void * jresult ;
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
- uint32_t arg2 ;
- lldb::SBFileSpec *arg3 = 0 ;
- bool arg4 ;
- uint32_t *argp2 ;
- uint32_t result;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBFileSpec *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- arg4 = jarg4 ? true : false;
- result = (arg1)->FindFileIndex(arg2,(lldb::SBFileSpec const &)*arg3,arg4);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFileSpecList_GetFileSpecAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBFileSpecList *arg1 = (lldb::SBFileSpecList *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBFileSpecList *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = ((lldb::SBFileSpecList const *)arg1)->GetFileSpecAtIndex(arg2);
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFrame__SWIG_0() {
- void * jresult ;
- lldb::SBFrame *result = 0 ;
-
- result = (lldb::SBFrame *)new lldb::SBFrame();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFrame__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = 0 ;
- lldb::SBFrame *result = 0 ;
-
- arg1 = (lldb::SBFrame *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFrame const & type is null", 0);
- return 0;
- }
- result = (lldb::SBFrame *)new lldb::SBFrame((lldb::SBFrame const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBFrame(void * jarg1) {
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
-
- arg1 = (lldb::SBFrame *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFrame_IsEqual(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBFrame *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (lldb::SBFrame *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFrame const & type is null", 0);
- return 0;
- }
- result = (bool)((lldb::SBFrame const *)arg1)->IsEqual((lldb::SBFrame const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFrame_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- bool result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = (bool)((lldb::SBFrame const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetFrameID(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetFrameID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetPC(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetPC();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFrame_SetPC(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->SetPC(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetSP(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetSP();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetFP(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetFP();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetPCAddress(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetPCAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetSymbolContext(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBSymbolContext result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = ((lldb::SBFrame const *)arg1)->GetSymbolContext(arg2);
- jresult = new lldb::SBSymbolContext((const lldb::SBSymbolContext &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetModule(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBModule result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetModule();
- jresult = new lldb::SBModule((const lldb::SBModule &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetCompileUnit(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBCompileUnit result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetCompileUnit();
- jresult = new lldb::SBCompileUnit((const lldb::SBCompileUnit &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetFunction(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBFunction result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetFunction();
- jresult = new lldb::SBFunction((const lldb::SBFunction &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetSymbol(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBSymbol result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetSymbol();
- jresult = new lldb::SBSymbol((const lldb::SBSymbol &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetBlock(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetBlock();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBFrame_GetFunctionName(void * jarg1) {
- char * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = (char *)(arg1)->GetFunctionName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFrame_IsInlined(void * jarg1) {
- unsigned int jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- bool result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = (bool)(arg1)->IsInlined();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_EvaluateExpression__SWIG_0(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->EvaluateExpression((char const *)arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_EvaluateExpression__SWIG_1(void * jarg1, char * jarg2, int jarg3) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::DynamicValueType arg3 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::DynamicValueType)jarg3;
- result = (arg1)->EvaluateExpression((char const *)arg2,arg3);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_EvaluateExpression__SWIG_2(void * jarg1, char * jarg2, int jarg3, unsigned int jarg4) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::DynamicValueType arg3 ;
- bool arg4 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::DynamicValueType)jarg3;
- arg4 = jarg4 ? true : false;
- result = (arg1)->EvaluateExpression((char const *)arg2,arg3,arg4);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetFrameBlock(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetFrameBlock();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetLineEntry(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBLineEntry result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetLineEntry();
- jresult = new lldb::SBLineEntry((const lldb::SBLineEntry &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetThread(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBThread result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = ((lldb::SBFrame const *)arg1)->GetThread();
- jresult = new lldb::SBThread((const lldb::SBThread &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBFrame_Disassemble(void * jarg1) {
- char * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = (char *)((lldb::SBFrame const *)arg1)->Disassemble();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBFrame_Clear(void * jarg1) {
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
-
- arg1 = (lldb::SBFrame *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetVariables__SWIG_0(void * jarg1, unsigned int jarg2, unsigned int jarg3, unsigned int jarg4, unsigned int jarg5) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- bool arg2 ;
- bool arg3 ;
- bool arg4 ;
- bool arg5 ;
- lldb::SBValueList result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = jarg2 ? true : false;
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- arg5 = jarg5 ? true : false;
- result = (arg1)->GetVariables(arg2,arg3,arg4,arg5);
- jresult = new lldb::SBValueList((const lldb::SBValueList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetVariables__SWIG_1(void * jarg1, unsigned int jarg2, unsigned int jarg3, unsigned int jarg4, unsigned int jarg5, int jarg6) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- bool arg2 ;
- bool arg3 ;
- bool arg4 ;
- bool arg5 ;
- lldb::DynamicValueType arg6 ;
- lldb::SBValueList result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = jarg2 ? true : false;
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- arg5 = jarg5 ? true : false;
- arg6 = (lldb::DynamicValueType)jarg6;
- result = (arg1)->GetVariables(arg2,arg3,arg4,arg5,arg6);
- jresult = new lldb::SBValueList((const lldb::SBValueList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetRegisters(void * jarg1) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBValueList result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- result = (arg1)->GetRegisters();
- jresult = new lldb::SBValueList((const lldb::SBValueList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_FindVariable__SWIG_0(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindVariable((char const *)arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_FindVariable__SWIG_1(void * jarg1, char * jarg2, int jarg3) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::DynamicValueType arg3 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::DynamicValueType)jarg3;
- result = (arg1)->FindVariable((char const *)arg2,arg3);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetValueForVariablePath__SWIG_0(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->GetValueForVariablePath((char const *)arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_GetValueForVariablePath__SWIG_1(void * jarg1, char * jarg2, int jarg3) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::DynamicValueType arg3 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::DynamicValueType)jarg3;
- result = (arg1)->GetValueForVariablePath((char const *)arg2,arg3);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_FindValue__SWIG_0(void * jarg1, char * jarg2, int jarg3) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::ValueType arg3 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::ValueType)jarg3;
- result = (arg1)->FindValue((char const *)arg2,arg3);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFrame_FindValue__SWIG_1(void * jarg1, char * jarg2, int jarg3, int jarg4) {
- void * jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::ValueType arg3 ;
- lldb::DynamicValueType arg4 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::ValueType)jarg3;
- arg4 = (lldb::DynamicValueType)jarg4;
- result = (arg1)->FindValue((char const *)arg2,arg3,arg4);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFrame_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBFrame *arg1 = (lldb::SBFrame *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBFrame *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFunction__SWIG_0() {
- void * jresult ;
- lldb::SBFunction *result = 0 ;
-
- result = (lldb::SBFunction *)new lldb::SBFunction();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBFunction__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBFunction *arg1 = 0 ;
- lldb::SBFunction *result = 0 ;
-
- arg1 = (lldb::SBFunction *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFunction const & type is null", 0);
- return 0;
- }
- result = (lldb::SBFunction *)new lldb::SBFunction((lldb::SBFunction const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBFunction(void * jarg1) {
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
-
- arg1 = (lldb::SBFunction *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFunction_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- bool result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (bool)((lldb::SBFunction const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBFunction_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (char *)((lldb::SBFunction const *)arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBFunction_GetMangledName(void * jarg1) {
- char * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (char *)((lldb::SBFunction const *)arg1)->GetMangledName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFunction_GetInstructions(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- lldb::SBTarget arg2 ;
- lldb::SBTarget *argp2 ;
- lldb::SBInstructionList result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- argp2 = (lldb::SBTarget *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTarget", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetInstructions(arg2);
- jresult = new lldb::SBInstructionList((const lldb::SBInstructionList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFunction_GetStartAddress(void * jarg1) {
- void * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (arg1)->GetStartAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFunction_GetEndAddress(void * jarg1) {
- void * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (arg1)->GetEndAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFunction_GetPrologueByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (arg1)->GetPrologueByteSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFunction_GetType(void * jarg1) {
- void * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (arg1)->GetType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBFunction_GetBlock(void * jarg1) {
- void * jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- result = (arg1)->GetBlock();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBFunction_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBFunction *arg1 = (lldb::SBFunction *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBFunction *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBHostOS_GetProgramFileSpec() {
- void * jresult ;
- lldb::SBFileSpec result;
-
- result = lldb::SBHostOS::GetProgramFileSpec();
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBHostOS_ThreadCreated(char * jarg1) {
- char *arg1 = (char *) 0 ;
-
- arg1 = (char *)jarg1;
- lldb::SBHostOS::ThreadCreated((char const *)arg1);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBHostOS_ThreadCreate(char * jarg1, void * jarg2, void* jarg3, void * jarg4) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- void *(*arg2)(void *) = (void *(*)(void *)) 0 ;
- void *arg3 = (void *) 0 ;
- lldb::SBError *arg4 = (lldb::SBError *) 0 ;
- lldb::thread_t result;
-
- arg1 = (char *)jarg1;
- arg2 = (void *(*)(void *))jarg2;
- arg3 = (void *)jarg3; /* IntPtr */
- arg4 = (lldb::SBError *)jarg4;
- result = lldb::SBHostOS::ThreadCreate((char const *)arg1,arg2,arg3,arg4);
- jresult = new lldb::thread_t((const lldb::thread_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBHostOS_ThreadCancel(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::thread_t arg1 ;
- lldb::SBError *arg2 = (lldb::SBError *) 0 ;
- lldb::thread_t *argp1 ;
- bool result;
-
- argp1 = (lldb::thread_t *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::thread_t", 0);
- return 0;
- }
- arg1 = *argp1;
- arg2 = (lldb::SBError *)jarg2;
- result = (bool)lldb::SBHostOS::ThreadCancel(arg1,arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBHostOS_ThreadDetach(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::thread_t arg1 ;
- lldb::SBError *arg2 = (lldb::SBError *) 0 ;
- lldb::thread_t *argp1 ;
- bool result;
-
- argp1 = (lldb::thread_t *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::thread_t", 0);
- return 0;
- }
- arg1 = *argp1;
- arg2 = (lldb::SBError *)jarg2;
- result = (bool)lldb::SBHostOS::ThreadDetach(arg1,arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBHostOS_ThreadJoin(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::thread_t arg1 ;
- void **arg2 = (void **) 0 ;
- lldb::SBError *arg3 = (lldb::SBError *) 0 ;
- lldb::thread_t *argp1 ;
- bool result;
-
- argp1 = (lldb::thread_t *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::thread_t", 0);
- return 0;
- }
- arg1 = *argp1;
- arg2 = (void **)jarg2;
- arg3 = (lldb::SBError *)jarg3;
- result = (bool)lldb::SBHostOS::ThreadJoin(arg1,arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBHostOS() {
- void * jresult ;
- lldb::SBHostOS *result = 0 ;
-
- result = (lldb::SBHostOS *)new lldb::SBHostOS();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBHostOS(void * jarg1) {
- lldb::SBHostOS *arg1 = (lldb::SBHostOS *) 0 ;
-
- arg1 = (lldb::SBHostOS *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBInputReader__SWIG_0() {
- void * jresult ;
- lldb::SBInputReader *result = 0 ;
-
- result = (lldb::SBInputReader *)new lldb::SBInputReader();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBInputReader__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBInputReader *arg1 = 0 ;
- lldb::SBInputReader *result = 0 ;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBInputReader const & type is null", 0);
- return 0;
- }
- result = (lldb::SBInputReader *)new lldb::SBInputReader((lldb::SBInputReader const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBInputReader(void * jarg1) {
- lldb::SBInputReader *arg1 = (lldb::SBInputReader *) 0 ;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBInputReader_Initialize(void * jarg1, void * jarg2, void * jarg3, void* jarg4, int jarg5, char * jarg6, char * jarg7, unsigned int jarg8) {
- void * jresult ;
- lldb::SBInputReader *arg1 = (lldb::SBInputReader *) 0 ;
- lldb::SBDebugger *arg2 = 0 ;
- lldb::SBInputReader::Callback arg3 = (lldb::SBInputReader::Callback) 0 ;
- void *arg4 = (void *) 0 ;
- lldb::InputReaderGranularity arg5 ;
- char *arg6 = (char *) 0 ;
- char *arg7 = (char *) 0 ;
- bool arg8 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- arg2 = (lldb::SBDebugger *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBDebugger & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBInputReader::Callback)jarg3;
- arg4 = (void *)jarg4; /* IntPtr */
- arg5 = (lldb::InputReaderGranularity)jarg5;
- arg6 = (char *)jarg6;
- arg7 = (char *)jarg7;
- arg8 = jarg8 ? true : false;
- result = (arg1)->Initialize(*arg2,arg3,arg4,arg5,(char const *)arg6,(char const *)arg7,arg8);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInputReader_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBInputReader *arg1 = (lldb::SBInputReader *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- result = (bool)((lldb::SBInputReader const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInputReader_IsActive(void * jarg1) {
- unsigned int jresult ;
- lldb::SBInputReader *arg1 = (lldb::SBInputReader *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- result = (bool)((lldb::SBInputReader const *)arg1)->IsActive();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInputReader_IsDone(void * jarg1) {
- unsigned int jresult ;
- lldb::SBInputReader *arg1 = (lldb::SBInputReader *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- result = (bool)((lldb::SBInputReader const *)arg1)->IsDone();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBInputReader_SetIsDone(void * jarg1, unsigned int jarg2) {
- lldb::SBInputReader *arg1 = (lldb::SBInputReader *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetIsDone(arg2);
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBInputReader_GetGranularity(void * jarg1) {
- int jresult ;
- lldb::SBInputReader *arg1 = (lldb::SBInputReader *) 0 ;
- lldb::InputReaderGranularity result;
-
- arg1 = (lldb::SBInputReader *)jarg1;
- result = (lldb::InputReaderGranularity)(arg1)->GetGranularity();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBInstruction__SWIG_0() {
- void * jresult ;
- lldb::SBInstruction *result = 0 ;
-
- result = (lldb::SBInstruction *)new lldb::SBInstruction();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBInstruction__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBInstruction *arg1 = 0 ;
- lldb::SBInstruction *result = 0 ;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBInstruction const & type is null", 0);
- return 0;
- }
- result = (lldb::SBInstruction *)new lldb::SBInstruction((lldb::SBInstruction const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBInstruction(void * jarg1) {
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstruction_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- result = (bool)(arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBInstruction_GetAddress(void * jarg1) {
- void * jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- result = (arg1)->GetAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBInstruction_GetAddressClass(void * jarg1) {
- int jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::AddressClass result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- result = (lldb::AddressClass)(arg1)->GetAddressClass();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBInstruction_GetMnemonic(void * jarg1, void * jarg2) {
- char * jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBTarget arg2 ;
- lldb::SBTarget *argp2 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- argp2 = (lldb::SBTarget *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTarget", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (char *)(arg1)->GetMnemonic(arg2);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBInstruction_GetOperands(void * jarg1, void * jarg2) {
- char * jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBTarget arg2 ;
- lldb::SBTarget *argp2 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- argp2 = (lldb::SBTarget *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTarget", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (char *)(arg1)->GetOperands(arg2);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBInstruction_GetComment(void * jarg1, void * jarg2) {
- char * jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBTarget arg2 ;
- lldb::SBTarget *argp2 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- argp2 = (lldb::SBTarget *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTarget", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (char *)(arg1)->GetComment(arg2);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBInstruction_GetData(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBTarget arg2 ;
- lldb::SBTarget *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- argp2 = (lldb::SBTarget *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTarget", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetData(arg2);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBInstruction_GetByteSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- result = (arg1)->GetByteSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstruction_DoesBranch(void * jarg1) {
- unsigned int jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- result = (bool)(arg1)->DoesBranch();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBInstruction_Print(void * jarg1, void * jarg2) {
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- arg2 = (FILE *)jarg2;
- (arg1)->Print(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstruction_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstruction_EmulateWithFrame(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBFrame *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- bool result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- arg2 = (lldb::SBFrame *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFrame & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->EmulateWithFrame(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstruction_DumpEmulation(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->DumpEmulation((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstruction_TestEmulation(void * jarg1, void * jarg2, char * jarg3) {
- unsigned int jresult ;
- lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- char *arg3 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInstruction *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (char *)jarg3;
- result = (bool)(arg1)->TestEmulation(*arg2,(char const *)arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBInstructionList__SWIG_0() {
- void * jresult ;
- lldb::SBInstructionList *result = 0 ;
-
- result = (lldb::SBInstructionList *)new lldb::SBInstructionList();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBInstructionList__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBInstructionList *arg1 = 0 ;
- lldb::SBInstructionList *result = 0 ;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBInstructionList const & type is null", 0);
- return 0;
- }
- result = (lldb::SBInstructionList *)new lldb::SBInstructionList((lldb::SBInstructionList const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBInstructionList(void * jarg1) {
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstructionList_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- result = (bool)((lldb::SBInstructionList const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBInstructionList_GetSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- result = (arg1)->GetSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBInstructionList_GetInstructionAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBInstruction result;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetInstructionAtIndex(arg2);
- jresult = new lldb::SBInstruction((const lldb::SBInstruction &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBInstructionList_Clear(void * jarg1) {
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBInstructionList_AppendInstruction(void * jarg1, void * jarg2) {
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
- lldb::SBInstruction arg2 ;
- lldb::SBInstruction *argp2 ;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- argp2 = (lldb::SBInstruction *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBInstruction", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->AppendInstruction(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBInstructionList_Print(void * jarg1, void * jarg2) {
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- arg2 = (FILE *)jarg2;
- (arg1)->Print(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstructionList_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBInstructionList_DumpEmulationForAllInstructions(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBInstructionList *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->DumpEmulationForAllInstructions((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBLineEntry__SWIG_0() {
- void * jresult ;
- lldb::SBLineEntry *result = 0 ;
-
- result = (lldb::SBLineEntry *)new lldb::SBLineEntry();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBLineEntry__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBLineEntry *arg1 = 0 ;
- lldb::SBLineEntry *result = 0 ;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBLineEntry const & type is null", 0);
- return 0;
- }
- result = (lldb::SBLineEntry *)new lldb::SBLineEntry((lldb::SBLineEntry const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBLineEntry(void * jarg1) {
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLineEntry_GetStartAddress(void * jarg1) {
- void * jresult ;
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- result = ((lldb::SBLineEntry const *)arg1)->GetStartAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLineEntry_GetEndAddress(void * jarg1) {
- void * jresult ;
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- result = ((lldb::SBLineEntry const *)arg1)->GetEndAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLineEntry_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- bool result;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- result = (bool)((lldb::SBLineEntry const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLineEntry_GetFileSpec(void * jarg1) {
- void * jresult ;
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- result = ((lldb::SBLineEntry const *)arg1)->GetFileSpec();
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLineEntry_GetLine(void * jarg1) {
- void * jresult ;
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- result = ((lldb::SBLineEntry const *)arg1)->GetLine();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLineEntry_GetColumn(void * jarg1) {
- void * jresult ;
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- result = ((lldb::SBLineEntry const *)arg1)->GetColumn();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLineEntry_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLineEntry_SetFileSpec(void * jarg1, void * jarg2) {
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- lldb::SBFileSpec arg2 ;
- lldb::SBFileSpec *argp2 ;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- argp2 = (lldb::SBFileSpec *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBFileSpec", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetFileSpec(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLineEntry_SetLine(void * jarg1, void * jarg2) {
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetLine(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLineEntry_SetColumn(void * jarg1, void * jarg2) {
- lldb::SBLineEntry *arg1 = (lldb::SBLineEntry *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBLineEntry *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetColumn(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBListener__SWIG_0() {
- void * jresult ;
- lldb::SBListener *result = 0 ;
-
- result = (lldb::SBListener *)new lldb::SBListener();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBListener__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBListener *result = 0 ;
-
- arg1 = (char *)jarg1;
- result = (lldb::SBListener *)new lldb::SBListener((char const *)arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBListener__SWIG_2(void * jarg1) {
- void * jresult ;
- lldb::SBListener *arg1 = 0 ;
- lldb::SBListener *result = 0 ;
-
- arg1 = (lldb::SBListener *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener const & type is null", 0);
- return 0;
- }
- result = (lldb::SBListener *)new lldb::SBListener((lldb::SBListener const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBListener(void * jarg1) {
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
-
- arg1 = (lldb::SBListener *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBListener_AddEvent(void * jarg1, void * jarg2) {
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return ;
- }
- (arg1)->AddEvent((lldb::SBEvent const &)*arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBListener_Clear(void * jarg1) {
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
-
- arg1 = (lldb::SBListener *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- result = (bool)((lldb::SBListener const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBListener_StartListeningForEventClass(void * jarg1, void * jarg2, char * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBDebugger *arg2 = 0 ;
- char *arg3 = (char *) 0 ;
- uint32_t arg4 ;
- uint32_t *argp4 ;
- uint32_t result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBDebugger *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBDebugger & type is null", 0);
- return 0;
- }
- arg3 = (char *)jarg3;
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- result = (arg1)->StartListeningForEventClass(*arg2,(char const *)arg3,arg4);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBListener_StopListeningForEventClass(void * jarg1, void * jarg2, char * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBDebugger *arg2 = 0 ;
- char *arg3 = (char *) 0 ;
- uint32_t arg4 ;
- uint32_t *argp4 ;
- uint32_t result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBDebugger *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBDebugger & type is null", 0);
- return 0;
- }
- arg3 = (char *)jarg3;
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- result = (arg1)->StopListeningForEventClass(*arg2,(char const *)arg3,arg4);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBListener_StartListeningForEvents(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBBroadcaster *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- uint32_t result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBBroadcaster *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->StartListeningForEvents((lldb::SBBroadcaster const &)*arg2,arg3);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_StopListeningForEvents(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBBroadcaster *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBBroadcaster *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->StopListeningForEvents((lldb::SBBroadcaster const &)*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_WaitForEvent(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- uint32_t arg2 ;
- lldb::SBEvent *arg3 = 0 ;
- uint32_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBEvent *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->WaitForEvent(arg2,*arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_WaitForEventForBroadcaster(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- uint32_t arg2 ;
- lldb::SBBroadcaster *arg3 = 0 ;
- lldb::SBEvent *arg4 = 0 ;
- uint32_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBBroadcaster *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- arg4 = (lldb::SBEvent *)jarg4;
- if (!arg4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->WaitForEventForBroadcaster(arg2,(lldb::SBBroadcaster const &)*arg3,*arg4);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_WaitForEventForBroadcasterWithType(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- uint32_t arg2 ;
- lldb::SBBroadcaster *arg3 = 0 ;
- uint32_t arg4 ;
- lldb::SBEvent *arg5 = 0 ;
- uint32_t *argp2 ;
- uint32_t *argp4 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBBroadcaster *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- arg5 = (lldb::SBEvent *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->WaitForEventForBroadcasterWithType(arg2,(lldb::SBBroadcaster const &)*arg3,arg4,*arg5);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_PeekAtNextEvent(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->PeekAtNextEvent(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_PeekAtNextEventForBroadcaster(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBBroadcaster *arg2 = 0 ;
- lldb::SBEvent *arg3 = 0 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBBroadcaster *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBEvent *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->PeekAtNextEventForBroadcaster((lldb::SBBroadcaster const &)*arg2,*arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_PeekAtNextEventForBroadcasterWithType(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBBroadcaster *arg2 = 0 ;
- uint32_t arg3 ;
- lldb::SBEvent *arg4 = 0 ;
- uint32_t *argp3 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBBroadcaster *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (lldb::SBEvent *)jarg4;
- if (!arg4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->PeekAtNextEventForBroadcasterWithType((lldb::SBBroadcaster const &)*arg2,arg3,*arg4);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_GetNextEvent(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetNextEvent(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_GetNextEventForBroadcaster(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBBroadcaster *arg2 = 0 ;
- lldb::SBEvent *arg3 = 0 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBBroadcaster *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBEvent *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetNextEventForBroadcaster((lldb::SBBroadcaster const &)*arg2,*arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_GetNextEventForBroadcasterWithType(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBBroadcaster *arg2 = 0 ;
- uint32_t arg3 ;
- lldb::SBEvent *arg4 = 0 ;
- uint32_t *argp3 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBBroadcaster *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBBroadcaster const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (lldb::SBEvent *)jarg4;
- if (!arg4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetNextEventForBroadcasterWithType((lldb::SBBroadcaster const &)*arg2,arg3,*arg4);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBListener_HandleBroadcastEvent(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBListener *arg1 = (lldb::SBListener *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBListener *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->HandleBroadcastEvent((lldb::SBEvent const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBModule__SWIG_0() {
- void * jresult ;
- lldb::SBModule *result = 0 ;
-
- result = (lldb::SBModule *)new lldb::SBModule();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBModule__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBModule *arg1 = 0 ;
- lldb::SBModule *result = 0 ;
-
- arg1 = (lldb::SBModule *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBModule const & type is null", 0);
- return 0;
- }
- result = (lldb::SBModule *)new lldb::SBModule((lldb::SBModule const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBModule__SWIG_2(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBProcess *arg1 = 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- lldb::SBModule *result = 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBProcess & type is null", 0);
- return 0;
- }
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (lldb::SBModule *)new lldb::SBModule(*arg1,arg2);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBModule(void * jarg1) {
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
-
- arg1 = (lldb::SBModule *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBModule_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- bool result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (bool)((lldb::SBModule const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBModule_Clear(void * jarg1) {
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
-
- arg1 = (lldb::SBModule *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetFileSpec(void * jarg1) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = ((lldb::SBModule const *)arg1)->GetFileSpec();
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetPlatformFileSpec(void * jarg1) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = ((lldb::SBModule const *)arg1)->GetPlatformFileSpec();
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBModule_SetPlatformFileSpec(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::SBFileSpec *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (lldb::SBFileSpec *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->SetPlatformFileSpec((lldb::SBFileSpec const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBModule_GetUUIDString(void * jarg1) {
- char * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (char *)((lldb::SBModule const *)arg1)->GetUUIDString();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_FindSection(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBSection result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindSection((char const *)arg2);
- jresult = new lldb::SBSection((const lldb::SBSection &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_ResolveFileAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBModule *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->ResolveFileAddress(arg2);
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_ResolveSymbolContextForAddress(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::SBAddress *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::SBSymbolContext result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (lldb::SBAddress *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBAddress const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->ResolveSymbolContextForAddress((lldb::SBAddress const &)*arg2,arg3);
- jresult = new lldb::SBSymbolContext((const lldb::SBSymbolContext &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBModule_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetNumCompileUnits(void * jarg1) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (arg1)->GetNumCompileUnits();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetCompileUnitAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBCompileUnit result;
-
- arg1 = (lldb::SBModule *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetCompileUnitAtIndex(arg2);
- jresult = new lldb::SBCompileUnit((const lldb::SBCompileUnit &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBModule_GetNumSymbols(void * jarg1) {
- unsigned long jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (arg1)->GetNumSymbols();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetSymbolAtIndex(void * jarg1, unsigned long jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- size_t arg2 ;
- lldb::SBSymbol result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (size_t)jarg2;
- result = (arg1)->GetSymbolAtIndex(arg2);
- jresult = new lldb::SBSymbol((const lldb::SBSymbol &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBModule_GetNumSections(void * jarg1) {
- unsigned long jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (arg1)->GetNumSections();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetSectionAtIndex(void * jarg1, unsigned long jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- size_t arg2 ;
- lldb::SBSection result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (size_t)jarg2;
- result = (arg1)->GetSectionAtIndex(arg2);
- jresult = new lldb::SBSection((const lldb::SBSection &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_FindFunctions__SWIG_0(void * jarg1, char * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::SBSymbolContextList result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->FindFunctions((char const *)arg2,arg3);
- jresult = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_FindFunctions__SWIG_1(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBSymbolContextList result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindFunctions((char const *)arg2);
- jresult = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_FindFirstType(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindFirstType((char const *)arg2);
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_FindTypes(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBTypeList result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindTypes((char const *)arg2);
- jresult = new lldb::SBTypeList((const lldb::SBTypeList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_FindGlobalVariables(void * jarg1, void * jarg2, char * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::SBTarget *arg2 = 0 ;
- char *arg3 = (char *) 0 ;
- uint32_t arg4 ;
- uint32_t *argp4 ;
- lldb::SBValueList result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (lldb::SBTarget *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget & type is null", 0);
- return 0;
- }
- arg3 = (char *)jarg3;
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- result = (arg1)->FindGlobalVariables(*arg2,(char const *)arg3,arg4);
- jresult = new lldb::SBValueList((const lldb::SBValueList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBModule_GetByteOrder(void * jarg1) {
- int jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- lldb::ByteOrder result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (lldb::ByteOrder)(arg1)->GetByteOrder();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetAddressByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (arg1)->GetAddressByteSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBModule_GetTriple(void * jarg1) {
- char * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBModule *)jarg1;
- result = (char *)(arg1)->GetTriple();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBModule_GetVersion(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
- uint32_t *arg2 = (uint32_t *) 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- uint32_t result;
-
- arg1 = (lldb::SBModule *)jarg1;
- arg2 = (uint32_t *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetVersion(arg2,arg3);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_eBroadcastBitStateChanged_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBProcess::eBroadcastBitStateChanged;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_eBroadcastBitInterrupt_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBProcess::eBroadcastBitInterrupt;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_eBroadcastBitSTDOUT_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBProcess::eBroadcastBitSTDOUT;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_eBroadcastBitSTDERR_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBProcess::eBroadcastBitSTDERR;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBProcess__SWIG_0() {
- void * jresult ;
- lldb::SBProcess *result = 0 ;
-
- result = (lldb::SBProcess *)new lldb::SBProcess();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBProcess__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = 0 ;
- lldb::SBProcess *result = 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBProcess const & type is null", 0);
- return 0;
- }
- result = (lldb::SBProcess *)new lldb::SBProcess((lldb::SBProcess const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBProcess(void * jarg1) {
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBProcess_GetBroadcasterClassName() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)lldb::SBProcess::GetBroadcasterClassName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBProcess_Clear(void * jarg1) {
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- bool result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (bool)((lldb::SBProcess const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetTarget(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = ((lldb::SBProcess const *)arg1)->GetTarget();
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_GetByteOrder(void * jarg1) {
- int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::ByteOrder result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (lldb::ByteOrder)((lldb::SBProcess const *)arg1)->GetByteOrder();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBProcess_PutSTDIN(void * jarg1, char * jarg2, unsigned long jarg3) {
- unsigned long jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
- size_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (size_t)jarg3;
- result = (arg1)->PutSTDIN((char const *)arg2,arg3);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBProcess_GetSTDOUT(void * jarg1, char * jarg2, unsigned long jarg3) {
- unsigned long jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
- size_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (size_t)jarg3;
- result = ((lldb::SBProcess const *)arg1)->GetSTDOUT(arg2,arg3);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBProcess_GetSTDERR(void * jarg1, char * jarg2, unsigned long jarg3) {
- unsigned long jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
- size_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (size_t)jarg3;
- result = ((lldb::SBProcess const *)arg1)->GetSTDERR(arg2,arg3);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBProcess_ReportEventState(void * jarg1, void * jarg2, void * jarg3) {
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
- FILE *arg3 = (FILE *) 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return ;
- }
- arg3 = (FILE *)jarg3;
- ((lldb::SBProcess const *)arg1)->ReportEventState((lldb::SBEvent const &)*arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBProcess_AppendEventStateReport(void * jarg1, void * jarg2, void * jarg3) {
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBEvent *arg2 = 0 ;
- lldb::SBCommandReturnObject *arg3 = 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (lldb::SBEvent *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return ;
- }
- arg3 = (lldb::SBCommandReturnObject *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBCommandReturnObject & type is null", 0);
- return ;
- }
- (arg1)->AppendEventStateReport((lldb::SBEvent const &)*arg2,*arg3);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_RemoteAttachToProcessWithID(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::pid_t arg2 ;
- lldb::SBError *arg3 = 0 ;
- lldb::pid_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (lldb::pid_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::pid_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBError *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->RemoteAttachToProcessWithID(arg2,*arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_RemoteLaunch(void * jarg1, void * jarg2, void * jarg3, char * jarg4, char * jarg5, char * jarg6, char * jarg7, void * jarg8, unsigned int jarg9, void * jarg10) {
- unsigned int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- char **arg2 = (char **) 0 ;
- char **arg3 = (char **) 0 ;
- char *arg4 = (char *) 0 ;
- char *arg5 = (char *) 0 ;
- char *arg6 = (char *) 0 ;
- char *arg7 = (char *) 0 ;
- uint32_t arg8 ;
- bool arg9 ;
- lldb::SBError *arg10 = 0 ;
- uint32_t *argp8 ;
- bool result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (char **)jarg2;
- arg3 = (char **)jarg3;
- arg4 = (char *)jarg4;
- arg5 = (char *)jarg5;
- arg6 = (char *)jarg6;
- arg7 = (char *)jarg7;
- argp8 = (uint32_t *)jarg8;
- if (!argp8) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg8 = *argp8;
- arg9 = jarg9 ? true : false;
- arg10 = (lldb::SBError *)jarg10;
- if (!arg10) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->RemoteLaunch((char const **)arg2,(char const **)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,arg8,arg9,*arg10);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetNumThreads(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (arg1)->GetNumThreads();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetThreadAtIndex(void * jarg1, unsigned long jarg2) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- size_t arg2 ;
- lldb::SBThread result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (size_t)jarg2;
- result = (arg1)->GetThreadAtIndex(arg2);
- jresult = new lldb::SBThread((const lldb::SBThread &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetThreadByID(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::tid_t arg2 ;
- lldb::tid_t *argp2 ;
- lldb::SBThread result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (lldb::tid_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::tid_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetThreadByID(arg2);
- jresult = new lldb::SBThread((const lldb::SBThread &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetThreadByIndexID(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBThread result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetThreadByIndexID(arg2);
- jresult = new lldb::SBThread((const lldb::SBThread &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetSelectedThread(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBThread result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = ((lldb::SBProcess const *)arg1)->GetSelectedThread();
- jresult = new lldb::SBThread((const lldb::SBThread &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_SetSelectedThread(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBThread *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (lldb::SBThread *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBThread const & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->SetSelectedThread((lldb::SBThread const &)*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_SetSelectedThreadByID(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->SetSelectedThreadByID(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_SetSelectedThreadByIndexID(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->SetSelectedThreadByIndexID(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_GetState(void * jarg1) {
- int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::StateType result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (lldb::StateType)(arg1)->GetState();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_GetExitStatus(void * jarg1) {
- int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- int result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (int)(arg1)->GetExitStatus();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBProcess_GetExitDescription(void * jarg1) {
- char * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (char *)(arg1)->GetExitDescription();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetProcessID(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::pid_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (arg1)->GetProcessID();
- jresult = new lldb::pid_t((const lldb::pid_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetAddressByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = ((lldb::SBProcess const *)arg1)->GetAddressByteSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_Destroy(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (arg1)->Destroy();
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_Continue(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (arg1)->Continue();
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_Stop(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (arg1)->Stop();
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_Kill(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (arg1)->Kill();
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_Detach(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = (arg1)->Detach();
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_Signal(void * jarg1, int jarg2) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- int arg2 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (int)jarg2;
- result = (arg1)->Signal(arg2);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBProcess_SendAsyncInterrupt(void * jarg1) {
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
-
- arg1 = (lldb::SBProcess *)jarg1;
- (arg1)->SendAsyncInterrupt();
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBProcess_ReadMemory(void * jarg1, void * jarg2, void* jarg3, unsigned long jarg4, void * jarg5) {
- unsigned long jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::addr_t arg2 ;
- void *arg3 = (void *) 0 ;
- size_t arg4 ;
- lldb::SBError *arg5 = 0 ;
- lldb::addr_t *argp2 ;
- size_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (void *)jarg3; /* IntPtr */
- arg4 = (size_t)jarg4;
- arg5 = (lldb::SBError *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->ReadMemory(arg2,arg3,arg4,*arg5);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBProcess_WriteMemory(void * jarg1, void * jarg2, void* jarg3, unsigned long jarg4, void * jarg5) {
- unsigned long jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::addr_t arg2 ;
- void *arg3 = (void *) 0 ;
- size_t arg4 ;
- lldb::SBError *arg5 = 0 ;
- lldb::addr_t *argp2 ;
- size_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (void *)jarg3; /* IntPtr */
- arg4 = (size_t)jarg4;
- arg5 = (lldb::SBError *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->WriteMemory(arg2,(void const *)arg3,arg4,*arg5);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBProcess_ReadCStringFromMemory(void * jarg1, void * jarg2, void* jarg3, unsigned long jarg4, void * jarg5) {
- unsigned long jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::addr_t arg2 ;
- void *arg3 = (void *) 0 ;
- size_t arg4 ;
- lldb::SBError *arg5 = 0 ;
- lldb::addr_t *argp2 ;
- size_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (void *)jarg3; /* IntPtr */
- arg4 = (size_t)jarg4;
- arg5 = (lldb::SBError *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->ReadCStringFromMemory(arg2,arg3,arg4,*arg5);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_ReadUnsignedFromMemory(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::addr_t arg2 ;
- uint32_t arg3 ;
- lldb::SBError *arg4 = 0 ;
- lldb::addr_t *argp2 ;
- uint32_t *argp3 ;
- uint64_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (lldb::SBError *)jarg4;
- if (!arg4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->ReadUnsignedFromMemory(arg2,arg3,*arg4);
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_ReadPointerFromMemory(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::addr_t arg2 ;
- lldb::SBError *arg3 = 0 ;
- lldb::addr_t *argp2 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::SBError *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->ReadPointerFromMemory(arg2,*arg3);
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBProcess_GetStateFromEvent(void * jarg1) {
- int jresult ;
- lldb::SBEvent *arg1 = 0 ;
- lldb::StateType result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (lldb::StateType)lldb::SBProcess::GetStateFromEvent((lldb::SBEvent const &)*arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_GetRestartedFromEvent(void * jarg1) {
- unsigned int jresult ;
- lldb::SBEvent *arg1 = 0 ;
- bool result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (bool)lldb::SBProcess::GetRestartedFromEvent((lldb::SBEvent const &)*arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetProcessFromEvent(void * jarg1) {
- void * jresult ;
- lldb::SBEvent *arg1 = 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = lldb::SBProcess::GetProcessFromEvent((lldb::SBEvent const &)*arg1);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_EventIsProcessEvent(void * jarg1) {
- unsigned int jresult ;
- lldb::SBEvent *arg1 = 0 ;
- bool result;
-
- arg1 = (lldb::SBEvent *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBEvent const & type is null", 0);
- return 0;
- }
- result = (bool)lldb::SBProcess::EventIsProcessEvent((lldb::SBEvent const &)*arg1);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetBroadcaster(void * jarg1) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBBroadcaster result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- result = ((lldb::SBProcess const *)arg1)->GetBroadcaster();
- jresult = new lldb::SBBroadcaster((const lldb::SBBroadcaster &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBProcess_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_GetNumSupportedHardwareWatchpoints(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = ((lldb::SBProcess const *)arg1)->GetNumSupportedHardwareWatchpoints(*arg2);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_LoadImage(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- lldb::SBFileSpec *arg2 = 0 ;
- lldb::SBError *arg3 = 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- arg2 = (lldb::SBFileSpec *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBError *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->LoadImage(*arg2,*arg3);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBProcess_UnloadImage(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBProcess *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->UnloadImage(arg2);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSection__SWIG_0() {
- void * jresult ;
- lldb::SBSection *result = 0 ;
-
- result = (lldb::SBSection *)new lldb::SBSection();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSection__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBSection *arg1 = 0 ;
- lldb::SBSection *result = 0 ;
-
- arg1 = (lldb::SBSection *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBSection const & type is null", 0);
- return 0;
- }
- result = (lldb::SBSection *)new lldb::SBSection((lldb::SBSection const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBSection(void * jarg1) {
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
-
- arg1 = (lldb::SBSection *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSection_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- bool result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (bool)((lldb::SBSection const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBSection_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (char *)(arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_FindSubSection(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBSection result;
-
- arg1 = (lldb::SBSection *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindSubSection((char const *)arg2);
- jresult = new lldb::SBSection((const lldb::SBSection &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBSection_GetNumSubSections(void * jarg1) {
- unsigned long jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (arg1)->GetNumSubSections();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetSubSectionAtIndex(void * jarg1, unsigned long jarg2) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- size_t arg2 ;
- lldb::SBSection result;
-
- arg1 = (lldb::SBSection *)jarg1;
- arg2 = (size_t)jarg2;
- result = (arg1)->GetSubSectionAtIndex(arg2);
- jresult = new lldb::SBSection((const lldb::SBSection &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetFileAddress(void * jarg1) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (arg1)->GetFileAddress();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetLoadAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- lldb::SBTarget *arg2 = 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBSection *)jarg1;
- arg2 = (lldb::SBTarget *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget & type is null", 0);
- return 0;
- }
- result = (arg1)->GetLoadAddress(*arg2);
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (arg1)->GetByteSize();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetFileOffset(void * jarg1) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- uint64_t result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (arg1)->GetFileOffset();
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetFileByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- uint64_t result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (arg1)->GetFileByteSize();
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetSectionData__SWIG_0(void * jarg1) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- lldb::SBData result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (arg1)->GetSectionData();
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSection_GetSectionData__SWIG_1(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- uint64_t arg2 ;
- uint64_t arg3 ;
- uint64_t *argp2 ;
- uint64_t *argp3 ;
- lldb::SBData result;
-
- arg1 = (lldb::SBSection *)jarg1;
- argp2 = (uint64_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint64_t", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (uint64_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint64_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetSectionData(arg2,arg3);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBSection_GetSectionType(void * jarg1) {
- int jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- lldb::SectionType result;
-
- arg1 = (lldb::SBSection *)jarg1;
- result = (lldb::SectionType)(arg1)->GetSectionType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSection_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBSection *arg1 = (lldb::SBSection *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBSection *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSourceManager(void * jarg1) {
- void * jresult ;
- lldb::SBSourceManager *arg1 = 0 ;
- lldb::SBSourceManager *result = 0 ;
-
- arg1 = (lldb::SBSourceManager *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBSourceManager const & type is null", 0);
- return 0;
- }
- result = (lldb::SBSourceManager *)new lldb::SBSourceManager((lldb::SBSourceManager const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBSourceManager(void * jarg1) {
- lldb::SBSourceManager *arg1 = (lldb::SBSourceManager *) 0 ;
-
- arg1 = (lldb::SBSourceManager *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBSourceManager_DisplaySourceLinesWithLineNumbers(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, char * jarg6, void * jarg7) {
- unsigned long jresult ;
- lldb::SBSourceManager *arg1 = (lldb::SBSourceManager *) 0 ;
- lldb::SBFileSpec *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t arg4 ;
- uint32_t arg5 ;
- char *arg6 = (char *) 0 ;
- lldb::SBStream *arg7 = 0 ;
- uint32_t *argp3 ;
- uint32_t *argp4 ;
- uint32_t *argp5 ;
- size_t result;
-
- arg1 = (lldb::SBSourceManager *)jarg1;
- arg2 = (lldb::SBFileSpec *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- argp5 = (uint32_t *)jarg5;
- if (!argp5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg5 = *argp5;
- arg6 = (char *)jarg6;
- arg7 = (lldb::SBStream *)jarg7;
- if (!arg7) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (arg1)->DisplaySourceLinesWithLineNumbers((lldb::SBFileSpec const &)*arg2,arg3,arg4,arg5,(char const *)arg6,*arg7);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBStream() {
- void * jresult ;
- lldb::SBStream *result = 0 ;
-
- result = (lldb::SBStream *)new lldb::SBStream();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBStream(void * jarg1) {
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
-
- arg1 = (lldb::SBStream *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBStream_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
- bool result;
-
- arg1 = (lldb::SBStream *)jarg1;
- result = (bool)((lldb::SBStream const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBStream_GetData(void * jarg1) {
- char * jresult ;
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBStream *)jarg1;
- result = (char *)(arg1)->GetData();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBStream_GetSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBStream *)jarg1;
- result = (arg1)->GetSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStream_Printf(void * jarg1, char * jarg2) {
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
- char *arg2 = (char *) 0 ;
- void *arg3 = 0 ;
-
- arg1 = (lldb::SBStream *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->Printf((char const *)arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStream_RedirectToFile(void * jarg1, char * jarg2, unsigned int jarg3) {
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
- char *arg2 = (char *) 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBStream *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->RedirectToFile((char const *)arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStream_RedirectToFileHandle(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
- FILE *arg2 = (FILE *) 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBStream *)jarg1;
- arg2 = (FILE *)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->RedirectToFileHandle(arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStream_RedirectToFileDescriptor(void * jarg1, int jarg2, unsigned int jarg3) {
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
- int arg2 ;
- bool arg3 ;
-
- arg1 = (lldb::SBStream *)jarg1;
- arg2 = (int)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->RedirectToFileDescriptor(arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStream_Clear(void * jarg1) {
- lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
-
- arg1 = (lldb::SBStream *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBStringList__SWIG_0() {
- void * jresult ;
- lldb::SBStringList *result = 0 ;
-
- result = (lldb::SBStringList *)new lldb::SBStringList();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBStringList__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBStringList *arg1 = 0 ;
- lldb::SBStringList *result = 0 ;
-
- arg1 = (lldb::SBStringList *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStringList const & type is null", 0);
- return 0;
- }
- result = (lldb::SBStringList *)new lldb::SBStringList((lldb::SBStringList const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBStringList(void * jarg1) {
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
-
- arg1 = (lldb::SBStringList *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBStringList_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
- bool result;
-
- arg1 = (lldb::SBStringList *)jarg1;
- result = (bool)((lldb::SBStringList const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStringList_AppendString(void * jarg1, char * jarg2) {
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBStringList *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->AppendString((char const *)arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStringList_AppendList__SWIG_0(void * jarg1, void * jarg2, int jarg3) {
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
- char **arg2 = (char **) 0 ;
- int arg3 ;
-
- arg1 = (lldb::SBStringList *)jarg1;
- arg2 = (char **)jarg2;
- arg3 = (int)jarg3;
- (arg1)->AppendList((char const **)arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStringList_AppendList__SWIG_1(void * jarg1, void * jarg2) {
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
- lldb::SBStringList *arg2 = 0 ;
-
- arg1 = (lldb::SBStringList *)jarg1;
- arg2 = (lldb::SBStringList *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStringList const & type is null", 0);
- return ;
- }
- (arg1)->AppendList((lldb::SBStringList const &)*arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBStringList_GetSize(void * jarg1) {
- void * jresult ;
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBStringList *)jarg1;
- result = ((lldb::SBStringList const *)arg1)->GetSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBStringList_GetStringAtIndex(void * jarg1, unsigned long jarg2) {
- char * jresult ;
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
- size_t arg2 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBStringList *)jarg1;
- arg2 = (size_t)jarg2;
- result = (char *)(arg1)->GetStringAtIndex(arg2);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBStringList_Clear(void * jarg1) {
- lldb::SBStringList *arg1 = (lldb::SBStringList *) 0 ;
-
- arg1 = (lldb::SBStringList *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSymbol__SWIG_0() {
- void * jresult ;
- lldb::SBSymbol *result = 0 ;
-
- result = (lldb::SBSymbol *)new lldb::SBSymbol();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBSymbol(void * jarg1) {
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSymbol__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBSymbol *arg1 = 0 ;
- lldb::SBSymbol *result = 0 ;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBSymbol const & type is null", 0);
- return 0;
- }
- result = (lldb::SBSymbol *)new lldb::SBSymbol((lldb::SBSymbol const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbol_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (bool)((lldb::SBSymbol const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBSymbol_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (char *)((lldb::SBSymbol const *)arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBSymbol_GetMangledName(void * jarg1) {
- char * jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (char *)((lldb::SBSymbol const *)arg1)->GetMangledName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbol_GetInstructions(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- lldb::SBTarget arg2 ;
- lldb::SBTarget *argp2 ;
- lldb::SBInstructionList result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- argp2 = (lldb::SBTarget *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTarget", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetInstructions(arg2);
- jresult = new lldb::SBInstructionList((const lldb::SBInstructionList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbol_GetStartAddress(void * jarg1) {
- void * jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (arg1)->GetStartAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbol_GetEndAddress(void * jarg1) {
- void * jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (arg1)->GetEndAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbol_GetPrologueByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (arg1)->GetPrologueByteSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBSymbol_GetType(void * jarg1) {
- int jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- lldb::SymbolType result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (lldb::SymbolType)(arg1)->GetType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbol_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbol_IsExternal(void * jarg1) {
- unsigned int jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (bool)(arg1)->IsExternal();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbol_IsSynthetic(void * jarg1) {
- unsigned int jresult ;
- lldb::SBSymbol *arg1 = (lldb::SBSymbol *) 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbol *)jarg1;
- result = (bool)(arg1)->IsSynthetic();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSymbolContext__SWIG_0() {
- void * jresult ;
- lldb::SBSymbolContext *result = 0 ;
-
- result = (lldb::SBSymbolContext *)new lldb::SBSymbolContext();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSymbolContext__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = 0 ;
- lldb::SBSymbolContext *result = 0 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBSymbolContext const & type is null", 0);
- return 0;
- }
- result = (lldb::SBSymbolContext *)new lldb::SBSymbolContext((lldb::SBSymbolContext const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBSymbolContext(void * jarg1) {
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbolContext_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- result = (bool)((lldb::SBSymbolContext const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContext_GetModule(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBModule result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- result = (arg1)->GetModule();
- jresult = new lldb::SBModule((const lldb::SBModule &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContext_GetCompileUnit(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBCompileUnit result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- result = (arg1)->GetCompileUnit();
- jresult = new lldb::SBCompileUnit((const lldb::SBCompileUnit &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContext_GetFunction(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBFunction result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- result = (arg1)->GetFunction();
- jresult = new lldb::SBFunction((const lldb::SBFunction &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContext_GetBlock(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBBlock result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- result = (arg1)->GetBlock();
- jresult = new lldb::SBBlock((const lldb::SBBlock &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContext_GetLineEntry(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBLineEntry result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- result = (arg1)->GetLineEntry();
- jresult = new lldb::SBLineEntry((const lldb::SBLineEntry &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContext_GetSymbol(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBSymbol result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- result = (arg1)->GetSymbol();
- jresult = new lldb::SBSymbol((const lldb::SBSymbol &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContext_SetModule(void * jarg1, void * jarg2) {
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBModule arg2 ;
- lldb::SBModule *argp2 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- argp2 = (lldb::SBModule *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBModule", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetModule(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContext_SetCompileUnit(void * jarg1, void * jarg2) {
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBCompileUnit arg2 ;
- lldb::SBCompileUnit *argp2 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- argp2 = (lldb::SBCompileUnit *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBCompileUnit", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetCompileUnit(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContext_SetFunction(void * jarg1, void * jarg2) {
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBFunction arg2 ;
- lldb::SBFunction *argp2 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- argp2 = (lldb::SBFunction *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBFunction", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetFunction(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContext_SetBlock(void * jarg1, void * jarg2) {
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBBlock arg2 ;
- lldb::SBBlock *argp2 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- argp2 = (lldb::SBBlock *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBBlock", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetBlock(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContext_SetLineEntry(void * jarg1, void * jarg2) {
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBLineEntry arg2 ;
- lldb::SBLineEntry *argp2 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- argp2 = (lldb::SBLineEntry *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBLineEntry", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetLineEntry(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContext_SetSymbol(void * jarg1, void * jarg2) {
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBSymbol arg2 ;
- lldb::SBSymbol *argp2 ;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- argp2 = (lldb::SBSymbol *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBSymbol", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetSymbol(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContext_GetParentOfInlinedScope(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBAddress *arg2 = 0 ;
- lldb::SBAddress *arg3 = 0 ;
- lldb::SBSymbolContext result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- arg2 = (lldb::SBAddress *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBAddress const & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBAddress *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBAddress & type is null", 0);
- return 0;
- }
- result = ((lldb::SBSymbolContext const *)arg1)->GetParentOfInlinedScope((lldb::SBAddress const &)*arg2,*arg3);
- jresult = new lldb::SBSymbolContext((const lldb::SBSymbolContext &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbolContext_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBSymbolContext *arg1 = (lldb::SBSymbolContext *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbolContext *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSymbolContextList__SWIG_0() {
- void * jresult ;
- lldb::SBSymbolContextList *result = 0 ;
-
- result = (lldb::SBSymbolContextList *)new lldb::SBSymbolContextList();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBSymbolContextList__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContextList *arg1 = 0 ;
- lldb::SBSymbolContextList *result = 0 ;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBSymbolContextList const & type is null", 0);
- return 0;
- }
- result = (lldb::SBSymbolContextList *)new lldb::SBSymbolContextList((lldb::SBSymbolContextList const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBSymbolContextList(void * jarg1) {
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbolContextList_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- result = (bool)((lldb::SBSymbolContextList const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContextList_GetSize(void * jarg1) {
- void * jresult ;
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- result = ((lldb::SBSymbolContextList const *)arg1)->GetSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBSymbolContextList_GetContextAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBSymbolContext result;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetContextAtIndex(arg2);
- jresult = new lldb::SBSymbolContext((const lldb::SBSymbolContext &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContextList_Append__SWIG_0(void * jarg1, void * jarg2) {
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
- lldb::SBSymbolContext *arg2 = 0 ;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- arg2 = (lldb::SBSymbolContext *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBSymbolContext & type is null", 0);
- return ;
- }
- (arg1)->Append(*arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContextList_Append__SWIG_1(void * jarg1, void * jarg2) {
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
- lldb::SBSymbolContextList *arg2 = 0 ;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- arg2 = (lldb::SBSymbolContextList *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBSymbolContextList & type is null", 0);
- return ;
- }
- (arg1)->Append(*arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBSymbolContextList_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBSymbolContextList_Clear(void * jarg1) {
- lldb::SBSymbolContextList *arg1 = (lldb::SBSymbolContextList *) 0 ;
-
- arg1 = (lldb::SBSymbolContextList *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBLaunchInfo(void * jarg1) {
- void * jresult ;
- char **arg1 = (char **) 0 ;
- lldb::SBLaunchInfo *result = 0 ;
-
- arg1 = (char **)jarg1;
- result = (lldb::SBLaunchInfo *)new lldb::SBLaunchInfo((char const **)arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLaunchInfo_GetUserID(void * jarg1) {
- void * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (arg1)->GetUserID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLaunchInfo_GetGroupID(void * jarg1) {
- void * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (arg1)->GetGroupID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLaunchInfo_UserIDIsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (bool)(arg1)->UserIDIsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLaunchInfo_GroupIDIsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (bool)(arg1)->GroupIDIsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetUserID(void * jarg1, void * jarg2) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetUserID(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetGroupID(void * jarg1, void * jarg2) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetGroupID(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLaunchInfo_GetNumArguments(void * jarg1) {
- void * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (arg1)->GetNumArguments();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBLaunchInfo_GetArgumentAtIndex(void * jarg1, void * jarg2) {
- char * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (char *)(arg1)->GetArgumentAtIndex(arg2);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetArguments(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char **arg2 = (char **) 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (char **)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->SetArguments((char const **)arg2,arg3);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLaunchInfo_GetNumEnvironmentEntries(void * jarg1) {
- void * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (arg1)->GetNumEnvironmentEntries();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBLaunchInfo_GetEnvironmentEntryAtIndex(void * jarg1, void * jarg2) {
- char * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (char *)(arg1)->GetEnvironmentEntryAtIndex(arg2);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetEnvironmentEntries(void * jarg1, void * jarg2, unsigned int jarg3) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char **arg2 = (char **) 0 ;
- bool arg3 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (char **)jarg2;
- arg3 = jarg3 ? true : false;
- (arg1)->SetEnvironmentEntries((char const **)arg2,arg3);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_Clear(void * jarg1) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBLaunchInfo_GetWorkingDirectory(void * jarg1) {
- char * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (char *)((lldb::SBLaunchInfo const *)arg1)->GetWorkingDirectory();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetWorkingDirectory(void * jarg1, char * jarg2) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetWorkingDirectory((char const *)arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLaunchInfo_GetLaunchFlags(void * jarg1) {
- void * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (arg1)->GetLaunchFlags();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetLaunchFlags(void * jarg1, void * jarg2) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetLaunchFlags(arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBLaunchInfo_GetProcessPluginName(void * jarg1) {
- char * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (char *)(arg1)->GetProcessPluginName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetProcessPluginName(void * jarg1, char * jarg2) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetProcessPluginName((char const *)arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBLaunchInfo_GetShell(void * jarg1) {
- char * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (char *)(arg1)->GetShell();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetShell(void * jarg1, char * jarg2) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetShell((char const *)arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBLaunchInfo_GetResumeCount(void * jarg1) {
- void * jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- result = (arg1)->GetResumeCount();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBLaunchInfo_SetResumeCount(void * jarg1, void * jarg2) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetResumeCount(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLaunchInfo_AddCloseFileAction(void * jarg1, int jarg2) {
- unsigned int jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- int arg2 ;
- bool result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (int)jarg2;
- result = (bool)(arg1)->AddCloseFileAction(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLaunchInfo_AddDuplicateFileAction(void * jarg1, int jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- int arg2 ;
- int arg3 ;
- bool result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (int)jarg2;
- arg3 = (int)jarg3;
- result = (bool)(arg1)->AddDuplicateFileAction(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLaunchInfo_AddOpenFileAction(void * jarg1, int jarg2, char * jarg3, unsigned int jarg4, unsigned int jarg5) {
- unsigned int jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- int arg2 ;
- char *arg3 = (char *) 0 ;
- bool arg4 ;
- bool arg5 ;
- bool result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (int)jarg2;
- arg3 = (char *)jarg3;
- arg4 = jarg4 ? true : false;
- arg5 = jarg5 ? true : false;
- result = (bool)(arg1)->AddOpenFileAction(arg2,(char const *)arg3,arg4,arg5);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBLaunchInfo_AddSuppressFileAction(void * jarg1, int jarg2, unsigned int jarg3, unsigned int jarg4) {
- unsigned int jresult ;
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
- int arg2 ;
- bool arg3 ;
- bool arg4 ;
- bool result;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- arg2 = (int)jarg2;
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- result = (bool)(arg1)->AddSuppressFileAction(arg2,arg3,arg4);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBLaunchInfo(void * jarg1) {
- lldb::SBLaunchInfo *arg1 = (lldb::SBLaunchInfo *) 0 ;
-
- arg1 = (lldb::SBLaunchInfo *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAttachInfo__SWIG_0() {
- void * jresult ;
- lldb::SBAttachInfo *result = 0 ;
-
- result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAttachInfo__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::pid_t arg1 ;
- lldb::pid_t *argp1 ;
- lldb::SBAttachInfo *result = 0 ;
-
- argp1 = (lldb::pid_t *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::pid_t", 0);
- return 0;
- }
- arg1 = *argp1;
- result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo(arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAttachInfo__SWIG_2(char * jarg1, unsigned int jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- bool arg2 ;
- lldb::SBAttachInfo *result = 0 ;
-
- arg1 = (char *)jarg1;
- arg2 = jarg2 ? true : false;
- result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((char const *)arg1,arg2);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBAttachInfo__SWIG_3(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = 0 ;
- lldb::SBAttachInfo *result = 0 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBAttachInfo const & type is null", 0);
- return 0;
- }
- result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo((lldb::SBAttachInfo const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAttachInfo_GetProcessID(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- lldb::pid_t result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (arg1)->GetProcessID();
- jresult = new lldb::pid_t((const lldb::pid_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetProcessID(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- lldb::pid_t arg2 ;
- lldb::pid_t *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (lldb::pid_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::pid_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetProcessID(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetExecutable__SWIG_0(void * jarg1, char * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetExecutable((char const *)arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetExecutable__SWIG_1(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- lldb::SBFileSpec arg2 ;
- lldb::SBFileSpec *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (lldb::SBFileSpec *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBFileSpec", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetExecutable(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAttachInfo_GetWaitForLaunch(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (bool)(arg1)->GetWaitForLaunch();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetWaitForLaunch(void * jarg1, unsigned int jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetWaitForLaunch(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAttachInfo_GetIgnoreExisting(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (bool)(arg1)->GetIgnoreExisting();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetIgnoreExisting(void * jarg1, unsigned int jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetIgnoreExisting(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAttachInfo_GetResumeCount(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (arg1)->GetResumeCount();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetResumeCount(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetResumeCount(arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBAttachInfo_GetProcessPluginName(void * jarg1) {
- char * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (char *)(arg1)->GetProcessPluginName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetProcessPluginName(void * jarg1, char * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetProcessPluginName((char const *)arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAttachInfo_GetUserID(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (arg1)->GetUserID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAttachInfo_GetGroupID(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (arg1)->GetGroupID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAttachInfo_UserIDIsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (bool)(arg1)->UserIDIsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAttachInfo_GroupIDIsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (bool)(arg1)->GroupIDIsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetUserID(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetUserID(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetGroupID(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetGroupID(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAttachInfo_GetEffectiveUserID(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (arg1)->GetEffectiveUserID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAttachInfo_GetEffectiveGroupID(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (arg1)->GetEffectiveGroupID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAttachInfo_EffectiveUserIDIsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (bool)(arg1)->EffectiveUserIDIsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAttachInfo_EffectiveGroupIDIsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (bool)(arg1)->EffectiveGroupIDIsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetEffectiveUserID(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetEffectiveUserID(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetEffectiveGroupID(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetEffectiveGroupID(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBAttachInfo_GetParentProcessID(void * jarg1) {
- void * jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- lldb::pid_t result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (arg1)->GetParentProcessID();
- jresult = new lldb::pid_t((const lldb::pid_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBAttachInfo_SetParentProcessID(void * jarg1, void * jarg2) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- lldb::pid_t arg2 ;
- lldb::pid_t *argp2 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- argp2 = (lldb::pid_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::pid_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetParentProcessID(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBAttachInfo_ParentProcessIDIsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
- bool result;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- result = (bool)(arg1)->ParentProcessIDIsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBAttachInfo(void * jarg1) {
- lldb::SBAttachInfo *arg1 = (lldb::SBAttachInfo *) 0 ;
-
- arg1 = (lldb::SBAttachInfo *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBTarget_eBroadcastBitBreakpointChanged_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBTarget::eBroadcastBitBreakpointChanged;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBTarget_eBroadcastBitModulesLoaded_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBTarget::eBroadcastBitModulesLoaded;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBTarget_eBroadcastBitModulesUnloaded_get() {
- int jresult ;
- int result;
-
- result = (int)lldb::SBTarget::eBroadcastBitModulesUnloaded;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTarget__SWIG_0() {
- void * jresult ;
- lldb::SBTarget *result = 0 ;
-
- result = (lldb::SBTarget *)new lldb::SBTarget();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTarget__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = 0 ;
- lldb::SBTarget *result = 0 ;
-
- arg1 = (lldb::SBTarget *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTarget const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTarget *)new lldb::SBTarget((lldb::SBTarget const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTarget(void * jarg1) {
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
-
- arg1 = (lldb::SBTarget *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTarget_GetBroadcasterClassName() {
- char * jresult ;
- char *result = 0 ;
-
- result = (char *)lldb::SBTarget::GetBroadcasterClassName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (bool)((lldb::SBTarget const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetProcess(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (arg1)->GetProcess();
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_Launch__SWIG_0(void * jarg1, void * jarg2, void * jarg3, void * jarg4, char * jarg5, char * jarg6, char * jarg7, char * jarg8, void * jarg9, unsigned int jarg10, void * jarg11) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- char **arg3 = (char **) 0 ;
- char **arg4 = (char **) 0 ;
- char *arg5 = (char *) 0 ;
- char *arg6 = (char *) 0 ;
- char *arg7 = (char *) 0 ;
- char *arg8 = (char *) 0 ;
- uint32_t arg9 ;
- bool arg10 ;
- lldb::SBError *arg11 = 0 ;
- uint32_t *argp9 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener & type is null", 0);
- return 0;
- }
- arg3 = (char **)jarg3;
- arg4 = (char **)jarg4;
- arg5 = (char *)jarg5;
- arg6 = (char *)jarg6;
- arg7 = (char *)jarg7;
- arg8 = (char *)jarg8;
- argp9 = (uint32_t *)jarg9;
- if (!argp9) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg9 = *argp9;
- arg10 = jarg10 ? true : false;
- arg11 = (lldb::SBError *)jarg11;
- if (!arg11) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->Launch(*arg2,(char const **)arg3,(char const **)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,arg9,arg10,*arg11);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_LaunchSimple(void * jarg1, void * jarg2, void * jarg3, char * jarg4) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char **arg2 = (char **) 0 ;
- char **arg3 = (char **) 0 ;
- char *arg4 = (char *) 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char **)jarg2;
- arg3 = (char **)jarg3;
- arg4 = (char *)jarg4;
- result = (arg1)->LaunchSimple((char const **)arg2,(char const **)arg3,(char const *)arg4);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_Launch__SWIG_1(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBLaunchInfo *arg2 = 0 ;
- lldb::SBError *arg3 = 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBLaunchInfo *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBLaunchInfo & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBError *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->Launch(*arg2,*arg3);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_Attach(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBAttachInfo *arg2 = 0 ;
- lldb::SBError *arg3 = 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBAttachInfo *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBAttachInfo & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBError *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->Attach(*arg2,*arg3);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_AttachToProcessWithID(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- lldb::pid_t arg3 ;
- lldb::SBError *arg4 = 0 ;
- lldb::pid_t *argp3 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener & type is null", 0);
- return 0;
- }
- argp3 = (lldb::pid_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::pid_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (lldb::SBError *)jarg4;
- if (!arg4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->AttachToProcessWithID(*arg2,arg3,*arg4);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_AttachToProcessWithName(void * jarg1, void * jarg2, char * jarg3, unsigned int jarg4, void * jarg5) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- char *arg3 = (char *) 0 ;
- bool arg4 ;
- lldb::SBError *arg5 = 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener & type is null", 0);
- return 0;
- }
- arg3 = (char *)jarg3;
- arg4 = jarg4 ? true : false;
- arg5 = (lldb::SBError *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->AttachToProcessWithName(*arg2,(char const *)arg3,arg4,*arg5);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_ConnectRemote(void * jarg1, void * jarg2, char * jarg3, char * jarg4, void * jarg5) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBListener *arg2 = 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) 0 ;
- lldb::SBError *arg5 = 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBListener *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBListener & type is null", 0);
- return 0;
- }
- arg3 = (char *)jarg3;
- arg4 = (char *)jarg4;
- arg5 = (lldb::SBError *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->ConnectRemote(*arg2,(char const *)arg3,(char const *)arg4,*arg5);
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetExecutable(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBFileSpec result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (arg1)->GetExecutable();
- jresult = new lldb::SBFileSpec((const lldb::SBFileSpec &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_AddModule__SWIG_0(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBModule *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBModule *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBModule & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->AddModule(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_AddModule__SWIG_1(void * jarg1, char * jarg2, char * jarg3, char * jarg4) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) 0 ;
- lldb::SBModule result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- arg4 = (char *)jarg4;
- result = (arg1)->AddModule((char const *)arg2,(char const *)arg3,(char const *)arg4);
- jresult = new lldb::SBModule((const lldb::SBModule &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_AddModule__SWIG_2(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- char *arg4 = (char *) 0 ;
- char *arg5 = (char *) 0 ;
- lldb::SBModule result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- arg4 = (char *)jarg4;
- arg5 = (char *)jarg5;
- result = (arg1)->AddModule((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
- jresult = new lldb::SBModule((const lldb::SBModule &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetNumModules(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = ((lldb::SBTarget const *)arg1)->GetNumModules();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetModuleAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBModule result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetModuleAtIndex(arg2);
- jresult = new lldb::SBModule((const lldb::SBModule &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_RemoveModule(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBModule arg2 ;
- lldb::SBModule *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::SBModule *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBModule", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->RemoveModule(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetDebugger(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBDebugger result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = ((lldb::SBTarget const *)arg1)->GetDebugger();
- jresult = new lldb::SBDebugger((const lldb::SBDebugger &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindModule(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBFileSpec *arg2 = 0 ;
- lldb::SBModule result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBFileSpec *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- result = (arg1)->FindModule((lldb::SBFileSpec const &)*arg2);
- jresult = new lldb::SBModule((const lldb::SBModule &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBTarget_GetByteOrder(void * jarg1) {
- int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::ByteOrder result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (lldb::ByteOrder)(arg1)->GetByteOrder();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetAddressByteSize(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (arg1)->GetAddressByteSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTarget_GetTriple(void * jarg1) {
- char * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (char *)(arg1)->GetTriple();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_SetSectionLoadAddress(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBSection arg2 ;
- lldb::addr_t arg3 ;
- lldb::SBSection *argp2 ;
- lldb::addr_t *argp3 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::SBSection *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBSection", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (lldb::addr_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->SetSectionLoadAddress(arg2,arg3);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_ClearSectionLoadAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBSection arg2 ;
- lldb::SBSection *argp2 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::SBSection *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBSection", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->ClearSectionLoadAddress(arg2);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_SetModuleLoadAddress(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBModule arg2 ;
- int64_t arg3 ;
- lldb::SBModule *argp2 ;
- int64_t *argp3 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::SBModule *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBModule", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (int64_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null int64_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->SetModuleLoadAddress(arg2,arg3);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_ClearModuleLoadAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBModule arg2 ;
- lldb::SBModule *argp2 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::SBModule *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBModule", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->ClearModuleLoadAddress(arg2);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindFunctions__SWIG_0(void * jarg1, char * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::SBSymbolContextList result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->FindFunctions((char const *)arg2,arg3);
- jresult = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindFunctions__SWIG_1(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBSymbolContextList result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindFunctions((char const *)arg2);
- jresult = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindFirstType(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindFirstType((char const *)arg2);
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindTypes(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBTypeList result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->FindTypes((char const *)arg2);
- jresult = new lldb::SBTypeList((const lldb::SBTypeList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetSourceManager(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- SwigValueWrapper< lldb::SBSourceManager > result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (arg1)->GetSourceManager();
- jresult = new lldb::SBSourceManager((const lldb::SBSourceManager &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindGlobalVariables(void * jarg1, char * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::SBValueList result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->FindGlobalVariables((char const *)arg2,arg3);
- jresult = new lldb::SBValueList((const lldb::SBValueList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTarget_Clear(void * jarg1) {
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
-
- arg1 = (lldb::SBTarget *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_ResolveLoadAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->ResolveLoadAddress(arg2);
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_ResolveSymbolContextForAddress(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBAddress *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::SBSymbolContext result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBAddress *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBAddress const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->ResolveSymbolContextForAddress((lldb::SBAddress const &)*arg2,arg3);
- jresult = new lldb::SBSymbolContext((const lldb::SBSymbolContext &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByLocation__SWIG_0(void * jarg1, char * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->BreakpointCreateByLocation((char const *)arg2,arg3);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByLocation__SWIG_1(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBFileSpec *arg2 = 0 ;
- uint32_t arg3 ;
- uint32_t *argp3 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBFileSpec *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->BreakpointCreateByLocation((lldb::SBFileSpec const &)*arg2,arg3);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByName__SWIG_0(void * jarg1, char * jarg2, char * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- result = (arg1)->BreakpointCreateByName((char const *)arg2,(char const *)arg3);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByName__SWIG_1(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->BreakpointCreateByName((char const *)arg2);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByName__SWIG_2(void * jarg1, char * jarg2, void * jarg3, void * jarg4, void * jarg5) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- lldb::SBFileSpecList *arg4 = 0 ;
- lldb::SBFileSpecList *arg5 = 0 ;
- uint32_t *argp3 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (lldb::SBFileSpecList *)jarg4;
- if (!arg4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpecList const & type is null", 0);
- return 0;
- }
- arg5 = (lldb::SBFileSpecList *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpecList const & type is null", 0);
- return 0;
- }
- result = (arg1)->BreakpointCreateByName((char const *)arg2,arg3,(lldb::SBFileSpecList const &)*arg4,(lldb::SBFileSpecList const &)*arg5);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByNames(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char **arg2 ;
- uint32_t arg3 ;
- uint32_t arg4 ;
- lldb::SBFileSpecList *arg5 = 0 ;
- lldb::SBFileSpecList *arg6 = 0 ;
- uint32_t *argp3 ;
- uint32_t *argp4 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char **)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- arg5 = (lldb::SBFileSpecList *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpecList const & type is null", 0);
- return 0;
- }
- arg6 = (lldb::SBFileSpecList *)jarg6;
- if (!arg6) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpecList const & type is null", 0);
- return 0;
- }
- result = (arg1)->BreakpointCreateByNames((char const *(*))arg2,arg3,arg4,(lldb::SBFileSpecList const &)*arg5,(lldb::SBFileSpecList const &)*arg6);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByRegex__SWIG_0(void * jarg1, char * jarg2, char * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- result = (arg1)->BreakpointCreateByRegex((char const *)arg2,(char const *)arg3);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByRegex__SWIG_1(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->BreakpointCreateByRegex((char const *)arg2);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateBySourceRegex__SWIG_0(void * jarg1, char * jarg2, void * jarg3, char * jarg4) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBFileSpec *arg3 = 0 ;
- char *arg4 = (char *) 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::SBFileSpec *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- arg4 = (char *)jarg4;
- result = (arg1)->BreakpointCreateBySourceRegex((char const *)arg2,(lldb::SBFileSpec const &)*arg3,(char const *)arg4);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateBySourceRegex__SWIG_1(void * jarg1, char * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBFileSpec *arg3 = 0 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::SBFileSpec *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec const & type is null", 0);
- return 0;
- }
- result = (arg1)->BreakpointCreateBySourceRegex((char const *)arg2,(lldb::SBFileSpec const &)*arg3);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateForException(void * jarg1, int jarg2, unsigned int jarg3, unsigned int jarg4) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::LanguageType arg2 ;
- bool arg3 ;
- bool arg4 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::LanguageType)jarg2;
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- result = (arg1)->BreakpointCreateForException(arg2,arg3,arg4);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_BreakpointCreateByAddress(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->BreakpointCreateByAddress(arg2);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetNumBreakpoints(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = ((lldb::SBTarget const *)arg1)->GetNumBreakpoints();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetBreakpointAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = ((lldb::SBTarget const *)arg1)->GetBreakpointAtIndex(arg2);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_BreakpointDelete(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::break_id_t arg2 ;
- lldb::break_id_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::break_id_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::break_id_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->BreakpointDelete(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindBreakpointByID(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::break_id_t arg2 ;
- lldb::break_id_t *argp2 ;
- lldb::SBBreakpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::break_id_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::break_id_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->FindBreakpointByID(arg2);
- jresult = new lldb::SBBreakpoint((const lldb::SBBreakpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_EnableAllBreakpoints(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (bool)(arg1)->EnableAllBreakpoints();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_DisableAllBreakpoints(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (bool)(arg1)->DisableAllBreakpoints();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_DeleteAllBreakpoints(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (bool)(arg1)->DeleteAllBreakpoints();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetNumWatchpoints(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = ((lldb::SBTarget const *)arg1)->GetNumWatchpoints();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetWatchpointAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBWatchpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = ((lldb::SBTarget const *)arg1)->GetWatchpointAtIndex(arg2);
- jresult = new lldb::SBWatchpoint((const lldb::SBWatchpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_DeleteWatchpoint(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::watch_id_t arg2 ;
- lldb::watch_id_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::watch_id_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::watch_id_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->DeleteWatchpoint(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_FindWatchpointByID(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::watch_id_t arg2 ;
- lldb::watch_id_t *argp2 ;
- lldb::SBWatchpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::watch_id_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::watch_id_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->FindWatchpointByID(arg2);
- jresult = new lldb::SBWatchpoint((const lldb::SBWatchpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_EnableAllWatchpoints(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (bool)(arg1)->EnableAllWatchpoints();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_DisableAllWatchpoints(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (bool)(arg1)->DisableAllWatchpoints();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_DeleteAllWatchpoints(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = (bool)(arg1)->DeleteAllWatchpoints();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_WatchAddress(void * jarg1, void * jarg2, unsigned long jarg3, unsigned int jarg4, unsigned int jarg5, void * jarg6) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::addr_t arg2 ;
- size_t arg3 ;
- bool arg4 ;
- bool arg5 ;
- lldb::SBError *arg6 = 0 ;
- lldb::addr_t *argp2 ;
- lldb::SBWatchpoint result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (size_t)jarg3;
- arg4 = jarg4 ? true : false;
- arg5 = jarg5 ? true : false;
- arg6 = (lldb::SBError *)jarg6;
- if (!arg6) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->WatchAddress(arg2,arg3,arg4,arg5,*arg6);
- jresult = new lldb::SBWatchpoint((const lldb::SBWatchpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetBroadcaster(void * jarg1) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBBroadcaster result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- result = ((lldb::SBTarget const *)arg1)->GetBroadcaster();
- jresult = new lldb::SBBroadcaster((const lldb::SBBroadcaster &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_ReadInstructions(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBAddress arg2 ;
- uint32_t arg3 ;
- lldb::SBAddress *argp2 ;
- uint32_t *argp3 ;
- lldb::SBInstructionList result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::SBAddress *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBAddress", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->ReadInstructions(arg2,arg3);
- jresult = new lldb::SBInstructionList((const lldb::SBInstructionList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTarget_GetInstructions(void * jarg1, void * jarg2, void* jarg3, unsigned long jarg4) {
- void * jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBAddress arg2 ;
- void *arg3 = (void *) 0 ;
- size_t arg4 ;
- lldb::SBAddress *argp2 ;
- lldb::SBInstructionList result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- argp2 = (lldb::SBAddress *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBAddress", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (void *)jarg3; /* IntPtr */
- arg4 = (size_t)jarg4;
- result = (arg1)->GetInstructions(arg2,(void const *)arg3,arg4);
- jresult = new lldb::SBInstructionList((const lldb::SBInstructionList &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTarget_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBTarget *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBThread__SWIG_0() {
- void * jresult ;
- lldb::SBThread *result = 0 ;
-
- result = (lldb::SBThread *)new lldb::SBThread();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBThread__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBThread *arg1 = 0 ;
- lldb::SBThread *result = 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBThread const & type is null", 0);
- return 0;
- }
- result = (lldb::SBThread *)new lldb::SBThread((lldb::SBThread const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBThread(void * jarg1) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBThread_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- bool result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (bool)((lldb::SBThread const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_Clear(void * jarg1) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBThread_GetStopReason(void * jarg1) {
- int jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::StopReason result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (lldb::StopReason)(arg1)->GetStopReason();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBThread_GetStopReasonDataCount(void * jarg1) {
- unsigned long jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (arg1)->GetStopReasonDataCount();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetStopReasonDataAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- uint64_t result;
-
- arg1 = (lldb::SBThread *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetStopReasonDataAtIndex(arg2);
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBThread_GetStopDescription(void * jarg1, char * jarg2, unsigned long jarg3) {
- unsigned long jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- char *arg2 = (char *) 0 ;
- size_t arg3 ;
- size_t result;
-
- arg1 = (lldb::SBThread *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (size_t)jarg3;
- result = (arg1)->GetStopDescription(arg2,arg3);
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetStopReturnValue(void * jarg1) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (arg1)->GetStopReturnValue();
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetThreadID(void * jarg1) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::tid_t result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = ((lldb::SBThread const *)arg1)->GetThreadID();
- jresult = new lldb::tid_t((const lldb::tid_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetIndexID(void * jarg1) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = ((lldb::SBThread const *)arg1)->GetIndexID();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBThread_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (char *)((lldb::SBThread const *)arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBThread_GetQueueName(void * jarg1) {
- char * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (char *)((lldb::SBThread const *)arg1)->GetQueueName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_StepOver__SWIG_0(void * jarg1, int jarg2) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::RunMode arg2 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- arg2 = (lldb::RunMode)jarg2;
- (arg1)->StepOver(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_StepOver__SWIG_1(void * jarg1) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- (arg1)->StepOver();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_StepInto__SWIG_0(void * jarg1, int jarg2) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::RunMode arg2 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- arg2 = (lldb::RunMode)jarg2;
- (arg1)->StepInto(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_StepInto__SWIG_1(void * jarg1) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- (arg1)->StepInto();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_StepOut(void * jarg1) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- (arg1)->StepOut();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_StepOutOfFrame(void * jarg1, void * jarg2) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::SBFrame *arg2 = 0 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- arg2 = (lldb::SBFrame *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFrame & type is null", 0);
- return ;
- }
- (arg1)->StepOutOfFrame(*arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_StepInstruction(void * jarg1, unsigned int jarg2) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->StepInstruction(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_StepOverUntil(void * jarg1, void * jarg2, void * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::SBFrame *arg2 = 0 ;
- lldb::SBFileSpec *arg3 = 0 ;
- uint32_t arg4 ;
- uint32_t *argp4 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBThread *)jarg1;
- arg2 = (lldb::SBFrame *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFrame & type is null", 0);
- return 0;
- }
- arg3 = (lldb::SBFileSpec *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBFileSpec & type is null", 0);
- return 0;
- }
- argp4 = (uint32_t *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg4 = *argp4;
- result = (arg1)->StepOverUntil(*arg2,*arg3,arg4);
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBThread_RunToAddress(void * jarg1, void * jarg2) {
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::addr_t arg2 ;
- lldb::addr_t *argp2 ;
-
- arg1 = (lldb::SBThread *)jarg1;
- argp2 = (lldb::addr_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->RunToAddress(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBThread_Suspend(void * jarg1) {
- unsigned int jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- bool result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (bool)(arg1)->Suspend();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBThread_Resume(void * jarg1) {
- unsigned int jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- bool result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (bool)(arg1)->Resume();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBThread_IsSuspended(void * jarg1) {
- unsigned int jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- bool result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (bool)(arg1)->IsSuspended();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetNumFrames(void * jarg1) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (arg1)->GetNumFrames();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetFrameAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBFrame result;
-
- arg1 = (lldb::SBThread *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFrameAtIndex(arg2);
- jresult = new lldb::SBFrame((const lldb::SBFrame &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetSelectedFrame(void * jarg1) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::SBFrame result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (arg1)->GetSelectedFrame();
- jresult = new lldb::SBFrame((const lldb::SBFrame &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_SetSelectedFrame(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBFrame result;
-
- arg1 = (lldb::SBThread *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->SetSelectedFrame(arg2);
- jresult = new lldb::SBFrame((const lldb::SBFrame &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBThread_GetProcess(void * jarg1) {
- void * jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBThread *)jarg1;
- result = (arg1)->GetProcess();
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBThread_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBThread *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)((lldb::SBThread const *)arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeMember__SWIG_0() {
- void * jresult ;
- lldb::SBTypeMember *result = 0 ;
-
- result = (lldb::SBTypeMember *)new lldb::SBTypeMember();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeMember__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBTypeMember *arg1 = 0 ;
- lldb::SBTypeMember *result = 0 ;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeMember const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTypeMember *)new lldb::SBTypeMember((lldb::SBTypeMember const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeMember(void * jarg1) {
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeMember_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- result = (bool)((lldb::SBTypeMember const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTypeMember_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- result = (char *)(arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeMember_GetType(void * jarg1) {
- void * jresult ;
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- result = (arg1)->GetType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeMember_GetOffsetInBytes(void * jarg1) {
- void * jresult ;
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
- uint64_t result;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- result = (arg1)->GetOffsetInBytes();
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeMember_GetOffsetInBits(void * jarg1) {
- void * jresult ;
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
- uint64_t result;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- result = (arg1)->GetOffsetInBits();
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeMember_IsBitfield(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- result = (bool)(arg1)->IsBitfield();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeMember_GetBitfieldSizeInBits(void * jarg1) {
- void * jresult ;
- lldb::SBTypeMember *arg1 = (lldb::SBTypeMember *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeMember *)jarg1;
- result = (arg1)->GetBitfieldSizeInBits();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBType__SWIG_0() {
- void * jresult ;
- lldb::SBType *result = 0 ;
-
- result = (lldb::SBType *)new lldb::SBType();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBType__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = 0 ;
- lldb::SBType *result = 0 ;
-
- arg1 = (lldb::SBType *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBType const & type is null", 0);
- return 0;
- }
- result = (lldb::SBType *)new lldb::SBType((lldb::SBType const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBType(void * jarg1) {
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
-
- arg1 = (lldb::SBType *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBType_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- bool result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (bool)(arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBType_GetByteSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetByteSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBType_IsPointerType(void * jarg1) {
- unsigned int jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- bool result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (bool)(arg1)->IsPointerType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBType_IsReferenceType(void * jarg1) {
- unsigned int jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- bool result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (bool)(arg1)->IsReferenceType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetPointerType(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetPointerType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetPointeeType(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetPointeeType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetReferenceType(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetReferenceType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetDereferencedType(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetDereferencedType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetUnqualifiedType(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetUnqualifiedType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetBasicType(void * jarg1, int jarg2) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- lldb::BasicType arg2 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBType *)jarg1;
- arg2 = (lldb::BasicType)jarg2;
- result = (arg1)->GetBasicType(arg2);
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetNumberOfFields(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetNumberOfFields();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetNumberOfDirectBaseClasses(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetNumberOfDirectBaseClasses();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetNumberOfVirtualBaseClasses(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetNumberOfVirtualBaseClasses();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetFieldAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeMember result;
-
- arg1 = (lldb::SBType *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFieldAtIndex(arg2);
- jresult = new lldb::SBTypeMember((const lldb::SBTypeMember &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetDirectBaseClassAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeMember result;
-
- arg1 = (lldb::SBType *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetDirectBaseClassAtIndex(arg2);
- jresult = new lldb::SBTypeMember((const lldb::SBTypeMember &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetVirtualBaseClassAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeMember result;
-
- arg1 = (lldb::SBType *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetVirtualBaseClassAtIndex(arg2);
- jresult = new lldb::SBTypeMember((const lldb::SBTypeMember &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBType_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (char *)(arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBType_GetTypeClass(void * jarg1) {
- int jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- lldb::TypeClass result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (lldb::TypeClass)(arg1)->GetTypeClass();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetNumberOfTemplateArguments(void * jarg1) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (arg1)->GetNumberOfTemplateArguments();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBType_GetTemplateArgumentType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBType *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetTemplateArgumentType(arg2);
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBType_GetTemplateArgumentKind(void * jarg1, void * jarg2) {
- int jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::TemplateArgumentKind result;
-
- arg1 = (lldb::SBType *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (lldb::TemplateArgumentKind)(arg1)->GetTemplateArgumentKind(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBType_IsTypeComplete(void * jarg1) {
- unsigned int jresult ;
- lldb::SBType *arg1 = (lldb::SBType *) 0 ;
- bool result;
-
- arg1 = (lldb::SBType *)jarg1;
- result = (bool)(arg1)->IsTypeComplete();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeList() {
- void * jresult ;
- lldb::SBTypeList *result = 0 ;
-
- result = (lldb::SBTypeList *)new lldb::SBTypeList();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeList_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeList *arg1 = (lldb::SBTypeList *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeList *)jarg1;
- result = (bool)(arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeList_Append(void * jarg1, void * jarg2) {
- lldb::SBTypeList *arg1 = (lldb::SBTypeList *) 0 ;
- lldb::SBType arg2 ;
- lldb::SBType *argp2 ;
-
- arg1 = (lldb::SBTypeList *)jarg1;
- argp2 = (lldb::SBType *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBType", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->Append(arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeList_GetTypeAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeList *arg1 = (lldb::SBTypeList *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBTypeList *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetTypeAtIndex(arg2);
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeList_GetSize(void * jarg1) {
- void * jresult ;
- lldb::SBTypeList *arg1 = (lldb::SBTypeList *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeList *)jarg1;
- result = (arg1)->GetSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeList(void * jarg1) {
- lldb::SBTypeList *arg1 = (lldb::SBTypeList *) 0 ;
-
- arg1 = (lldb::SBTypeList *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeCategory__SWIG_0() {
- void * jresult ;
- lldb::SBTypeCategory *result = 0 ;
-
- result = (lldb::SBTypeCategory *)new lldb::SBTypeCategory();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeCategory__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = 0 ;
- lldb::SBTypeCategory *result = 0 ;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeCategory const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTypeCategory *)new lldb::SBTypeCategory((lldb::SBTypeCategory const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeCategory(void * jarg1) {
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- result = (bool)((lldb::SBTypeCategory const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_GetEnabled(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- result = (bool)(arg1)->GetEnabled();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeCategory_SetEnabled(void * jarg1, unsigned int jarg2) {
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetEnabled(arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTypeCategory_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- result = (char *)(arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetNumFormats(void * jarg1) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- result = (arg1)->GetNumFormats();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetNumSummaries(void * jarg1) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- result = (arg1)->GetNumSummaries();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetNumFilters(void * jarg1) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- result = (arg1)->GetNumFilters();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetNumSynthetics(void * jarg1) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- result = (arg1)->GetNumSynthetics();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetTypeNameSpecifierForFilterAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeNameSpecifier result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetTypeNameSpecifierForFilterAtIndex(arg2);
- jresult = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetTypeNameSpecifierForFormatAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeNameSpecifier result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetTypeNameSpecifierForFormatAtIndex(arg2);
- jresult = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetTypeNameSpecifierForSummaryAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeNameSpecifier result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetTypeNameSpecifierForSummaryAtIndex(arg2);
- jresult = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetTypeNameSpecifierForSyntheticAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeNameSpecifier result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetTypeNameSpecifierForSyntheticAtIndex(arg2);
- jresult = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetFilterForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeFilter result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFilterForType(arg2);
- jresult = new lldb::SBTypeFilter((const lldb::SBTypeFilter &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetFormatForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeFormat result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFormatForType(arg2);
- jresult = new lldb::SBTypeFormat((const lldb::SBTypeFormat &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetSummaryForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeSummary result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetSummaryForType(arg2);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetSyntheticForType(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetSyntheticForType(arg2);
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetFilterAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeFilter result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFilterAtIndex(arg2);
- jresult = new lldb::SBTypeFilter((const lldb::SBTypeFilter &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetFormatAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeFormat result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetFormatAtIndex(arg2);
- jresult = new lldb::SBTypeFormat((const lldb::SBTypeFormat &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetSummaryAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeSummary result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetSummaryAtIndex(arg2);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeCategory_GetSyntheticAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetSyntheticAtIndex(arg2);
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_AddTypeFormat(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeFormat arg3 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeFormat *argp3 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (lldb::SBTypeFormat *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeFormat", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->AddTypeFormat(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_DeleteTypeFormat(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->DeleteTypeFormat(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_AddTypeSummary(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeSummary arg3 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeSummary *argp3 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (lldb::SBTypeSummary *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeSummary", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->AddTypeSummary(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_DeleteTypeSummary(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->DeleteTypeSummary(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_AddTypeFilter(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeFilter arg3 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeFilter *argp3 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (lldb::SBTypeFilter *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeFilter", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->AddTypeFilter(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_DeleteTypeFilter(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->DeleteTypeFilter(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_AddTypeSynthetic(void * jarg1, void * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeSynthetic arg3 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- lldb::SBTypeSynthetic *argp3 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (lldb::SBTypeSynthetic *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeSynthetic", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (bool)(arg1)->AddTypeSynthetic(arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeCategory_DeleteTypeSynthetic(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeCategory *arg1 = (lldb::SBTypeCategory *) 0 ;
- lldb::SBTypeNameSpecifier arg2 ;
- lldb::SBTypeNameSpecifier *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTypeCategory *)jarg1;
- argp2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBTypeNameSpecifier", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (bool)(arg1)->DeleteTypeSynthetic(arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeFilter__SWIG_0() {
- void * jresult ;
- lldb::SBTypeFilter *result = 0 ;
-
- result = (lldb::SBTypeFilter *)new lldb::SBTypeFilter();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeFilter__SWIG_1(void * jarg1) {
- void * jresult ;
- uint32_t arg1 ;
- uint32_t *argp1 ;
- lldb::SBTypeFilter *result = 0 ;
-
- argp1 = (uint32_t *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg1 = *argp1;
- result = (lldb::SBTypeFilter *)new lldb::SBTypeFilter(arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeFilter__SWIG_2(void * jarg1) {
- void * jresult ;
- lldb::SBTypeFilter *arg1 = 0 ;
- lldb::SBTypeFilter *result = 0 ;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeFilter const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTypeFilter *)new lldb::SBTypeFilter((lldb::SBTypeFilter const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeFilter(void * jarg1) {
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeFilter_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- result = (bool)((lldb::SBTypeFilter const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeFilter_IsEqualTo(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- lldb::SBTypeFilter *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- arg2 = (lldb::SBTypeFilter *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeFilter & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->IsEqualTo(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeFilter_GetNumberOfExpressionPaths(void * jarg1) {
- void * jresult ;
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- result = (arg1)->GetNumberOfExpressionPaths();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTypeFilter_GetExpressionPathAtIndex(void * jarg1, void * jarg2) {
- char * jresult ;
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (char *)(arg1)->GetExpressionPathAtIndex(arg2);
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeFilter_ReplaceExpressionPathAtIndex(void * jarg1, void * jarg2, char * jarg3) {
- unsigned int jresult ;
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- uint32_t arg2 ;
- char *arg3 = (char *) 0 ;
- uint32_t *argp2 ;
- bool result;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (char *)jarg3;
- result = (bool)(arg1)->ReplaceExpressionPathAtIndex(arg2,(char const *)arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeFilter_AppendExpressionPath(void * jarg1, char * jarg2) {
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->AppendExpressionPath((char const *)arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeFilter_Clear(void * jarg1) {
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeFilter_GetOptions(void * jarg1) {
- void * jresult ;
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- result = (arg1)->GetOptions();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeFilter_SetOptions(void * jarg1, void * jarg2) {
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetOptions(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeFilter_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBTypeFilter *arg1 = (lldb::SBTypeFilter *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBTypeFilter *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeFormat__SWIG_0() {
- void * jresult ;
- lldb::SBTypeFormat *result = 0 ;
-
- result = (lldb::SBTypeFormat *)new lldb::SBTypeFormat();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeFormat__SWIG_1(int jarg1, void * jarg2) {
- void * jresult ;
- lldb::Format arg1 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeFormat *result = 0 ;
-
- arg1 = (lldb::Format)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (lldb::SBTypeFormat *)new lldb::SBTypeFormat(arg1,arg2);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeFormat__SWIG_2(int jarg1) {
- void * jresult ;
- lldb::Format arg1 ;
- lldb::SBTypeFormat *result = 0 ;
-
- arg1 = (lldb::Format)jarg1;
- result = (lldb::SBTypeFormat *)new lldb::SBTypeFormat(arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeFormat__SWIG_3(void * jarg1) {
- void * jresult ;
- lldb::SBTypeFormat *arg1 = 0 ;
- lldb::SBTypeFormat *result = 0 ;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeFormat const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTypeFormat *)new lldb::SBTypeFormat((lldb::SBTypeFormat const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeFormat(void * jarg1) {
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeFormat_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- result = (bool)((lldb::SBTypeFormat const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeFormat_IsEqualTo(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
- lldb::SBTypeFormat *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- arg2 = (lldb::SBTypeFormat *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeFormat & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->IsEqualTo(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBTypeFormat_GetFormat(void * jarg1) {
- int jresult ;
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
- lldb::Format result;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- result = (lldb::Format)(arg1)->GetFormat();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeFormat_GetOptions(void * jarg1) {
- void * jresult ;
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- result = (arg1)->GetOptions();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeFormat_SetFormat(void * jarg1, int jarg2) {
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
- lldb::Format arg2 ;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- arg2 = (lldb::Format)jarg2;
- (arg1)->SetFormat(arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeFormat_SetOptions(void * jarg1, void * jarg2) {
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetOptions(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeFormat_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBTypeFormat *arg1 = (lldb::SBTypeFormat *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBTypeFormat *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeNameSpecifier__SWIG_0() {
- void * jresult ;
- lldb::SBTypeNameSpecifier *result = 0 ;
-
- result = (lldb::SBTypeNameSpecifier *)new lldb::SBTypeNameSpecifier();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeNameSpecifier__SWIG_1(char * jarg1, unsigned int jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- bool arg2 ;
- lldb::SBTypeNameSpecifier *result = 0 ;
-
- arg1 = (char *)jarg1;
- arg2 = jarg2 ? true : false;
- result = (lldb::SBTypeNameSpecifier *)new lldb::SBTypeNameSpecifier((char const *)arg1,arg2);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeNameSpecifier__SWIG_2(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBTypeNameSpecifier *result = 0 ;
-
- arg1 = (char *)jarg1;
- result = (lldb::SBTypeNameSpecifier *)new lldb::SBTypeNameSpecifier((char const *)arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeNameSpecifier__SWIG_3(void * jarg1) {
- void * jresult ;
- lldb::SBType arg1 ;
- lldb::SBType *argp1 ;
- lldb::SBTypeNameSpecifier *result = 0 ;
-
- argp1 = (lldb::SBType *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBType", 0);
- return 0;
- }
- arg1 = *argp1;
- result = (lldb::SBTypeNameSpecifier *)new lldb::SBTypeNameSpecifier(arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeNameSpecifier__SWIG_4(void * jarg1) {
- void * jresult ;
- lldb::SBTypeNameSpecifier *arg1 = 0 ;
- lldb::SBTypeNameSpecifier *result = 0 ;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeNameSpecifier const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTypeNameSpecifier *)new lldb::SBTypeNameSpecifier((lldb::SBTypeNameSpecifier const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeNameSpecifier(void * jarg1) {
- lldb::SBTypeNameSpecifier *arg1 = (lldb::SBTypeNameSpecifier *) 0 ;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeNameSpecifier_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeNameSpecifier *arg1 = (lldb::SBTypeNameSpecifier *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- result = (bool)((lldb::SBTypeNameSpecifier const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeNameSpecifier_IsEqualTo(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeNameSpecifier *arg1 = (lldb::SBTypeNameSpecifier *) 0 ;
- lldb::SBTypeNameSpecifier *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- arg2 = (lldb::SBTypeNameSpecifier *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeNameSpecifier & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->IsEqualTo(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTypeNameSpecifier_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBTypeNameSpecifier *arg1 = (lldb::SBTypeNameSpecifier *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- result = (char *)(arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeNameSpecifier_GetType(void * jarg1) {
- void * jresult ;
- lldb::SBTypeNameSpecifier *arg1 = (lldb::SBTypeNameSpecifier *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- result = (arg1)->GetType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeNameSpecifier_IsRegex(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeNameSpecifier *arg1 = (lldb::SBTypeNameSpecifier *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- result = (bool)(arg1)->IsRegex();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeNameSpecifier_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBTypeNameSpecifier *arg1 = (lldb::SBTypeNameSpecifier *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBTypeNameSpecifier *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeSummary__SWIG_0() {
- void * jresult ;
- lldb::SBTypeSummary *result = 0 ;
-
- result = (lldb::SBTypeSummary *)new lldb::SBTypeSummary();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSummary_CreateWithSummaryString__SWIG_0(char * jarg1, void * jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeSummary result;
-
- arg1 = (char *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = lldb::SBTypeSummary::CreateWithSummaryString((char const *)arg1,arg2);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSummary_CreateWithSummaryString__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBTypeSummary result;
-
- arg1 = (char *)jarg1;
- result = lldb::SBTypeSummary::CreateWithSummaryString((char const *)arg1);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSummary_CreateWithFunctionName__SWIG_0(char * jarg1, void * jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeSummary result;
-
- arg1 = (char *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = lldb::SBTypeSummary::CreateWithFunctionName((char const *)arg1,arg2);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSummary_CreateWithFunctionName__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBTypeSummary result;
-
- arg1 = (char *)jarg1;
- result = lldb::SBTypeSummary::CreateWithFunctionName((char const *)arg1);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSummary_CreateWithScriptCode__SWIG_0(char * jarg1, void * jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeSummary result;
-
- arg1 = (char *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = lldb::SBTypeSummary::CreateWithScriptCode((char const *)arg1,arg2);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSummary_CreateWithScriptCode__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBTypeSummary result;
-
- arg1 = (char *)jarg1;
- result = lldb::SBTypeSummary::CreateWithScriptCode((char const *)arg1);
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeSummary__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBTypeSummary *arg1 = 0 ;
- lldb::SBTypeSummary *result = 0 ;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeSummary const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTypeSummary *)new lldb::SBTypeSummary((lldb::SBTypeSummary const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeSummary(void * jarg1) {
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSummary_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- result = (bool)((lldb::SBTypeSummary const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSummary_IsEqualTo(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- lldb::SBTypeSummary *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- arg2 = (lldb::SBTypeSummary *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeSummary & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->IsEqualTo(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSummary_IsFunctionCode(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- result = (bool)(arg1)->IsFunctionCode();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSummary_IsFunctionName(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- result = (bool)(arg1)->IsFunctionName();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSummary_IsSummaryString(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- result = (bool)(arg1)->IsSummaryString();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTypeSummary_GetData(void * jarg1) {
- char * jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- result = (char *)(arg1)->GetData();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeSummary_SetSummaryString(void * jarg1, char * jarg2) {
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetSummaryString((char const *)arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeSummary_SetFunctionName(void * jarg1, char * jarg2) {
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetFunctionName((char const *)arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeSummary_SetFunctionCode(void * jarg1, char * jarg2) {
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetFunctionCode((char const *)arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSummary_GetOptions(void * jarg1) {
- void * jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- result = (arg1)->GetOptions();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeSummary_SetOptions(void * jarg1, void * jarg2) {
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetOptions(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSummary_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBTypeSummary *arg1 = (lldb::SBTypeSummary *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBTypeSummary *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeSynthetic__SWIG_0() {
- void * jresult ;
- lldb::SBTypeSynthetic *result = 0 ;
-
- result = (lldb::SBTypeSynthetic *)new lldb::SBTypeSynthetic();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSynthetic_CreateWithClassName__SWIG_0(char * jarg1, void * jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (char *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = lldb::SBTypeSynthetic::CreateWithClassName((char const *)arg1,arg2);
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSynthetic_CreateWithClassName__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (char *)jarg1;
- result = lldb::SBTypeSynthetic::CreateWithClassName((char const *)arg1);
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSynthetic_CreateWithScriptCode__SWIG_0(char * jarg1, void * jarg2) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (char *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = lldb::SBTypeSynthetic::CreateWithScriptCode((char const *)arg1,arg2);
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSynthetic_CreateWithScriptCode__SWIG_1(char * jarg1) {
- void * jresult ;
- char *arg1 = (char *) 0 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (char *)jarg1;
- result = lldb::SBTypeSynthetic::CreateWithScriptCode((char const *)arg1);
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBTypeSynthetic__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBTypeSynthetic *arg1 = 0 ;
- lldb::SBTypeSynthetic *result = 0 ;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeSynthetic const & type is null", 0);
- return 0;
- }
- result = (lldb::SBTypeSynthetic *)new lldb::SBTypeSynthetic((lldb::SBTypeSynthetic const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBTypeSynthetic(void * jarg1) {
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSynthetic_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- result = (bool)((lldb::SBTypeSynthetic const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSynthetic_IsEqualTo(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- lldb::SBTypeSynthetic *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- arg2 = (lldb::SBTypeSynthetic *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBTypeSynthetic & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->IsEqualTo(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSynthetic_IsClassCode(void * jarg1) {
- unsigned int jresult ;
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- bool result;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- result = (bool)(arg1)->IsClassCode();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBTypeSynthetic_GetData(void * jarg1) {
- char * jresult ;
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- result = (char *)(arg1)->GetData();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeSynthetic_SetClassName(void * jarg1, char * jarg2) {
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetClassName((char const *)arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeSynthetic_SetClassCode(void * jarg1, char * jarg2) {
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetClassCode((char const *)arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBTypeSynthetic_GetOptions(void * jarg1) {
- void * jresult ;
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- result = (arg1)->GetOptions();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBTypeSynthetic_SetOptions(void * jarg1, void * jarg2) {
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetOptions(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBTypeSynthetic_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBTypeSynthetic *arg1 = (lldb::SBTypeSynthetic *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBTypeSynthetic *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBValue__SWIG_0() {
- void * jresult ;
- lldb::SBValue *result = 0 ;
-
- result = (lldb::SBValue *)new lldb::SBValue();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBValue__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = 0 ;
- lldb::SBValue *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBValue const & type is null", 0);
- return 0;
- }
- result = (lldb::SBValue *)new lldb::SBValue((lldb::SBValue const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBValue(void * jarg1) {
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (bool)(arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBValue_Clear(void * jarg1) {
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetError(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetError();
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetID(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::user_id_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetID();
- jresult = new lldb::user_id_t((const lldb::user_id_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBValue_GetName(void * jarg1) {
- char * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (char *)(arg1)->GetName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBValue_GetTypeName(void * jarg1) {
- char * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (char *)(arg1)->GetTypeName();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBValue_GetByteSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetByteSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_IsInScope(void * jarg1) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (bool)(arg1)->IsInScope();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBValue_GetFormat(void * jarg1) {
- int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::Format result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (lldb::Format)(arg1)->GetFormat();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBValue_SetFormat(void * jarg1, int jarg2) {
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::Format arg2 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::Format)jarg2;
- (arg1)->SetFormat(arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBValue_GetValue(void * jarg1) {
- char * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (char *)(arg1)->GetValue();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsSigned__SWIG_0(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBError *arg2 = 0 ;
- int64_t arg3 ;
- int64_t *argp3 ;
- int64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (int64_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null int64_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetValueAsSigned(*arg2,arg3);
- jresult = new int64_t((const int64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsSigned__SWIG_1(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBError *arg2 = 0 ;
- int64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->GetValueAsSigned(*arg2);
- jresult = new int64_t((const int64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsUnsigned__SWIG_0(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint64_t arg3 ;
- uint64_t *argp3 ;
- uint64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- argp3 = (uint64_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint64_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetValueAsUnsigned(*arg2,arg3);
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsUnsigned__SWIG_1(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBError *arg2 = 0 ;
- uint64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::SBError *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->GetValueAsUnsigned(*arg2);
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsSigned__SWIG_2(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- int64_t arg2 ;
- int64_t *argp2 ;
- int64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- argp2 = (int64_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null int64_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetValueAsSigned(arg2);
- jresult = new int64_t((const int64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsSigned__SWIG_3(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- int64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetValueAsSigned();
- jresult = new int64_t((const int64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsUnsigned__SWIG_2(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- uint64_t arg2 ;
- uint64_t *argp2 ;
- uint64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- argp2 = (uint64_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint64_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetValueAsUnsigned(arg2);
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueAsUnsigned__SWIG_3(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- uint64_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetValueAsUnsigned();
- jresult = new uint64_t((const uint64_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT int SWIGSTDCALL CSharp_SBValue_GetValueType(void * jarg1) {
- int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::ValueType result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (lldb::ValueType)(arg1)->GetValueType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_GetValueDidChange(void * jarg1) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (bool)(arg1)->GetValueDidChange();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBValue_GetSummary(void * jarg1) {
- char * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (char *)(arg1)->GetSummary();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBValue_GetObjectDescription(void * jarg1) {
- char * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (char *)(arg1)->GetObjectDescription();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetDynamicValue(void * jarg1, int jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::DynamicValueType arg2 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::DynamicValueType)jarg2;
- result = (arg1)->GetDynamicValue(arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetStaticValue(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetStaticValue();
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetNonSyntheticValue(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetNonSyntheticValue();
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_IsDynamic(void * jarg1) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (bool)(arg1)->IsDynamic();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBValue_GetLocation(void * jarg1) {
- char * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (char *)(arg1)->GetLocation();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_SetValueFromCString__SWIG_0(void * jarg1, char * jarg2) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- result = (bool)(arg1)->SetValueFromCString((char const *)arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_SetValueFromCString__SWIG_1(void * jarg1, char * jarg2, void * jarg3) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBError *arg3 = 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::SBError *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->SetValueFromCString((char const *)arg2,*arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetTypeFormat(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBTypeFormat result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetTypeFormat();
- jresult = new lldb::SBTypeFormat((const lldb::SBTypeFormat &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetTypeSummary(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBTypeSummary result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetTypeSummary();
- jresult = new lldb::SBTypeSummary((const lldb::SBTypeSummary &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetTypeFilter(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBTypeFilter result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetTypeFilter();
- jresult = new lldb::SBTypeFilter((const lldb::SBTypeFilter &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetTypeSynthetic(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBTypeSynthetic result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetTypeSynthetic();
- jresult = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetChildAtIndex__SWIG_0(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetChildAtIndex(arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetChildAtIndex__SWIG_1(void * jarg1, void * jarg2, int jarg3, unsigned int jarg4) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- uint32_t arg2 ;
- lldb::DynamicValueType arg3 ;
- bool arg4 ;
- uint32_t *argp2 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- arg3 = (lldb::DynamicValueType)jarg3;
- arg4 = jarg4 ? true : false;
- result = (arg1)->GetChildAtIndex(arg2,arg3,arg4);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_CreateChildAtOffset(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t arg3 ;
- lldb::SBType arg4 ;
- uint32_t *argp3 ;
- lldb::SBType *argp4 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- argp4 = (lldb::SBType *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBType", 0);
- return 0;
- }
- arg4 = *argp4;
- result = (arg1)->CreateChildAtOffset((char const *)arg2,arg3,arg4);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_Cast(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBType arg2 ;
- lldb::SBType *argp2 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- argp2 = (lldb::SBType *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBType", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->Cast(arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_CreateValueFromExpression(void * jarg1, char * jarg2, char * jarg3) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (char *)jarg3;
- result = (arg1)->CreateValueFromExpression((char const *)arg2,(char const *)arg3);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_CreateValueFromAddress(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::addr_t arg3 ;
- lldb::SBType arg4 ;
- lldb::addr_t *argp3 ;
- lldb::SBType *argp4 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (lldb::addr_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::addr_t", 0);
- return 0;
- }
- arg3 = *argp3;
- argp4 = (lldb::SBType *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBType", 0);
- return 0;
- }
- arg4 = *argp4;
- result = (arg1)->CreateValueFromAddress((char const *)arg2,arg3,arg4);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_CreateValueFromData(void * jarg1, char * jarg2, void * jarg3, void * jarg4) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBData arg3 ;
- lldb::SBType arg4 ;
- lldb::SBData *argp3 ;
- lldb::SBType *argp4 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- argp3 = (lldb::SBData *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBData", 0);
- return 0;
- }
- arg3 = *argp3;
- argp4 = (lldb::SBType *)jarg4;
- if (!argp4) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::SBType", 0);
- return 0;
- }
- arg4 = *argp4;
- result = (arg1)->CreateValueFromData((char const *)arg2,arg3,arg4);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetType(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBType result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetType();
- jresult = new lldb::SBType((const lldb::SBType &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetIndexOfChildWithName(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->GetIndexOfChildWithName((char const *)arg2);
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetChildMemberWithName__SWIG_0(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->GetChildMemberWithName((char const *)arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetChildMemberWithName__SWIG_1(void * jarg1, char * jarg2, int jarg3) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::DynamicValueType arg3 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- arg3 = (lldb::DynamicValueType)jarg3;
- result = (arg1)->GetChildMemberWithName((char const *)arg2,arg3);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetValueForExpressionPath(void * jarg1, char * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- char *arg2 = (char *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (char *)jarg2;
- result = (arg1)->GetValueForExpressionPath((char const *)arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetNumChildren(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetNumChildren();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void* SWIGSTDCALL CSharp_SBValue_GetOpaqueType(void * jarg1) {
- void* jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- void *result = 0 ;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (void *)(arg1)->GetOpaqueType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_Dereference(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->Dereference();
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_AddressOf(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->AddressOf();
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_TypeIsPointerType(void * jarg1) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (bool)(arg1)->TypeIsPointerType();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetTarget(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBTarget result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetTarget();
- jresult = new lldb::SBTarget((const lldb::SBTarget &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetProcess(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBProcess result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetProcess();
- jresult = new lldb::SBProcess((const lldb::SBProcess &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetThread(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBThread result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetThread();
- jresult = new lldb::SBThread((const lldb::SBThread &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetFrame(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBFrame result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetFrame();
- jresult = new lldb::SBFrame((const lldb::SBFrame &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_Watch(void * jarg1, unsigned int jarg2, unsigned int jarg3, unsigned int jarg4, void * jarg5) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- bool arg2 ;
- bool arg3 ;
- bool arg4 ;
- lldb::SBError *arg5 = 0 ;
- lldb::SBWatchpoint result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = jarg2 ? true : false;
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- arg5 = (lldb::SBError *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->Watch(arg2,arg3,arg4,*arg5);
- jresult = new lldb::SBWatchpoint((const lldb::SBWatchpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_WatchPointee(void * jarg1, unsigned int jarg2, unsigned int jarg3, unsigned int jarg4, void * jarg5) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- bool arg2 ;
- bool arg3 ;
- bool arg4 ;
- lldb::SBError *arg5 = 0 ;
- lldb::SBWatchpoint result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = jarg2 ? true : false;
- arg3 = jarg3 ? true : false;
- arg4 = jarg4 ? true : false;
- arg5 = (lldb::SBError *)jarg5;
- if (!arg5) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBError & type is null", 0);
- return 0;
- }
- result = (arg1)->WatchPointee(arg2,arg3,arg4,*arg5);
- jresult = new lldb::SBWatchpoint((const lldb::SBWatchpoint &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_GetDescription(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetDescription(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_GetExpressionPath__SWIG_0(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- result = (bool)(arg1)->GetExpressionPath(*arg2);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetPointeeData__SWIG_0(void * jarg1, void * jarg2, void * jarg3) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- uint32_t arg2 ;
- uint32_t arg3 ;
- uint32_t *argp2 ;
- uint32_t *argp3 ;
- lldb::SBData result;
-
- arg1 = (lldb::SBValue *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (uint32_t *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg3 = *argp3;
- result = (arg1)->GetPointeeData(arg2,arg3);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetPointeeData__SWIG_1(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBData result;
-
- arg1 = (lldb::SBValue *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->GetPointeeData(arg2);
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetPointeeData__SWIG_2(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBData result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetPointeeData();
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetData(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBData result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetData();
- jresult = new lldb::SBData((const lldb::SBData &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetLoadAddress(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetLoadAddress();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValue_GetAddress(void * jarg1) {
- void * jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBAddress result;
-
- arg1 = (lldb::SBValue *)jarg1;
- result = (arg1)->GetAddress();
- jresult = new lldb::SBAddress((const lldb::SBAddress &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValue_GetExpressionPath__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3) {
- unsigned int jresult ;
- lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- bool arg3 ;
- bool result;
-
- arg1 = (lldb::SBValue *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = jarg3 ? true : false;
- result = (bool)(arg1)->GetExpressionPath(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBValueList__SWIG_0() {
- void * jresult ;
- lldb::SBValueList *result = 0 ;
-
- result = (lldb::SBValueList *)new lldb::SBValueList();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBValueList__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBValueList *arg1 = 0 ;
- lldb::SBValueList *result = 0 ;
-
- arg1 = (lldb::SBValueList *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBValueList const & type is null", 0);
- return 0;
- }
- result = (lldb::SBValueList *)new lldb::SBValueList((lldb::SBValueList const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBValueList(void * jarg1) {
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
-
- arg1 = (lldb::SBValueList *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBValueList_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
- bool result;
-
- arg1 = (lldb::SBValueList *)jarg1;
- result = (bool)((lldb::SBValueList const *)arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBValueList_Clear(void * jarg1) {
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
-
- arg1 = (lldb::SBValueList *)jarg1;
- (arg1)->Clear();
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBValueList_Append__SWIG_0(void * jarg1, void * jarg2) {
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
- lldb::SBValue *arg2 = 0 ;
-
- arg1 = (lldb::SBValueList *)jarg1;
- arg2 = (lldb::SBValue *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBValue const & type is null", 0);
- return ;
- }
- (arg1)->Append((lldb::SBValue const &)*arg2);
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBValueList_Append__SWIG_1(void * jarg1, void * jarg2) {
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
- lldb::SBValueList *arg2 = 0 ;
-
- arg1 = (lldb::SBValueList *)jarg1;
- arg2 = (lldb::SBValueList *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBValueList const & type is null", 0);
- return ;
- }
- (arg1)->Append((lldb::SBValueList const &)*arg2);
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValueList_GetSize(void * jarg1) {
- void * jresult ;
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBValueList *)jarg1;
- result = ((lldb::SBValueList const *)arg1)->GetSize();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValueList_GetValueAtIndex(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValueList *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = ((lldb::SBValueList const *)arg1)->GetValueAtIndex(arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBValueList_FindValueObjectByUID(void * jarg1, void * jarg2) {
- void * jresult ;
- lldb::SBValueList *arg1 = (lldb::SBValueList *) 0 ;
- lldb::user_id_t arg2 ;
- lldb::user_id_t *argp2 ;
- lldb::SBValue result;
-
- arg1 = (lldb::SBValueList *)jarg1;
- argp2 = (lldb::user_id_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null lldb::user_id_t", 0);
- return 0;
- }
- arg2 = *argp2;
- result = (arg1)->FindValueObjectByUID(arg2);
- jresult = new lldb::SBValue((const lldb::SBValue &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBWatchpoint__SWIG_0() {
- void * jresult ;
- lldb::SBWatchpoint *result = 0 ;
-
- result = (lldb::SBWatchpoint *)new lldb::SBWatchpoint();
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_SBWatchpoint__SWIG_1(void * jarg1) {
- void * jresult ;
- lldb::SBWatchpoint *arg1 = 0 ;
- lldb::SBWatchpoint *result = 0 ;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBWatchpoint const & type is null", 0);
- return 0;
- }
- result = (lldb::SBWatchpoint *)new lldb::SBWatchpoint((lldb::SBWatchpoint const &)*arg1);
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_SBWatchpoint(void * jarg1) {
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- delete arg1;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBWatchpoint_IsValid(void * jarg1) {
- unsigned int jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- bool result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (bool)(arg1)->IsValid();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBWatchpoint_GetError(void * jarg1) {
- void * jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- lldb::SBError result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (arg1)->GetError();
- jresult = new lldb::SBError((const lldb::SBError &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBWatchpoint_GetID(void * jarg1) {
- void * jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- lldb::watch_id_t result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (arg1)->GetID();
- jresult = new lldb::watch_id_t((const lldb::watch_id_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBWatchpoint_GetHardwareIndex(void * jarg1) {
- void * jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- int32_t result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (arg1)->GetHardwareIndex();
- jresult = new int32_t((const int32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBWatchpoint_GetWatchAddress(void * jarg1) {
- void * jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- lldb::addr_t result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (arg1)->GetWatchAddress();
- jresult = new lldb::addr_t((const lldb::addr_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_SBWatchpoint_GetWatchSize(void * jarg1) {
- unsigned long jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- size_t result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (arg1)->GetWatchSize();
- jresult = (unsigned long)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBWatchpoint_SetEnabled(void * jarg1, unsigned int jarg2) {
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- bool arg2 ;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- arg2 = jarg2 ? true : false;
- (arg1)->SetEnabled(arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBWatchpoint_IsEnabled(void * jarg1) {
- unsigned int jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- bool result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (bool)(arg1)->IsEnabled();
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBWatchpoint_GetHitCount(void * jarg1) {
- void * jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (arg1)->GetHitCount();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_SBWatchpoint_GetIgnoreCount(void * jarg1) {
- void * jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- uint32_t result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (arg1)->GetIgnoreCount();
- jresult = new uint32_t((const uint32_t &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBWatchpoint_SetIgnoreCount(void * jarg1, void * jarg2) {
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- uint32_t arg2 ;
- uint32_t *argp2 ;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- argp2 = (uint32_t *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null uint32_t", 0);
- return ;
- }
- arg2 = *argp2;
- (arg1)->SetIgnoreCount(arg2);
-}
-
-
-SWIGEXPORT char * SWIGSTDCALL CSharp_SBWatchpoint_GetCondition(void * jarg1) {
- char * jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- char *result = 0 ;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- result = (char *)(arg1)->GetCondition();
- jresult = SWIG_csharp_string_callback((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_SBWatchpoint_SetCondition(void * jarg1, char * jarg2) {
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- char *arg2 = (char *) 0 ;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- arg2 = (char *)jarg2;
- (arg1)->SetCondition((char const *)arg2);
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SBWatchpoint_GetDescription(void * jarg1, void * jarg2, int jarg3) {
- unsigned int jresult ;
- lldb::SBWatchpoint *arg1 = (lldb::SBWatchpoint *) 0 ;
- lldb::SBStream *arg2 = 0 ;
- lldb::DescriptionLevel arg3 ;
- bool result;
-
- arg1 = (lldb::SBWatchpoint *)jarg1;
- arg2 = (lldb::SBStream *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "lldb::SBStream & type is null", 0);
- return 0;
- }
- arg3 = (lldb::DescriptionLevel)jarg3;
- result = (bool)(arg1)->GetDescription(*arg2,arg3);
- jresult = result;
- return jresult;
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
Removed: lldb/branches/windows/source/Expression/ClangExpressionParser.cpp.orig
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Expression/ClangExpressionParser.cpp.orig?rev=167219&view=auto
==============================================================================
--- lldb/branches/windows/source/Expression/ClangExpressionParser.cpp.orig (original)
+++ lldb/branches/windows/source/Expression/ClangExpressionParser.cpp.orig (removed)
@@ -1,842 +0,0 @@
-//===-- ClangExpressionParser.cpp -------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "lldb/Expression/ClangExpressionParser.h"
-
-#include "lldb/Core/ArchSpec.h"
-#include "lldb/Core/DataBufferHeap.h"
-#include "lldb/Core/Debugger.h"
-#include "lldb/Core/Disassembler.h"
-#include "lldb/Core/Stream.h"
-#include "lldb/Core/StreamString.h"
-#include "lldb/Expression/ClangASTSource.h"
-#include "lldb/Expression/ClangExpression.h"
-#include "lldb/Expression/ClangExpressionDeclMap.h"
-#include "lldb/Expression/IRDynamicChecks.h"
-#include "lldb/Expression/RecordingMemoryManager.h"
-#include "lldb/Target/ExecutionContext.h"
-#include "lldb/Target/ObjCLanguageRuntime.h"
-#include "lldb/Target/Process.h"
-#include "lldb/Target/Target.h"
-
-#include "clang/AST/ASTContext.h"
-#include "clang/AST/ExternalASTSource.h"
-#include "clang/Basic/FileManager.h"
-#include "clang/Basic/TargetInfo.h"
-#include "clang/Basic/Version.h"
-#include "clang/CodeGen/CodeGenAction.h"
-#include "clang/CodeGen/ModuleBuilder.h"
-#include "clang/Driver/CC1Options.h"
-#include "clang/Driver/OptTable.h"
-#include "clang/Frontend/CompilerInstance.h"
-#include "clang/Frontend/CompilerInvocation.h"
-#include "clang/Frontend/FrontendActions.h"
-#include "clang/Frontend/FrontendDiagnostic.h"
-#include "clang/Frontend/FrontendPluginRegistry.h"
-#include "clang/Frontend/TextDiagnosticBuffer.h"
-#include "clang/Frontend/TextDiagnosticPrinter.h"
-#include "clang/Lex/Preprocessor.h"
-#include "clang/Parse/ParseAST.h"
-<<<<<<< .working
-#include "clang/Basic/Version.h"
-#if CLANG_VERSION_MAJOR > 3 || (CLANG_VERSION_MAJOR == 3 && CLANG_VERSION_MINOR >= 2)
-#include "clang/Rewrite/Frontend/FrontendActions.h"
-#else
-#include "clang/Rewrite/FrontendActions.h"
-=======
-#include "clang/Rewrite/Frontend/FrontendActions.h"
->>>>>>> .merge-right.r164814
-#endif
-#include "clang/Sema/SemaConsumer.h"
-#include "clang/StaticAnalyzer/Frontend/FrontendActions.h"
-
-#include "llvm/ADT/StringRef.h"
-#include "llvm/ExecutionEngine/ExecutionEngine.h"
-#include "llvm/Support/Debug.h"
-#include "llvm/Support/TargetSelect.h"
-
-#if !defined(__APPLE__)
-#define USE_STANDARD_JIT
-#endif
-
-#if defined (USE_STANDARD_JIT)
-#include "llvm/ExecutionEngine/JIT.h"
-#else
-#include "llvm/ExecutionEngine/MCJIT.h"
-#endif
-#include "llvm/LLVMContext.h"
-#include "llvm/Module.h"
-#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/DynamicLibrary.h"
-#include "llvm/Support/Host.h"
-#include "llvm/Support/Signals.h"
-
-using namespace clang;
-using namespace llvm;
-using namespace lldb_private;
-
-//===----------------------------------------------------------------------===//
-// Utility Methods for Clang
-//===----------------------------------------------------------------------===//
-
-std::string GetBuiltinIncludePath(const char *Argv0) {
- llvm::sys::Path P =
- llvm::sys::Path::GetMainExecutable(Argv0,
- (void*)(intptr_t) GetBuiltinIncludePath);
-
- if (!P.isEmpty()) {
- P.eraseComponent(); // Remove /clang from foo/bin/clang
- P.eraseComponent(); // Remove /bin from foo/bin
-
- // Get foo/lib/clang/<version>/include
- P.appendComponent("lib");
- P.appendComponent("clang");
- P.appendComponent(CLANG_VERSION_STRING);
- P.appendComponent("include");
- }
-
- return P.str();
-}
-
-
-//===----------------------------------------------------------------------===//
-// Main driver for Clang
-//===----------------------------------------------------------------------===//
-
-static void LLVMErrorHandler(void *UserData, const std::string &Message) {
- DiagnosticsEngine &Diags = *static_cast<DiagnosticsEngine*>(UserData);
-
- Diags.Report(diag::err_fe_error_backend) << Message;
-
- // We cannot recover from llvm errors.
- assert(0);
-}
-
-static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) {
- using namespace clang::frontend;
-
- switch (CI.getFrontendOpts().ProgramAction) {
- default:
- llvm_unreachable("Invalid program action!");
-
- case ASTDump: return new ASTDumpAction();
- case ASTPrint: return new ASTPrintAction();
- case ASTDumpXML: return new ASTDumpXMLAction();
- case ASTView: return new ASTViewAction();
- case DumpRawTokens: return new DumpRawTokensAction();
- case DumpTokens: return new DumpTokensAction();
- case EmitAssembly: return new EmitAssemblyAction();
- case EmitBC: return new EmitBCAction();
- case EmitHTML: return new HTMLPrintAction();
- case EmitLLVM: return new EmitLLVMAction();
- case EmitLLVMOnly: return new EmitLLVMOnlyAction();
- case EmitCodeGenOnly: return new EmitCodeGenOnlyAction();
- case EmitObj: return new EmitObjAction();
- case FixIt: return new FixItAction();
- case GeneratePCH: return new GeneratePCHAction();
- case GeneratePTH: return new GeneratePTHAction();
- case InitOnly: return new InitOnlyAction();
- case ParseSyntaxOnly: return new SyntaxOnlyAction();
-
- case PluginAction: {
- for (FrontendPluginRegistry::iterator it =
- FrontendPluginRegistry::begin(), ie = FrontendPluginRegistry::end();
- it != ie; ++it) {
- if (it->getName() == CI.getFrontendOpts().ActionName) {
- llvm::OwningPtr<PluginASTAction> P(it->instantiate());
- if (!P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs))
- return 0;
- return P.take();
- }
- }
-
- CI.getDiagnostics().Report(diag::err_fe_invalid_plugin_name)
- << CI.getFrontendOpts().ActionName;
- return 0;
- }
-
- case PrintDeclContext: return new DeclContextPrintAction();
- case PrintPreamble: return new PrintPreambleAction();
- case PrintPreprocessedInput: return new PrintPreprocessedAction();
- case RewriteMacros: return new RewriteMacrosAction();
- case RewriteObjC: return new RewriteObjCAction();
- case RewriteTest: return new RewriteTestAction();
- //case RunAnalysis: return new AnalysisAction();
- case RunPreprocessorOnly: return new PreprocessOnlyAction();
- }
-}
-
-static FrontendAction *CreateFrontendAction(CompilerInstance &CI) {
- // Create the underlying action.
- FrontendAction *Act = CreateFrontendBaseAction(CI);
- if (!Act)
- return 0;
-
- // If there are any AST files to merge, create a frontend action
- // adaptor to perform the merge.
- if (!CI.getFrontendOpts().ASTMergeFiles.empty())
- Act = new ASTMergeAction(Act, CI.getFrontendOpts().ASTMergeFiles);
-
- return Act;
-}
-
-//===----------------------------------------------------------------------===//
-// Implementation of ClangExpressionParser
-//===----------------------------------------------------------------------===//
-
-ClangExpressionParser::ClangExpressionParser (ExecutionContextScope *exe_scope,
- ClangExpression &expr) :
- m_expr (expr),
- m_compiler (),
- m_code_generator (NULL),
- m_jitted_functions ()
-{
- // Initialize targets first, so that --version shows registered targets.
- static struct InitializeLLVM {
- InitializeLLVM() {
- llvm::InitializeAllTargets();
- llvm::InitializeAllAsmPrinters();
- llvm::InitializeAllTargetMCs();
- llvm::InitializeAllDisassemblers();
-
- llvm::DisablePrettyStackTrace = true;
- }
- } InitializeLLVM;
-
- // 1. Create a new compiler instance.
- m_compiler.reset(new CompilerInstance());
-
- // 2. Install the target.
-
- lldb::TargetSP target_sp;
- if (exe_scope)
- target_sp = exe_scope->CalculateTarget();
-
- // TODO: figure out what to really do when we don't have a valid target.
- // Sometimes this will be ok to just use the host target triple (when we
- // evaluate say "2+3", but other expressions like breakpoint conditions
- // and other things that _are_ target specific really shouldn't just be
- // using the host triple. This needs to be fixed in a better way.
- if (target_sp && target_sp->GetArchitecture().IsValid())
- {
- std::string triple = target_sp->GetArchitecture().GetTriple().str();
-
- int dash_count = 0;
- for (size_t i = 0; i < triple.size(); ++i)
- {
- if (triple[i] == '-')
- dash_count++;
- if (dash_count == 3)
- {
- triple.resize(i);
- break;
- }
- }
-
- m_compiler->getTargetOpts().Triple = triple;
- }
- else
- {
- m_compiler->getTargetOpts().Triple = llvm::sys::getDefaultTargetTriple();
- }
-
- if (m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
- m_compiler->getTargetOpts().ABI = "apcs-gnu";
-
- m_compiler->createDiagnostics(0, 0);
-
- // Create the target instance.
- m_compiler->setTarget(TargetInfo::CreateTargetInfo(m_compiler->getDiagnostics(),
- m_compiler->getTargetOpts()));
-
- assert (m_compiler->hasTarget());
-
- // 3. Set options.
-
- lldb::LanguageType language = expr.Language();
-
- switch (language)
- {
- case lldb::eLanguageTypeC:
- break;
- case lldb::eLanguageTypeObjC:
- m_compiler->getLangOpts().ObjC1 = true;
- m_compiler->getLangOpts().ObjC2 = true;
- break;
- case lldb::eLanguageTypeC_plus_plus:
- m_compiler->getLangOpts().CPlusPlus = true;
- m_compiler->getLangOpts().CPlusPlus0x = true;
- break;
- case lldb::eLanguageTypeObjC_plus_plus:
- default:
- m_compiler->getLangOpts().ObjC1 = true;
- m_compiler->getLangOpts().ObjC2 = true;
- m_compiler->getLangOpts().CPlusPlus = true;
- m_compiler->getLangOpts().CPlusPlus0x = true;
- break;
- }
-
- m_compiler->getLangOpts().DebuggerSupport = true; // Features specifically for debugger clients
- if (expr.DesiredResultType() == ClangExpression::eResultTypeId)
- m_compiler->getLangOpts().DebuggerCastResultToId = true;
-
- // Spell checking is a nice feature, but it ends up completing a
- // lot of types that we didn't strictly speaking need to complete.
- // As a result, we spend a long time parsing and importing debug
- // information.
- m_compiler->getLangOpts().SpellChecking = false;
-
- lldb::ProcessSP process_sp;
- if (exe_scope)
- process_sp = exe_scope->CalculateProcess();
-
- if (process_sp && m_compiler->getLangOpts().ObjC1)
- {
- if (process_sp->GetObjCLanguageRuntime())
- {
- if (process_sp->GetObjCLanguageRuntime()->GetRuntimeVersion() == eAppleObjC_V2)
-<<<<<<< .working
- {
-#if CLANG_MAJOR_VERSION == 3 && CLANG_MINOR_VERSION < 2
- m_compiler->getLangOpts().ObjCNonFragileABI = true; // NOT i386
- m_compiler->getLangOpts().ObjCNonFragileABI2 = true; // NOT i386
-#endif
- }
-=======
- m_compiler->getLangOpts().ObjCRuntime.set(ObjCRuntime::MacOSX, VersionTuple(10, 7));
- else
- m_compiler->getLangOpts().ObjCRuntime.set(ObjCRuntime::FragileMacOSX, VersionTuple(10, 7));
->>>>>>> .merge-right.r164814
-
- if (process_sp->GetObjCLanguageRuntime()->HasNewLiteralsAndIndexing())
- m_compiler->getLangOpts().DebuggerObjCLiteral = true;
- }
- }
-
- m_compiler->getLangOpts().ThreadsafeStatics = false;
- m_compiler->getLangOpts().AccessControl = false; // Debuggers get universal access
- m_compiler->getLangOpts().DollarIdents = true; // $ indicates a persistent variable name
-
- // Set CodeGen options
- m_compiler->getCodeGenOpts().EmitDeclMetadata = true;
- m_compiler->getCodeGenOpts().InstrumentFunctions = false;
-
- // Disable some warnings.
- m_compiler->getDiagnosticOpts().Warnings.push_back("no-unused-value");
-
- // Inform the target of the language options
- //
- // FIXME: We shouldn't need to do this, the target should be immutable once
- // created. This complexity should be lifted elsewhere.
- m_compiler->getTarget().setForcedLangOptions(m_compiler->getLangOpts());
-
- // 4. Set up the diagnostic buffer for reporting errors
-
- m_compiler->getDiagnostics().setClient(new clang::TextDiagnosticBuffer);
-
- // 5. Set up the source management objects inside the compiler
-
- clang::FileSystemOptions file_system_options;
- m_file_manager.reset(new clang::FileManager(file_system_options));
-
- if (!m_compiler->hasSourceManager())
- m_compiler->createSourceManager(*m_file_manager.get());
-
- m_compiler->createFileManager();
- m_compiler->createPreprocessor();
-
- // 6. Most of this we get from the CompilerInstance, but we
- // also want to give the context an ExternalASTSource.
- m_selector_table.reset(new SelectorTable());
- m_builtin_context.reset(new Builtin::Context());
-
- std::auto_ptr<clang::ASTContext> ast_context(new ASTContext(m_compiler->getLangOpts(),
- m_compiler->getSourceManager(),
- &m_compiler->getTarget(),
- m_compiler->getPreprocessor().getIdentifierTable(),
- *m_selector_table.get(),
- *m_builtin_context.get(),
- 0));
-
- ClangExpressionDeclMap *decl_map = m_expr.DeclMap();
-
- if (decl_map)
- {
- llvm::OwningPtr<clang::ExternalASTSource> ast_source(decl_map->CreateProxy());
- decl_map->InstallASTContext(ast_context.get());
- ast_context->setExternalSource(ast_source);
- }
-
- m_compiler->setASTContext(ast_context.release());
-
- std::string module_name("$__lldb_module");
-
- m_llvm_context.reset(new LLVMContext());
- m_code_generator.reset(CreateLLVMCodeGen(m_compiler->getDiagnostics(),
- module_name,
- m_compiler->getCodeGenOpts(),
- *m_llvm_context));
-}
-
-ClangExpressionParser::~ClangExpressionParser()
-{
-}
-
-unsigned
-ClangExpressionParser::Parse (Stream &stream)
-{
- TextDiagnosticBuffer *diag_buf = static_cast<TextDiagnosticBuffer*>(m_compiler->getDiagnostics().getClient());
-
- diag_buf->FlushDiagnostics (m_compiler->getDiagnostics());
-
- MemoryBuffer *memory_buffer = MemoryBuffer::getMemBufferCopy(m_expr.Text(), __FUNCTION__);
- m_compiler->getSourceManager().createMainFileIDForMemBuffer (memory_buffer);
-
- diag_buf->BeginSourceFile(m_compiler->getLangOpts(), &m_compiler->getPreprocessor());
-
- ASTConsumer *ast_transformer = m_expr.ASTTransformer(m_code_generator.get());
-
- if (ast_transformer)
- ParseAST(m_compiler->getPreprocessor(), ast_transformer, m_compiler->getASTContext());
- else
- ParseAST(m_compiler->getPreprocessor(), m_code_generator.get(), m_compiler->getASTContext());
-
- diag_buf->EndSourceFile();
-
- TextDiagnosticBuffer::const_iterator diag_iterator;
-
- int num_errors = 0;
-
- for (diag_iterator = diag_buf->warn_begin();
- diag_iterator != diag_buf->warn_end();
- ++diag_iterator)
- stream.Printf("warning: %s\n", (*diag_iterator).second.c_str());
-
- num_errors = 0;
-
- for (diag_iterator = diag_buf->err_begin();
- diag_iterator != diag_buf->err_end();
- ++diag_iterator)
- {
- num_errors++;
- stream.Printf("error: %s\n", (*diag_iterator).second.c_str());
- }
-
- for (diag_iterator = diag_buf->note_begin();
- diag_iterator != diag_buf->note_end();
- ++diag_iterator)
- stream.Printf("note: %s\n", (*diag_iterator).second.c_str());
-
- if (!num_errors)
- {
- if (m_expr.DeclMap() && !m_expr.DeclMap()->ResolveUnknownTypes())
- {
- stream.Printf("error: Couldn't infer the type of a variable\n");
- num_errors++;
- }
- }
-
- return num_errors;
-}
-
-static bool FindFunctionInModule (std::string &mangled_name,
- llvm::Module *module,
- const char *orig_name)
-{
- for (llvm::Module::iterator fi = module->getFunctionList().begin(), fe = module->getFunctionList().end();
- fi != fe;
- ++fi)
- {
- if (fi->getName().str().find(orig_name) != std::string::npos)
- {
- mangled_name = fi->getName().str();
- return true;
- }
- }
-
- return false;
-}
-
-Error
-ClangExpressionParser::PrepareForExecution (lldb::addr_t &func_allocation_addr,
- lldb::addr_t &func_addr,
- lldb::addr_t &func_end,
- ExecutionContext &exe_ctx,
- IRForTarget::StaticDataAllocator *data_allocator,
- bool &evaluated_statically,
- lldb::ClangExpressionVariableSP &const_result,
- ExecutionPolicy execution_policy)
-{
- func_allocation_addr = LLDB_INVALID_ADDRESS;
- func_addr = LLDB_INVALID_ADDRESS;
- func_end = LLDB_INVALID_ADDRESS;
- lldb::LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
-
- std::auto_ptr<llvm::ExecutionEngine> execution_engine;
-
- Error err;
-
- llvm::Module *module = m_code_generator->ReleaseModule();
-
- if (!module)
- {
- err.SetErrorToGenericError();
- err.SetErrorString("IR doesn't contain a module");
- return err;
- }
-
- // Find the actual name of the function (it's often mangled somehow)
-
- std::string function_name;
-
- if (!FindFunctionInModule(function_name, module, m_expr.FunctionName()))
- {
- err.SetErrorToGenericError();
- err.SetErrorStringWithFormat("Couldn't find %s() in the module", m_expr.FunctionName());
- return err;
- }
- else
- {
- if (log)
- log->Printf("Found function %s for %s", function_name.c_str(), m_expr.FunctionName());
- }
-
- ClangExpressionDeclMap *decl_map = m_expr.DeclMap(); // result can be NULL
-
- if (decl_map)
- {
- Stream *error_stream = NULL;
- Target *target = exe_ctx.GetTargetPtr();
- if (target)
- error_stream = &target->GetDebugger().GetErrorStream();
-
- IRForTarget ir_for_target(decl_map,
- m_expr.NeedsVariableResolution(),
- execution_policy,
- const_result,
- data_allocator,
- error_stream,
- function_name.c_str());
-
- bool ir_can_run = ir_for_target.runOnModule(*module);
-
- Error &interpreter_error(ir_for_target.getInterpreterError());
-
- if (execution_policy != eExecutionPolicyAlways && interpreter_error.Success())
- {
- if (const_result)
- const_result->TransferAddress();
- evaluated_statically = true;
- err.Clear();
- return err;
- }
-
- Process *process = exe_ctx.GetProcessPtr();
-
- if (!process || execution_policy == eExecutionPolicyNever)
- {
- err.SetErrorToGenericError();
- if (execution_policy == eExecutionPolicyAlways)
- err.SetErrorString("Execution needed to run in the target, but the target can't be run");
- else
- err.SetErrorStringWithFormat("Interpreting the expression locally failed: %s", interpreter_error.AsCString());
-
- return err;
- }
- else if (!ir_can_run)
- {
- err.SetErrorToGenericError();
- err.SetErrorString("The expression could not be prepared to run in the target");
-
- return err;
- }
-
- if (execution_policy != eExecutionPolicyNever &&
- m_expr.NeedsValidation() &&
- process)
- {
- if (!process->GetDynamicCheckers())
- {
- DynamicCheckerFunctions *dynamic_checkers = new DynamicCheckerFunctions();
-
- StreamString install_errors;
-
- if (!dynamic_checkers->Install(install_errors, exe_ctx))
- {
- if (install_errors.GetString().empty())
- err.SetErrorString ("couldn't install checkers, unknown error");
- else
- err.SetErrorString (install_errors.GetString().c_str());
-
- return err;
- }
-
- process->SetDynamicCheckers(dynamic_checkers);
-
- if (log)
- log->Printf("== [ClangUserExpression::Evaluate] Finished installing dynamic checkers ==");
- }
-
- IRDynamicChecks ir_dynamic_checks(*process->GetDynamicCheckers(), function_name.c_str());
-
- if (!ir_dynamic_checks.runOnModule(*module))
- {
- err.SetErrorToGenericError();
- err.SetErrorString("Couldn't add dynamic checks to the expression");
- return err;
- }
- }
- }
-
- // llvm will own this pointer when llvm::ExecutionEngine::createJIT is called
- // below so we don't need to free it.
- RecordingMemoryManager *jit_memory_manager = new RecordingMemoryManager();
-
- std::string error_string;
-
- if (log)
- {
- std::string s;
- raw_string_ostream oss(s);
-
- module->print(oss, NULL);
-
- oss.flush();
-
- log->Printf ("Module being sent to JIT: \n%s", s.c_str());
- }
-
- EngineBuilder builder(module);
- builder.setEngineKind(EngineKind::JIT)
- .setErrorStr(&error_string)
- .setRelocationModel(llvm::Reloc::PIC_)
- .setJITMemoryManager(jit_memory_manager)
- .setOptLevel(CodeGenOpt::Less)
- .setAllocateGVsWithCode(true)
- .setCodeModel(CodeModel::Small)
- .setUseMCJIT(true);
-
- llvm::Triple triple(module->getTargetTriple());
- StringRef mArch;
- StringRef mCPU;
- SmallVector<std::string, 0> mAttrs;
-
- TargetMachine *target_machine = builder.selectTarget(triple,
- mArch,
- mCPU,
- mAttrs);
-
- execution_engine.reset(builder.create(target_machine));
-
- if (!execution_engine.get())
- {
- err.SetErrorToGenericError();
- err.SetErrorStringWithFormat("Couldn't JIT the function: %s", error_string.c_str());
- return err;
- }
-
- execution_engine->DisableLazyCompilation();
-
- llvm::Function *function = module->getFunction (function_name.c_str());
-
- // We don't actually need the function pointer here, this just forces it to get resolved.
-
- void *fun_ptr = execution_engine->getPointerToFunction(function);
-
- // Errors usually cause failures in the JIT, but if we're lucky we get here.
-
- if (!function)
- {
- err.SetErrorToGenericError();
- err.SetErrorStringWithFormat("Couldn't find '%s' in the JITted module", function_name.c_str());
- return err;
- }
-
- if (!fun_ptr)
- {
- err.SetErrorToGenericError();
- err.SetErrorStringWithFormat("'%s' was in the JITted module but wasn't lowered", function_name.c_str());
- return err;
- }
-
- m_jitted_functions.push_back (ClangExpressionParser::JittedFunction(function_name.c_str(), (lldb::addr_t)fun_ptr));
-
-
- Process *process = exe_ctx.GetProcessPtr();
- if (process == NULL)
- {
- err.SetErrorToGenericError();
- err.SetErrorString("Couldn't write the JIT compiled code into the target because there is no target");
- return err;
- }
-
- jit_memory_manager->CommitAllocations(*process);
- jit_memory_manager->ReportAllocations(*execution_engine);
- jit_memory_manager->WriteData(*process);
-
- std::vector<JittedFunction>::iterator pos, end = m_jitted_functions.end();
-
- for (pos = m_jitted_functions.begin(); pos != end; pos++)
- {
- (*pos).m_remote_addr = jit_memory_manager->GetRemoteAddressForLocal ((*pos).m_local_addr);
-
- if (!(*pos).m_name.compare(function_name.c_str()))
- {
- RecordingMemoryManager::AddrRange func_range = jit_memory_manager->GetRemoteRangeForLocal((*pos).m_local_addr);
- func_end = func_range.first + func_range.second;
- func_addr = (*pos).m_remote_addr;
- }
- }
-
- if (log)
- {
- log->Printf("Code can be run in the target.");
-
- StreamString disassembly_stream;
-
- Error err = DisassembleFunction(disassembly_stream, exe_ctx, jit_memory_manager);
-
- if (!err.Success())
- {
- log->Printf("Couldn't disassemble function : %s", err.AsCString("unknown error"));
- }
- else
- {
- log->Printf("Function disassembly:\n%s", disassembly_stream.GetData());
- }
- }
-
- execution_engine.reset();
-
- err.Clear();
- return err;
-}
-
-Error
-ClangExpressionParser::DisassembleFunction (Stream &stream, ExecutionContext &exe_ctx, RecordingMemoryManager *jit_memory_manager)
-{
- lldb::LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
-
- const char *name = m_expr.FunctionName();
-
- Error ret;
-
- ret.Clear();
-
- lldb::addr_t func_local_addr = LLDB_INVALID_ADDRESS;
- lldb::addr_t func_remote_addr = LLDB_INVALID_ADDRESS;
-
- std::vector<JittedFunction>::iterator pos, end = m_jitted_functions.end();
-
- for (pos = m_jitted_functions.begin(); pos < end; pos++)
- {
- if (strstr(pos->m_name.c_str(), name))
- {
- func_local_addr = pos->m_local_addr;
- func_remote_addr = pos->m_remote_addr;
- }
- }
-
- if (func_local_addr == LLDB_INVALID_ADDRESS)
- {
- ret.SetErrorToGenericError();
- ret.SetErrorStringWithFormat("Couldn't find function %s for disassembly", name);
- return ret;
- }
-
- if (log)
- log->Printf("Found function, has local address 0x%llx and remote address 0x%llx", (uint64_t)func_local_addr, (uint64_t)func_remote_addr);
-
- std::pair <lldb::addr_t, lldb::addr_t> func_range;
-
- func_range = jit_memory_manager->GetRemoteRangeForLocal(func_local_addr);
-
- if (func_range.first == 0 && func_range.second == 0)
- {
- ret.SetErrorToGenericError();
- ret.SetErrorStringWithFormat("Couldn't find code range for function %s", name);
- return ret;
- }
-
- if (log)
- log->Printf("Function's code range is [0x%llx+0x%llx]", func_range.first, func_range.second);
-
- Target *target = exe_ctx.GetTargetPtr();
- if (!target)
- {
- ret.SetErrorToGenericError();
- ret.SetErrorString("Couldn't find the target");
- }
-
- lldb::DataBufferSP buffer_sp(new DataBufferHeap(func_range.second, 0));
-
- Process *process = exe_ctx.GetProcessPtr();
- Error err;
- process->ReadMemory(func_remote_addr, buffer_sp->GetBytes(), buffer_sp->GetByteSize(), err);
-
- if (!err.Success())
- {
- ret.SetErrorToGenericError();
- ret.SetErrorStringWithFormat("Couldn't read from process: %s", err.AsCString("unknown error"));
- return ret;
- }
-
- ArchSpec arch(target->GetArchitecture());
-
- lldb::DisassemblerSP disassembler = Disassembler::FindPlugin(arch, NULL);
-
- if (!disassembler)
- {
- ret.SetErrorToGenericError();
- ret.SetErrorStringWithFormat("Unable to find disassembler plug-in for %s architecture.", arch.GetArchitectureName());
- return ret;
- }
-
- if (!process)
- {
- ret.SetErrorToGenericError();
- ret.SetErrorString("Couldn't find the process");
- return ret;
- }
-
- DataExtractor extractor(buffer_sp,
- process->GetByteOrder(),
- target->GetArchitecture().GetAddressByteSize());
-
- if (log)
- {
- log->Printf("Function data has contents:");
- extractor.PutToLog (log.get(),
- 0,
- extractor.GetByteSize(),
- func_remote_addr,
- 16,
- DataExtractor::TypeUInt8);
- }
-
- disassembler->DecodeInstructions (Address (func_remote_addr), extractor, 0, UINT32_MAX, false);
-
- InstructionList &instruction_list = disassembler->GetInstructionList();
- const uint32_t max_opcode_byte_size = instruction_list.GetMaxOpcocdeByteSize();
- for (uint32_t instruction_index = 0, num_instructions = instruction_list.GetSize();
- instruction_index < num_instructions;
- ++instruction_index)
- {
- Instruction *instruction = instruction_list.GetInstructionAtIndex(instruction_index).get();
- instruction->Dump (&stream,
- max_opcode_byte_size,
- true,
- true,
- &exe_ctx);
- stream.PutChar('\n');
- }
-
- return ret;
-}
Removed: lldb/branches/windows/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp.orig
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp.orig?rev=167219&view=auto
==============================================================================
--- lldb/branches/windows/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp.orig (original)
+++ lldb/branches/windows/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp.orig (removed)
@@ -1,2211 +0,0 @@
-//===-- DWARFDebugInfoEntry.cpp ---------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "DWARFDebugInfoEntry.h"
-
-#include <assert.h>
-
-#include <algorithm>
-
-#include "lldb/Core/Module.h"
-#include "lldb/Core/Stream.h"
-#include "lldb/Expression/DWARFExpression.h"
-#include "lldb/Symbol/ObjectFile.h"
-
-#include "DWARFCompileUnit.h"
-#include "SymbolFileDWARF.h"
-#include "DWARFDebugAbbrev.h"
-#include "DWARFDebugAranges.h"
-#include "DWARFDebugInfo.h"
-#include "DWARFDeclContext.h"
-#include "DWARFDIECollection.h"
-#include "DWARFFormValue.h"
-#include "DWARFLocationDescription.h"
-#include "DWARFLocationList.h"
-#include "DWARFDebugRanges.h"
-
-using namespace lldb_private;
-using namespace std;
-extern int g_verbose;
-
-
-
-DWARFDebugInfoEntry::Attributes::Attributes() :
- m_infos()
-{
-}
-
-DWARFDebugInfoEntry::Attributes::~Attributes()
-{
-}
-
-
-uint32_t
-DWARFDebugInfoEntry::Attributes::FindAttributeIndex(dw_attr_t attr) const
-{
- collection::const_iterator end = m_infos.end();
- collection::const_iterator beg = m_infos.begin();
- collection::const_iterator pos;
- for (pos = beg; pos != end; ++pos)
- {
- if (pos->attr == attr)
- return std::distance(beg, pos);
- }
- return UINT32_MAX;
-}
-
-void
-DWARFDebugInfoEntry::Attributes::Append(const DWARFCompileUnit *cu, dw_offset_t attr_die_offset, dw_attr_t attr, dw_form_t form)
-{
- Info info = { cu, attr_die_offset, attr, form };
- m_infos.push_back(info);
-}
-
-bool
-DWARFDebugInfoEntry::Attributes::ContainsAttribute(dw_attr_t attr) const
-{
- return FindAttributeIndex(attr) != UINT32_MAX;
-}
-
-bool
-DWARFDebugInfoEntry::Attributes::RemoveAttribute(dw_attr_t attr)
-{
- uint32_t attr_index = FindAttributeIndex(attr);
- if (attr_index != UINT32_MAX)
- {
- m_infos.erase(m_infos.begin() + attr_index);
- return true;
- }
- return false;
-}
-
-bool
-DWARFDebugInfoEntry::Attributes::ExtractFormValueAtIndex (SymbolFileDWARF* dwarf2Data, uint32_t i, DWARFFormValue &form_value) const
-{
- form_value.SetForm(FormAtIndex(i));
- dw_offset_t offset = DIEOffsetAtIndex(i);
- return form_value.ExtractValue(dwarf2Data->get_debug_info_data(), &offset, CompileUnitAtIndex(i));
-}
-
-uint64_t
-DWARFDebugInfoEntry::Attributes::FormValueAsUnsigned (SymbolFileDWARF* dwarf2Data, dw_attr_t attr, uint64_t fail_value) const
-{
- const uint32_t attr_idx = FindAttributeIndex (attr);
- if (attr_idx != UINT32_MAX)
- return FormValueAsUnsignedAtIndex (dwarf2Data, attr_idx, fail_value);
- return fail_value;
-}
-
-uint64_t
-DWARFDebugInfoEntry::Attributes::FormValueAsUnsignedAtIndex(SymbolFileDWARF* dwarf2Data, uint32_t i, uint64_t fail_value) const
-{
- DWARFFormValue form_value;
- if (ExtractFormValueAtIndex(dwarf2Data, i, form_value))
- return form_value.Reference(CompileUnitAtIndex(i));
- return fail_value;
-}
-
-
-
-bool
-DWARFDebugInfoEntry::FastExtract
-(
- const DataExtractor& debug_info_data,
- const DWARFCompileUnit* cu,
- const uint8_t *fixed_form_sizes,
- uint32_t* offset_ptr
-)
-{
- m_offset = *offset_ptr;
- m_parent_idx = 0;
- m_sibling_idx = 0;
- m_empty_children = false;
- const uint64_t abbr_idx = debug_info_data.GetULEB128 (offset_ptr);
- assert (abbr_idx < (1 << DIE_ABBR_IDX_BITSIZE));
- m_abbr_idx = abbr_idx;
-
- //assert (fixed_form_sizes); // For best performance this should be specified!
-
- if (m_abbr_idx)
- {
- uint32_t offset = *offset_ptr;
-
- const DWARFAbbreviationDeclaration *abbrevDecl = cu->GetAbbreviations()->GetAbbreviationDeclaration(m_abbr_idx);
-
- if (abbrevDecl == NULL)
- {
- cu->GetSymbolFileDWARF()->GetObjectFile()->GetModule()->ReportError ("{0x%8.8x}: invalid abbreviation code %u, please file a bug and attach the file at the start of this error message",
- m_offset,
- (unsigned)abbr_idx);
- // WE can't parse anymore if the DWARF is borked...
- *offset_ptr = UINT32_MAX;
- return false;
- }
- m_tag = abbrevDecl->Tag();
- m_has_children = abbrevDecl->HasChildren();
- // Skip all data in the .debug_info for the attributes
- const uint32_t numAttributes = abbrevDecl->NumAttributes();
- register uint32_t i;
- register dw_form_t form;
- for (i=0; i<numAttributes; ++i)
- {
- form = abbrevDecl->GetFormByIndexUnchecked(i);
-
- const uint8_t fixed_skip_size = fixed_form_sizes [form];
- if (fixed_skip_size)
- offset += fixed_skip_size;
- else
- {
- bool form_is_indirect = false;
- do
- {
- form_is_indirect = false;
- register uint32_t form_size = 0;
- switch (form)
- {
- // Blocks if inlined data that have a length field and the data bytes
- // inlined in the .debug_info
- case DW_FORM_exprloc :
- case DW_FORM_block : form_size = debug_info_data.GetULEB128 (&offset); break;
- case DW_FORM_block1 : form_size = debug_info_data.GetU8_unchecked (&offset); break;
- case DW_FORM_block2 : form_size = debug_info_data.GetU16_unchecked (&offset);break;
- case DW_FORM_block4 : form_size = debug_info_data.GetU32_unchecked (&offset);break;
-
- // Inlined NULL terminated C-strings
- case DW_FORM_string :
- debug_info_data.GetCStr (&offset);
- break;
-
- // Compile unit address sized values
- case DW_FORM_addr :
- case DW_FORM_ref_addr :
- form_size = cu->GetAddressByteSize();
- break;
-
- // zero sized field
- case DW_FORM_flag_present:
- form_size = 0;
- break;
-
- // 0 sized form
- case DW_FORM_flag_present:
- form_size = 0;
- break;
-
- // 1 byte values
- case DW_FORM_data1 :
- case DW_FORM_flag :
- case DW_FORM_ref1 :
- form_size = 1;
- break;
-
- // 2 byte values
- case DW_FORM_data2 :
- case DW_FORM_ref2 :
- form_size = 2;
- break;
-
- // 4 byte values
- case DW_FORM_strp :
- case DW_FORM_data4 :
- case DW_FORM_ref4 :
- form_size = 4;
- break;
-
- // 8 byte values
- case DW_FORM_data8 :
- case DW_FORM_ref8 :
- case DW_FORM_ref_sig8 :
- form_size = 8;
- break;
-
- // signed or unsigned LEB 128 values
- case DW_FORM_sdata :
- case DW_FORM_udata :
- case DW_FORM_ref_udata :
- debug_info_data.Skip_LEB128 (&offset);
- break;
-
- case DW_FORM_indirect :
- form_is_indirect = true;
- form = debug_info_data.GetULEB128 (&offset);
- break;
-
- case DW_FORM_sec_offset :
- if (cu->GetAddressByteSize () == 4)
- debug_info_data.GetU32 (offset_ptr);
- else
- debug_info_data.GetU64 (offset_ptr);
- break;
-
- default:
- *offset_ptr = m_offset;
- return false;
- }
- offset += form_size;
-
- } while (form_is_indirect);
- }
- }
- *offset_ptr = offset;
- return true;
- }
- else
- {
- m_tag = 0;
- m_has_children = false;
- return true; // NULL debug tag entry
- }
-
- return false;
-}
-
-//----------------------------------------------------------------------
-// Extract
-//
-// Extract a debug info entry for a given compile unit from the
-// .debug_info and .debug_abbrev data within the SymbolFileDWARF class
-// starting at the given offset
-//----------------------------------------------------------------------
-bool
-DWARFDebugInfoEntry::Extract
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- uint32_t* offset_ptr
-)
-{
- const DataExtractor& debug_info_data = dwarf2Data->get_debug_info_data();
-// const DataExtractor& debug_str_data = dwarf2Data->get_debug_str_data();
- const uint32_t cu_end_offset = cu->GetNextCompileUnitOffset();
- const uint8_t cu_addr_size = cu->GetAddressByteSize();
- uint32_t offset = *offset_ptr;
-// if (offset >= cu_end_offset)
-// Log::Error("DIE at offset 0x%8.8x is beyond the end of the current compile unit (0x%8.8x)", m_offset, cu_end_offset);
- if ((offset < cu_end_offset) && debug_info_data.ValidOffset(offset))
- {
- m_offset = offset;
-
- const uint64_t abbr_idx = debug_info_data.GetULEB128(&offset);
- assert (abbr_idx < (1 << DIE_ABBR_IDX_BITSIZE));
- m_abbr_idx = abbr_idx;
- if (abbr_idx)
- {
- const DWARFAbbreviationDeclaration *abbrevDecl = cu->GetAbbreviations()->GetAbbreviationDeclaration(abbr_idx);
-
- if (abbrevDecl)
- {
- m_tag = abbrevDecl->Tag();
- m_has_children = abbrevDecl->HasChildren();
-
- bool isCompileUnitTag = m_tag == DW_TAG_compile_unit;
- if (cu && isCompileUnitTag)
- ((DWARFCompileUnit*)cu)->SetBaseAddress(0);
-
- // Skip all data in the .debug_info for the attributes
- const uint32_t numAttributes = abbrevDecl->NumAttributes();
- uint32_t i;
- dw_attr_t attr;
- dw_form_t form;
- for (i=0; i<numAttributes; ++i)
- {
- abbrevDecl->GetAttrAndFormByIndexUnchecked(i, attr, form);
-
- if (isCompileUnitTag && ((attr == DW_AT_entry_pc) || (attr == DW_AT_low_pc)))
- {
- DWARFFormValue form_value(form);
- if (form_value.ExtractValue(debug_info_data, &offset, cu))
- {
- if (attr == DW_AT_low_pc || attr == DW_AT_entry_pc)
- ((DWARFCompileUnit*)cu)->SetBaseAddress(form_value.Unsigned());
- }
- }
- else
- {
- bool form_is_indirect = false;
- do
- {
- form_is_indirect = false;
- register uint32_t form_size = 0;
- switch (form)
- {
- // Blocks if inlined data that have a length field and the data bytes
- // inlined in the .debug_info
- case DW_FORM_exprloc :
- case DW_FORM_block : form_size = debug_info_data.GetULEB128(&offset); break;
- case DW_FORM_block1 : form_size = debug_info_data.GetU8(&offset); break;
- case DW_FORM_block2 : form_size = debug_info_data.GetU16(&offset); break;
- case DW_FORM_block4 : form_size = debug_info_data.GetU32(&offset); break;
-
- // Inlined NULL terminated C-strings
- case DW_FORM_string : debug_info_data.GetCStr(&offset); break;
-
- // Compile unit address sized values
- case DW_FORM_addr :
- case DW_FORM_ref_addr :
- form_size = cu_addr_size;
- break;
-
-<<<<<<< .working
- // zero sized field
- case DW_FORM_flag_present:
- form_size = 0;
- break;
-
-=======
- // 0 sized form
- case DW_FORM_flag_present:
- form_size = 0;
- break;
-
->>>>>>> .merge-right.r164814
- // 1 byte values
- case DW_FORM_data1 :
- case DW_FORM_flag :
- case DW_FORM_ref1 :
- form_size = 1;
- break;
-
- // 2 byte values
- case DW_FORM_data2 :
- case DW_FORM_ref2 :
- form_size = 2;
- break;
-
- // 4 byte values
- case DW_FORM_strp :
- form_size = 4;
- break;
-
- case DW_FORM_data4 :
- case DW_FORM_ref4 :
- form_size = 4;
- break;
-
- // 8 byte values
- case DW_FORM_data8 :
- case DW_FORM_ref8 :
- case DW_FORM_ref_sig8 :
- form_size = 8;
- break;
-
- // signed or unsigned LEB 128 values
- case DW_FORM_sdata :
- case DW_FORM_udata :
- case DW_FORM_ref_udata :
- debug_info_data.Skip_LEB128(&offset);
- break;
-
- case DW_FORM_indirect :
- form = debug_info_data.GetULEB128(&offset);
- form_is_indirect = true;
- break;
-
- case DW_FORM_sec_offset :
- if (cu->GetAddressByteSize () == 4)
- debug_info_data.GetU32 (offset_ptr);
- else
- debug_info_data.GetU64 (offset_ptr);
- break;
-
- default:
- *offset_ptr = offset;
- return false;
- }
-
- offset += form_size;
- } while (form_is_indirect);
- }
- }
- *offset_ptr = offset;
- return true;
- }
- }
- else
- {
- m_tag = 0;
- m_has_children = false;
- *offset_ptr = offset;
- return true; // NULL debug tag entry
- }
- }
-
- return false;
-}
-
-//----------------------------------------------------------------------
-// DumpAncestry
-//
-// Dumps all of a debug information entries parents up until oldest and
-// all of it's attributes to the specified stream.
-//----------------------------------------------------------------------
-void
-DWARFDebugInfoEntry::DumpAncestry
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const DWARFDebugInfoEntry* oldest,
- Stream &s,
- uint32_t recurse_depth
-) const
-{
- const DWARFDebugInfoEntry* parent = GetParent();
- if (parent && parent != oldest)
- parent->DumpAncestry(dwarf2Data, cu, oldest, s, 0);
- Dump(dwarf2Data, cu, s, recurse_depth);
-}
-
-//----------------------------------------------------------------------
-// Compare two DIE by comparing all their attributes values, and
-// following all DW_FORM_ref attributes and comparing their contents as
-// well (except for DW_AT_sibling attributes.
-//
-// DWARFDebugInfoEntry::CompareState compare_state;
-// int result = DWARFDebugInfoEntry::Compare(this, 0x00017ccb, 0x0001eb2b, compare_state, false, true);
-//----------------------------------------------------------------------
-//int
-//DWARFDebugInfoEntry::Compare
-//(
-// SymbolFileDWARF* dwarf2Data,
-// dw_offset_t a_die_offset,
-// dw_offset_t b_die_offset,
-// CompareState &compare_state,
-// bool compare_siblings,
-// bool compare_children
-//)
-//{
-// if (a_die_offset == b_die_offset)
-// return 0;
-//
-// DWARFCompileUnitSP a_cu_sp;
-// DWARFCompileUnitSP b_cu_sp;
-// const DWARFDebugInfoEntry* a_die = dwarf2Data->DebugInfo()->GetDIEPtr(a_die_offset, &a_cu_sp);
-// const DWARFDebugInfoEntry* b_die = dwarf2Data->DebugInfo()->GetDIEPtr(b_die_offset, &b_cu_sp);
-//
-// return Compare(dwarf2Data, a_cu_sp.get(), a_die, b_cu_sp.get(), b_die, compare_state, compare_siblings, compare_children);
-//}
-//
-//int
-//DWARFDebugInfoEntry::Compare
-//(
-// SymbolFileDWARF* dwarf2Data,
-// DWARFCompileUnit* a_cu, const DWARFDebugInfoEntry* a_die,
-// DWARFCompileUnit* b_cu, const DWARFDebugInfoEntry* b_die,
-// CompareState &compare_state,
-// bool compare_siblings,
-// bool compare_children
-//)
-//{
-// if (a_die == b_die)
-// return 0;
-//
-// if (!compare_state.AddTypePair(a_die->GetOffset(), b_die->GetOffset()))
-// {
-// // We are already comparing both of these types, so let
-// // compares complete for the real result
-// return 0;
-// }
-//
-// //printf("DWARFDebugInfoEntry::Compare(0x%8.8x, 0x%8.8x)\n", a_die->GetOffset(), b_die->GetOffset());
-//
-// // Do we have two valid DIEs?
-// if (a_die && b_die)
-// {
-// // Both DIE are valid
-// int result = 0;
-//
-// const dw_tag_t a_tag = a_die->Tag();
-// const dw_tag_t b_tag = b_die->Tag();
-// if (a_tag == 0 && b_tag == 0)
-// return 0;
-//
-// //printf(" comparing tags: %s and %s\n", DW_TAG_value_to_name(a_tag), DW_TAG_value_to_name(b_tag));
-//
-// if (a_tag < b_tag)
-// return -1;
-// else if (a_tag > b_tag)
-// return 1;
-//
-// DWARFDebugInfoEntry::Attributes a_attrs;
-// DWARFDebugInfoEntry::Attributes b_attrs;
-// size_t a_attr_count = a_die->GetAttributes(dwarf2Data, a_cu, a_attrs);
-// size_t b_attr_count = b_die->GetAttributes(dwarf2Data, b_cu, b_attrs);
-// if (a_attr_count != b_attr_count)
-// {
-// a_attrs.RemoveAttribute(DW_AT_sibling);
-// b_attrs.RemoveAttribute(DW_AT_sibling);
-// }
-//
-// a_attr_count = a_attrs.Size();
-// b_attr_count = b_attrs.Size();
-//
-// DWARFFormValue a_form_value;
-// DWARFFormValue b_form_value;
-//
-// if (a_attr_count != b_attr_count)
-// {
-// uint32_t is_decl_index = a_attrs.FindAttributeIndex(DW_AT_declaration);
-// uint32_t a_name_index = UINT32_MAX;
-// uint32_t b_name_index = UINT32_MAX;
-// if (is_decl_index != UINT32_MAX)
-// {
-// if (a_attr_count == 2)
-// {
-// a_name_index = a_attrs.FindAttributeIndex(DW_AT_name);
-// b_name_index = b_attrs.FindAttributeIndex(DW_AT_name);
-// }
-// }
-// else
-// {
-// is_decl_index = b_attrs.FindAttributeIndex(DW_AT_declaration);
-// if (is_decl_index != UINT32_MAX && a_attr_count == 2)
-// {
-// a_name_index = a_attrs.FindAttributeIndex(DW_AT_name);
-// b_name_index = b_attrs.FindAttributeIndex(DW_AT_name);
-// }
-// }
-// if (a_name_index != UINT32_MAX && b_name_index != UINT32_MAX)
-// {
-// if (a_attrs.ExtractFormValueAtIndex(dwarf2Data, a_name_index, a_form_value) &&
-// b_attrs.ExtractFormValueAtIndex(dwarf2Data, b_name_index, b_form_value))
-// {
-// result = DWARFFormValue::Compare (a_form_value, b_form_value, a_cu, b_cu, &dwarf2Data->get_debug_str_data());
-// if (result == 0)
-// {
-// a_attr_count = b_attr_count = 0;
-// compare_children = false;
-// }
-// }
-// }
-// }
-//
-// if (a_attr_count < b_attr_count)
-// return -1;
-// if (a_attr_count > b_attr_count)
-// return 1;
-//
-//
-// // The number of attributes are the same...
-// if (a_attr_count > 0)
-// {
-// const DataExtractor* debug_str_data_ptr = &dwarf2Data->get_debug_str_data();
-//
-// uint32_t i;
-// for (i=0; i<a_attr_count; ++i)
-// {
-// const dw_attr_t a_attr = a_attrs.AttributeAtIndex(i);
-// const dw_attr_t b_attr = b_attrs.AttributeAtIndex(i);
-// //printf(" comparing attributes\n\t\t0x%8.8x: %s %s\t\t0x%8.8x: %s %s\n",
-// // a_attrs.DIEOffsetAtIndex(i), DW_FORM_value_to_name(a_attrs.FormAtIndex(i)), DW_AT_value_to_name(a_attr),
-// // b_attrs.DIEOffsetAtIndex(i), DW_FORM_value_to_name(b_attrs.FormAtIndex(i)), DW_AT_value_to_name(b_attr));
-//
-// if (a_attr < b_attr)
-// return -1;
-// else if (a_attr > b_attr)
-// return 1;
-//
-// switch (a_attr)
-// {
-// // Since we call a form of GetAttributes which inlines the
-// // attributes from DW_AT_abstract_origin and DW_AT_specification
-// // we don't care if their values mismatch...
-// case DW_AT_abstract_origin:
-// case DW_AT_specification:
-// case DW_AT_sibling:
-// case DW_AT_containing_type:
-// //printf(" action = IGNORE\n");
-// result = 0;
-// break; // ignore
-//
-// default:
-// if (a_attrs.ExtractFormValueAtIndex(dwarf2Data, i, a_form_value) &&
-// b_attrs.ExtractFormValueAtIndex(dwarf2Data, i, b_form_value))
-// result = DWARFFormValue::Compare (a_form_value, b_form_value, a_cu, b_cu, debug_str_data_ptr);
-// break;
-// }
-//
-// //printf("\t result = %i\n", result);
-//
-// if (result != 0)
-// {
-// // Attributes weren't equal, lets see if we care?
-// switch (a_attr)
-// {
-// case DW_AT_decl_file:
-// // TODO: add the ability to compare files in two different compile units
-// if (a_cu == b_cu)
-// {
-// //printf(" action = RETURN RESULT\n");
-// return result; // Only return the compare results when the compile units are the same and the decl_file attributes can be compared
-// }
-// else
-// {
-// result = 0;
-// //printf(" action = IGNORE\n");
-// }
-// break;
-//
-// default:
-// switch (a_attrs.FormAtIndex(i))
-// {
-// case DW_FORM_ref1:
-// case DW_FORM_ref2:
-// case DW_FORM_ref4:
-// case DW_FORM_ref8:
-// case DW_FORM_ref_udata:
-// case DW_FORM_ref_addr:
-// //printf(" action = COMPARE DIEs 0x%8.8x 0x%8.8x\n", (dw_offset_t)a_form_value.Reference(a_cu), (dw_offset_t)b_form_value.Reference(b_cu));
-// // These attribute values refer to other DIEs, so lets compare those instead of their DIE offsets...
-// result = Compare(dwarf2Data, a_form_value.Reference(a_cu), b_form_value.Reference(b_cu), compare_state, false, true);
-// if (result != 0)
-// return result;
-// break;
-//
-// default:
-// // We do care that they were different, return this result...
-// //printf(" action = RETURN RESULT\n");
-// return result;
-// }
-// }
-// }
-// }
-// }
-// //printf(" SUCCESS\n\t\t0x%8.8x: %s\n\t\t0x%8.8x: %s\n", a_die->GetOffset(), DW_TAG_value_to_name(a_tag), b_die->GetOffset(), DW_TAG_value_to_name(b_tag));
-//
-// if (compare_children)
-// {
-// bool a_has_children = a_die->HasChildren();
-// bool b_has_children = b_die->HasChildren();
-// if (a_has_children == b_has_children)
-// {
-// // Both either have kids or don't
-// if (a_has_children)
-// result = Compare( dwarf2Data,
-// a_cu, a_die->GetFirstChild(),
-// b_cu, b_die->GetFirstChild(),
-// compare_state, true, compare_children);
-// else
-// result = 0;
-// }
-// else if (!a_has_children)
-// result = -1; // A doesn't have kids, but B does
-// else
-// result = 1; // A has kids, but B doesn't
-// }
-//
-// if (compare_siblings)
-// {
-// result = Compare( dwarf2Data,
-// a_cu, a_die->GetSibling(),
-// b_cu, b_die->GetSibling(),
-// compare_state, true, compare_children);
-// }
-//
-// return result;
-// }
-//
-// if (a_die == NULL)
-// return -1; // a_die is NULL, yet b_die is non-NULL
-// else
-// return 1; // a_die is non-NULL, yet b_die is NULL
-//
-//}
-//
-//
-//int
-//DWARFDebugInfoEntry::Compare
-//(
-// SymbolFileDWARF* dwarf2Data,
-// const DWARFCompileUnit* cu_a,
-// const DWARFDebugInfoEntry* die_a,
-// const DWARFCompileUnit* cu_a,
-// const DWARFDebugInfoEntry* die_b,
-// CompareState &compare_state
-//)
-//{
-//}
-
-//----------------------------------------------------------------------
-// GetDIENamesAndRanges
-//
-// Gets the valid address ranges for a given DIE by looking for a
-// DW_AT_low_pc/DW_AT_high_pc pair, DW_AT_entry_pc, or DW_AT_ranges
-// attributes.
-//----------------------------------------------------------------------
-bool
-DWARFDebugInfoEntry::GetDIENamesAndRanges
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const char * &name,
- const char * &mangled,
- DWARFDebugRanges::RangeList& ranges,
- int& decl_file,
- int& decl_line,
- int& decl_column,
- int& call_file,
- int& call_line,
- int& call_column,
- DWARFExpression *frame_base
-) const
-{
- if (dwarf2Data == NULL)
- return false;
-
- dw_addr_t lo_pc = DW_INVALID_ADDRESS;
- dw_addr_t hi_pc = DW_INVALID_ADDRESS;
- std::vector<dw_offset_t> die_offsets;
- bool set_frame_base_loclist_addr = false;
-
- dw_offset_t offset;
- const DWARFAbbreviationDeclaration* abbrevDecl = GetAbbreviationDeclarationPtr(dwarf2Data, cu, offset);
-
- if (abbrevDecl)
- {
- const DataExtractor& debug_info_data = dwarf2Data->get_debug_info_data();
-
- if (!debug_info_data.ValidOffset(offset))
- return false;
-
- const uint32_t numAttributes = abbrevDecl->NumAttributes();
- uint32_t i;
- dw_attr_t attr;
- dw_form_t form;
- for (i=0; i<numAttributes; ++i)
- {
- abbrevDecl->GetAttrAndFormByIndexUnchecked(i, attr, form);
- DWARFFormValue form_value(form);
- if (form_value.ExtractValue(debug_info_data, &offset, cu))
- {
- switch (attr)
- {
- case DW_AT_low_pc:
- case DW_AT_entry_pc:
- lo_pc = form_value.Unsigned();
- break;
-
- case DW_AT_high_pc:
- hi_pc = form_value.Unsigned();
- break;
-
- case DW_AT_ranges:
- {
- const DWARFDebugRanges* debug_ranges = dwarf2Data->DebugRanges();
- debug_ranges->FindRanges(form_value.Unsigned(), ranges);
- // All DW_AT_ranges are relative to the base address of the
- // compile unit. We add the compile unit base address to make
- // sure all the addresses are properly fixed up.
- ranges.Slide(cu->GetBaseAddress());
- }
- break;
-
- case DW_AT_name:
- if (name == NULL)
- name = form_value.AsCString(&dwarf2Data->get_debug_str_data());
- break;
-
- case DW_AT_MIPS_linkage_name:
- if (mangled == NULL)
- mangled = form_value.AsCString(&dwarf2Data->get_debug_str_data());
- break;
-
- case DW_AT_abstract_origin:
- die_offsets.push_back(form_value.Reference(cu));
- break;
-
- case DW_AT_specification:
- die_offsets.push_back(form_value.Reference(cu));
- break;
-
- case DW_AT_decl_file:
- if (decl_file == 0)
- decl_file = form_value.Unsigned();
- break;
-
- case DW_AT_decl_line:
- if (decl_line == 0)
- decl_line = form_value.Unsigned();
- break;
-
- case DW_AT_decl_column:
- if (decl_column == 0)
- decl_column = form_value.Unsigned();
- break;
-
- case DW_AT_call_file:
- if (call_file == 0)
- call_file = form_value.Unsigned();
- break;
-
- case DW_AT_call_line:
- if (call_line == 0)
- call_line = form_value.Unsigned();
- break;
-
- case DW_AT_call_column:
- if (call_column == 0)
- call_column = form_value.Unsigned();
- break;
-
- case DW_AT_frame_base:
- if (frame_base)
- {
- if (form_value.BlockData())
- {
- uint32_t block_offset = form_value.BlockData() - debug_info_data.GetDataStart();
- uint32_t block_length = form_value.Unsigned();
- frame_base->SetOpcodeData(debug_info_data, block_offset, block_length);
- }
- else
- {
- const DataExtractor &debug_loc_data = dwarf2Data->get_debug_loc_data();
- const dw_offset_t debug_loc_offset = form_value.Unsigned();
-
- size_t loc_list_length = DWARFLocationList::Size(debug_loc_data, debug_loc_offset);
- if (loc_list_length > 0)
- {
- frame_base->SetOpcodeData(debug_loc_data, debug_loc_offset, loc_list_length);
- if (lo_pc != DW_INVALID_ADDRESS)
- {
- assert (lo_pc >= cu->GetBaseAddress());
- frame_base->SetLocationListSlide(lo_pc - cu->GetBaseAddress());
- }
- else
- {
- set_frame_base_loclist_addr = true;
- }
- }
- }
- }
- break;
-
- default:
- break;
- }
- }
- }
- }
-
- if (ranges.IsEmpty())
- {
- if (lo_pc != DW_INVALID_ADDRESS)
- {
- if (hi_pc != DW_INVALID_ADDRESS && hi_pc > lo_pc)
- ranges.Append(DWARFDebugRanges::Range (lo_pc, hi_pc - lo_pc));
- else
- ranges.Append(DWARFDebugRanges::Range (lo_pc, 0));
- }
- }
-
- if (set_frame_base_loclist_addr)
- {
- dw_addr_t lowest_range_pc = ranges.GetMinRangeBase(0);
- assert (lowest_range_pc >= cu->GetBaseAddress());
- frame_base->SetLocationListSlide (lowest_range_pc - cu->GetBaseAddress());
- }
-
- if (ranges.IsEmpty() || name == NULL || mangled == NULL)
- {
- std::vector<dw_offset_t>::const_iterator pos;
- std::vector<dw_offset_t>::const_iterator end = die_offsets.end();
- for (pos = die_offsets.begin(); pos != end; ++pos)
- {
- DWARFCompileUnitSP cu_sp_ptr;
- const DWARFDebugInfoEntry* die = NULL;
- dw_offset_t die_offset = *pos;
- if (die_offset != DW_INVALID_OFFSET)
- {
- die = dwarf2Data->DebugInfo()->GetDIEPtr(die_offset, &cu_sp_ptr);
- if (die)
- die->GetDIENamesAndRanges(dwarf2Data, cu_sp_ptr.get(), name, mangled, ranges, decl_file, decl_line, decl_column, call_file, call_line, call_column);
- }
- }
- }
- return !ranges.IsEmpty();
-}
-
-//----------------------------------------------------------------------
-// Dump
-//
-// Dumps a debug information entry and all of it's attributes to the
-// specified stream.
-//----------------------------------------------------------------------
-void
-DWARFDebugInfoEntry::Dump
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- Stream &s,
- uint32_t recurse_depth
-) const
-{
- const DataExtractor& debug_info_data = dwarf2Data->get_debug_info_data();
- uint32_t offset = m_offset;
-
- if (debug_info_data.ValidOffset(offset))
- {
- dw_uleb128_t abbrCode = debug_info_data.GetULEB128(&offset);
-
- s.Printf("\n0x%8.8x: ", m_offset);
- s.Indent();
- if (abbrCode != m_abbr_idx)
- {
- s.Printf( "error: DWARF has been modified\n");
- }
- else if (abbrCode)
- {
- const DWARFAbbreviationDeclaration* abbrevDecl = cu->GetAbbreviations()->GetAbbreviationDeclaration (abbrCode);
-
- if (abbrevDecl)
- {
- s.PutCString(DW_TAG_value_to_name(abbrevDecl->Tag()));
- s.Printf( " [%u] %c\n", abbrCode, abbrevDecl->HasChildren() ? '*':' ');
-
- // Dump all data in the .debug_info for the attributes
- const uint32_t numAttributes = abbrevDecl->NumAttributes();
- uint32_t i;
- dw_attr_t attr;
- dw_form_t form;
- for (i=0; i<numAttributes; ++i)
- {
- abbrevDecl->GetAttrAndFormByIndexUnchecked(i, attr, form);
-
- DumpAttribute(dwarf2Data, cu, debug_info_data, &offset, s, attr, form);
- }
-
- const DWARFDebugInfoEntry* child = GetFirstChild();
- if (recurse_depth > 0 && child)
- {
- s.IndentMore();
-
- while (child)
- {
- child->Dump(dwarf2Data, cu, s, recurse_depth-1);
- child = child->GetSibling();
- }
- s.IndentLess();
- }
- }
- else
- s.Printf( "Abbreviation code note found in 'debug_abbrev' class for code: %u\n", abbrCode);
- }
- else
- {
- s.Printf( "NULL\n");
- }
- }
-}
-
-void
-DWARFDebugInfoEntry::DumpLocation
-(
- SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu,
- Stream &s
-) const
-{
- const DWARFDebugInfoEntry *cu_die = cu->GetCompileUnitDIEOnly();
- const char *cu_name = NULL;
- if (cu_die != NULL)
- cu_name = cu_die->GetName (dwarf2Data, cu);
- const char *obj_file_name = NULL;
- ObjectFile *obj_file = dwarf2Data->GetObjectFile();
- if (obj_file)
- obj_file_name = obj_file->GetFileSpec().GetFilename().AsCString();
- const char *die_name = GetName (dwarf2Data, cu);
- s.Printf ("0x%8.8x/0x%8.8x: %-30s (from %s in %s)",
- cu->GetOffset(),
- GetOffset(),
- die_name ? die_name : "",
- cu_name ? cu_name : "<NULL>",
- obj_file_name ? obj_file_name : "<NULL>");
-}
-
-//----------------------------------------------------------------------
-// DumpAttribute
-//
-// Dumps a debug information entry attribute along with it's form. Any
-// special display of attributes is done (disassemble location lists,
-// show enumeration values for attributes, etc).
-//----------------------------------------------------------------------
-void
-DWARFDebugInfoEntry::DumpAttribute
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const DataExtractor& debug_info_data,
- uint32_t* offset_ptr,
- Stream &s,
- dw_attr_t attr,
- dw_form_t form
-)
-{
- bool verbose = s.GetVerbose();
- bool show_form = s.GetFlags().Test(DWARFDebugInfo::eDumpFlag_ShowForm);
- const DataExtractor* debug_str_data = dwarf2Data ? &dwarf2Data->get_debug_str_data() : NULL;
- if (verbose)
- s.Offset (*offset_ptr);
- else
- s.Printf (" ");
- s.Indent(DW_AT_value_to_name(attr));
-
- if (show_form)
- {
- s.Printf( "[%s", DW_FORM_value_to_name(form));
- }
-
- DWARFFormValue form_value(form);
-
- if (!form_value.ExtractValue(debug_info_data, offset_ptr, cu))
- return;
-
- if (show_form)
- {
- if (form == DW_FORM_indirect)
- {
- s.Printf( " [%s]", DW_FORM_value_to_name(form_value.Form()));
- }
-
- s.PutCString("] ");
- }
-
- s.PutCString("( ");
-
- // Always dump form value if verbose is enabled
- if (verbose)
- {
- form_value.Dump(s, debug_str_data, cu);
- }
-
-
- // Check to see if we have any special attribute formatters
- switch (attr)
- {
- case DW_AT_stmt_list:
- if ( verbose ) s.PutCString(" ( ");
- s.Printf( "0x%8.8llx", form_value.Unsigned());
- if ( verbose ) s.PutCString(" )");
- break;
-
- case DW_AT_language:
- if ( verbose ) s.PutCString(" ( ");
- s.PutCString(DW_LANG_value_to_name(form_value.Unsigned()));
- if ( verbose ) s.PutCString(" )");
- break;
-
- case DW_AT_encoding:
- if ( verbose ) s.PutCString(" ( ");
- s.PutCString(DW_ATE_value_to_name(form_value.Unsigned()));
- if ( verbose ) s.PutCString(" )");
- break;
-
- case DW_AT_frame_base:
- case DW_AT_location:
- case DW_AT_data_member_location:
- {
- const uint8_t* blockData = form_value.BlockData();
- if (blockData)
- {
- if (!verbose)
- form_value.Dump(s, debug_str_data, cu);
-
- // Location description is inlined in data in the form value
- DataExtractor locationData(debug_info_data, (*offset_ptr) - form_value.Unsigned(), form_value.Unsigned());
- if ( verbose ) s.PutCString(" ( ");
- print_dwarf_expression (s, locationData, DWARFCompileUnit::GetAddressByteSize(cu), 4, false);
- if ( verbose ) s.PutCString(" )");
- }
- else
- {
- // We have a location list offset as the value that is
- // the offset into the .debug_loc section that describes
- // the value over it's lifetime
- uint64_t debug_loc_offset = form_value.Unsigned();
- if (dwarf2Data)
- {
- if ( !verbose )
- form_value.Dump(s, debug_str_data, cu);
- DWARFLocationList::Dump(s, cu, dwarf2Data->get_debug_loc_data(), debug_loc_offset);
- }
- else
- {
- if ( !verbose )
- form_value.Dump(s, NULL, cu);
- }
- }
- }
- break;
-
- case DW_AT_abstract_origin:
- case DW_AT_specification:
- {
- uint64_t abstract_die_offset = form_value.Reference(cu);
- form_value.Dump(s, debug_str_data, cu);
- // *ostrm_ptr << HEX32 << abstract_die_offset << " ( ";
- if ( verbose ) s.PutCString(" ( ");
- GetName(dwarf2Data, cu, abstract_die_offset, s);
- if ( verbose ) s.PutCString(" )");
- }
- break;
-
- case DW_AT_type:
- {
- uint64_t type_die_offset = form_value.Reference(cu);
- if (!verbose)
- form_value.Dump(s, debug_str_data, cu);
- s.PutCString(" ( ");
- AppendTypeName(dwarf2Data, cu, type_die_offset, s);
- s.PutCString(" )");
- }
- break;
-
- case DW_AT_ranges:
- {
- if ( !verbose )
- form_value.Dump(s, debug_str_data, cu);
- uint32_t ranges_offset = form_value.Unsigned();
- dw_addr_t base_addr = cu ? cu->GetBaseAddress() : 0;
- DWARFDebugRanges::Dump(s, dwarf2Data->get_debug_ranges_data(), &ranges_offset, base_addr);
- }
- break;
-
- default:
- if ( !verbose )
- form_value.Dump(s, debug_str_data, cu);
- break;
- }
-
- s.PutCString(" )\n");
-}
-
-//----------------------------------------------------------------------
-// Get all attribute values for a given DIE, including following any
-// specification or abstract origin attributes and including those in
-// the results. Any duplicate attributes will have the first instance
-// take precedence (this can happen for declaration attributes).
-//----------------------------------------------------------------------
-size_t
-DWARFDebugInfoEntry::GetAttributes
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const uint8_t *fixed_form_sizes,
- DWARFDebugInfoEntry::Attributes& attributes,
- uint32_t curr_depth
-) const
-{
- uint32_t offset;
- const DWARFAbbreviationDeclaration* abbrevDecl = GetAbbreviationDeclarationPtr(dwarf2Data, cu, offset);
-
- if (abbrevDecl)
- {
- const DataExtractor& debug_info_data = dwarf2Data->get_debug_info_data();
-
- if (fixed_form_sizes == NULL)
- fixed_form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize(cu->GetAddressByteSize());
-
- const uint32_t num_attributes = abbrevDecl->NumAttributes();
- uint32_t i;
- dw_attr_t attr;
- dw_form_t form;
- DWARFFormValue form_value;
- for (i=0; i<num_attributes; ++i)
- {
- abbrevDecl->GetAttrAndFormByIndexUnchecked (i, attr, form);
-
- // If we are tracking down DW_AT_specification or DW_AT_abstract_origin
- // attributes, the depth will be non-zero. We need to omit certain
- // attributes that don't make sense.
- switch (attr)
- {
- case DW_AT_sibling:
- case DW_AT_declaration:
- if (curr_depth > 0)
- {
- // This attribute doesn't make sense when combined with
- // the DIE that references this DIE. We know a DIE is
- // referencing this DIE because curr_depth is not zero
- break;
- }
- // Fall through...
- default:
- attributes.Append(cu, offset, attr, form);
- break;
- }
-
- if ((attr == DW_AT_specification) || (attr == DW_AT_abstract_origin))
- {
- form_value.SetForm(form);
- if (form_value.ExtractValue(debug_info_data, &offset, cu))
- {
- const DWARFDebugInfoEntry* die = NULL;
- dw_offset_t die_offset = form_value.Reference(cu);
- if (cu->ContainsDIEOffset(die_offset))
- {
- die = const_cast<DWARFCompileUnit*>(cu)->GetDIEPtr(die_offset);
- if (die)
- die->GetAttributes(dwarf2Data, cu, fixed_form_sizes, attributes, curr_depth + 1);
- }
- else
- {
- DWARFCompileUnitSP cu_sp_ptr;
- die = const_cast<SymbolFileDWARF*>(dwarf2Data)->DebugInfo()->GetDIEPtr(die_offset, &cu_sp_ptr);
- if (die)
- die->GetAttributes(dwarf2Data, cu_sp_ptr.get(), fixed_form_sizes, attributes, curr_depth + 1);
- }
- }
- }
- else
- {
- const uint8_t fixed_skip_size = fixed_form_sizes [form];
- if (fixed_skip_size)
- offset += fixed_skip_size;
- else
- DWARFFormValue::SkipValue(form, debug_info_data, &offset, cu);
- }
- }
- }
- else
- {
- attributes.Clear();
- }
- return attributes.Size();
-
-}
-
-//----------------------------------------------------------------------
-// GetAttributeValue
-//
-// Get the value of an attribute and return the .debug_info offset of the
-// attribute if it was properly extracted into form_value, or zero
-// if we fail since an offset of zero is invalid for an attribute (it
-// would be a compile unit header).
-//----------------------------------------------------------------------
-dw_offset_t
-DWARFDebugInfoEntry::GetAttributeValue
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const dw_attr_t attr,
- DWARFFormValue& form_value,
- dw_offset_t* end_attr_offset_ptr
-) const
-{
- uint32_t offset;
- const DWARFAbbreviationDeclaration* abbrevDecl = GetAbbreviationDeclarationPtr(dwarf2Data, cu, offset);
-
- if (abbrevDecl)
- {
- uint32_t attr_idx = abbrevDecl->FindAttributeIndex(attr);
-
- if (attr_idx != DW_INVALID_INDEX)
- {
- const DataExtractor& debug_info_data = dwarf2Data->get_debug_info_data();
-
- uint32_t idx=0;
- while (idx<attr_idx)
- DWARFFormValue::SkipValue(abbrevDecl->GetFormByIndex(idx++), debug_info_data, &offset, cu);
-
- const dw_offset_t attr_offset = offset;
- form_value.SetForm(abbrevDecl->GetFormByIndex(idx));
- if (form_value.ExtractValue(debug_info_data, &offset, cu))
- {
- if (end_attr_offset_ptr)
- *end_attr_offset_ptr = offset;
- return attr_offset;
- }
- }
- }
-
- return 0;
-}
-
-//----------------------------------------------------------------------
-// GetAttributeValueAsString
-//
-// Get the value of an attribute as a string return it. The resulting
-// pointer to the string data exists within the supplied SymbolFileDWARF
-// and will only be available as long as the SymbolFileDWARF is still around
-// and it's content doesn't change.
-//----------------------------------------------------------------------
-const char*
-DWARFDebugInfoEntry::GetAttributeValueAsString
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const dw_attr_t attr,
- const char* fail_value) const
-{
- DWARFFormValue form_value;
- if (GetAttributeValue(dwarf2Data, cu, attr, form_value))
- return form_value.AsCString(&dwarf2Data->get_debug_str_data());
- return fail_value;
-}
-
-//----------------------------------------------------------------------
-// GetAttributeValueAsUnsigned
-//
-// Get the value of an attribute as unsigned and return it.
-//----------------------------------------------------------------------
-uint64_t
-DWARFDebugInfoEntry::GetAttributeValueAsUnsigned
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const dw_attr_t attr,
- uint64_t fail_value
-) const
-{
- DWARFFormValue form_value;
- if (GetAttributeValue(dwarf2Data, cu, attr, form_value))
- return form_value.Unsigned();
- return fail_value;
-}
-
-//----------------------------------------------------------------------
-// GetAttributeValueAsSigned
-//
-// Get the value of an attribute a signed value and return it.
-//----------------------------------------------------------------------
-int64_t
-DWARFDebugInfoEntry::GetAttributeValueAsSigned
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const dw_attr_t attr,
- int64_t fail_value
-) const
-{
- DWARFFormValue form_value;
- if (GetAttributeValue(dwarf2Data, cu, attr, form_value))
- return form_value.Signed();
- return fail_value;
-}
-
-//----------------------------------------------------------------------
-// GetAttributeValueAsReference
-//
-// Get the value of an attribute as reference and fix up and compile
-// unit relative offsets as needed.
-//----------------------------------------------------------------------
-uint64_t
-DWARFDebugInfoEntry::GetAttributeValueAsReference
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const dw_attr_t attr,
- uint64_t fail_value
-) const
-{
- DWARFFormValue form_value;
- if (GetAttributeValue(dwarf2Data, cu, attr, form_value))
- return form_value.Reference(cu);
- return fail_value;
-}
-
-//----------------------------------------------------------------------
-// GetAttributeValueAsLocation
-//
-// Get the value of an attribute as reference and fix up and compile
-// unit relative offsets as needed.
-//----------------------------------------------------------------------
-dw_offset_t
-DWARFDebugInfoEntry::GetAttributeValueAsLocation
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const dw_attr_t attr,
- DataExtractor& location_data,
- uint32_t &block_size
-) const
-{
- block_size = 0;
- DWARFFormValue form_value;
-
- // Empty out data in case we don't find anything
- location_data.Clear();
- dw_offset_t end_addr_offset = DW_INVALID_OFFSET;
- const dw_offset_t attr_offset = GetAttributeValue(dwarf2Data, cu, attr, form_value, &end_addr_offset);
- if (attr_offset)
- {
- const uint8_t* blockData = form_value.BlockData();
- if (blockData)
- {
- // We have an inlined location list in the .debug_info section
- const DataExtractor& debug_info = dwarf2Data->get_debug_info_data();
- dw_offset_t block_offset = blockData - debug_info.GetDataStart();
- block_size = (end_addr_offset - attr_offset) - form_value.Unsigned();
- location_data.SetData(debug_info, block_offset, block_size);
- }
- else
- {
- // We have a location list offset as the value that is
- // the offset into the .debug_loc section that describes
- // the value over it's lifetime
- dw_offset_t debug_loc_offset = form_value.Unsigned();
- if (dwarf2Data)
- {
- assert(dwarf2Data->get_debug_loc_data().GetAddressByteSize() == cu->GetAddressByteSize());
- return DWARFLocationList::Extract(dwarf2Data->get_debug_loc_data(), &debug_loc_offset, location_data);
- }
- }
- }
- return attr_offset;
-}
-
-//----------------------------------------------------------------------
-// GetName
-//
-// Get value of the DW_AT_name attribute and return it if one exists,
-// else return NULL.
-//----------------------------------------------------------------------
-const char*
-DWARFDebugInfoEntry::GetName
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu
-) const
-{
- DWARFFormValue form_value;
- if (GetAttributeValue(dwarf2Data, cu, DW_AT_name, form_value))
- return form_value.AsCString(&dwarf2Data->get_debug_str_data());
- return NULL;
-}
-
-
-//----------------------------------------------------------------------
-// GetMangledName
-//
-// Get value of the DW_AT_MIPS_linkage_name attribute and return it if
-// one exists, else return the value of the DW_AT_name attribute
-//----------------------------------------------------------------------
-const char*
-DWARFDebugInfoEntry::GetMangledName
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- bool substitute_name_allowed
-) const
-{
- const char* name = NULL;
- DWARFFormValue form_value;
-
- if (GetAttributeValue(dwarf2Data, cu, DW_AT_MIPS_linkage_name, form_value))
- name = form_value.AsCString(&dwarf2Data->get_debug_str_data());
-
- if (substitute_name_allowed && name == NULL)
- {
- if (GetAttributeValue(dwarf2Data, cu, DW_AT_name, form_value))
- name = form_value.AsCString(&dwarf2Data->get_debug_str_data());
- }
- return name;
-}
-
-
-//----------------------------------------------------------------------
-// GetPubname
-//
-// Get value the name for a DIE as it should appear for a
-// .debug_pubnames or .debug_pubtypes section.
-//----------------------------------------------------------------------
-const char*
-DWARFDebugInfoEntry::GetPubname
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu
-) const
-{
- const char* name = NULL;
- DWARFFormValue form_value;
-
- if (GetAttributeValue(dwarf2Data, cu, DW_AT_MIPS_linkage_name, form_value))
- name = form_value.AsCString(&dwarf2Data->get_debug_str_data());
- else if (GetAttributeValue(dwarf2Data, cu, DW_AT_name, form_value))
- name = form_value.AsCString(&dwarf2Data->get_debug_str_data());
- else if (GetAttributeValue(dwarf2Data, cu, DW_AT_specification, form_value))
- {
- // The specification DIE may be in another compile unit so we need
- // to get a die and its compile unit.
- DWARFCompileUnitSP cu_sp_ptr;
- const DWARFDebugInfoEntry* die = const_cast<SymbolFileDWARF*>(dwarf2Data)->DebugInfo()->GetDIEPtr(form_value.Reference(cu), &cu_sp_ptr);
- if (die)
- return die->GetPubname(dwarf2Data, cu_sp_ptr.get());
- }
- return name;
-}
-
-
-//----------------------------------------------------------------------
-// GetName
-//
-// Get value of the DW_AT_name attribute for a debug information entry
-// that exists at offset "die_offset" and place that value into the
-// supplied stream object. If the DIE is a NULL object "NULL" is placed
-// into the stream, and if no DW_AT_name attribute exists for the DIE
-// then nothing is printed.
-//----------------------------------------------------------------------
-bool
-DWARFDebugInfoEntry::GetName
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const uint32_t die_offset,
- Stream &s
-)
-{
- DWARFDebugInfoEntry die;
- uint32_t offset = die_offset;
- if (die.Extract(dwarf2Data, cu, &offset))
- {
- if (die.IsNULL())
- {
- s.PutCString("NULL");
- return true;
- }
- else
- {
- DWARFFormValue form_value;
- if (die.GetAttributeValue(dwarf2Data, cu, DW_AT_name, form_value))
- {
- const char* name = form_value.AsCString(&dwarf2Data->get_debug_str_data());
- if (name)
- {
- s.PutCString(name);
- return true;
- }
- }
- }
- }
- return false;
-}
-
-//----------------------------------------------------------------------
-// AppendTypeName
-//
-// Follows the type name definition down through all needed tags to
-// end up with a fully qualified type name and dump the results to
-// the supplied stream. This is used to show the name of types given
-// a type identifier.
-//----------------------------------------------------------------------
-bool
-DWARFDebugInfoEntry::AppendTypeName
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- const uint32_t die_offset,
- Stream &s
-)
-{
- DWARFDebugInfoEntry die;
- uint32_t offset = die_offset;
- if (die.Extract(dwarf2Data, cu, &offset))
- {
- if (die.IsNULL())
- {
- s.PutCString("NULL");
- return true;
- }
- else
- {
- const char* name = die.GetPubname(dwarf2Data, cu);
- // if (die.GetAttributeValue(dwarf2Data, cu, DW_AT_name, form_value))
- // name = form_value.AsCString(&dwarf2Data->get_debug_str_data());
- if (name)
- s.PutCString(name);
- else
- {
- bool result = true;
- const DWARFAbbreviationDeclaration* abbrevDecl = die.GetAbbreviationDeclarationPtr(dwarf2Data, cu, offset);
-
- switch (abbrevDecl->Tag())
- {
- case DW_TAG_array_type: break; // print out a "[]" after printing the full type of the element below
- case DW_TAG_base_type: s.PutCString("base "); break;
- case DW_TAG_class_type: s.PutCString("class "); break;
- case DW_TAG_const_type: s.PutCString("const "); break;
- case DW_TAG_enumeration_type: s.PutCString("enum "); break;
- case DW_TAG_file_type: s.PutCString("file "); break;
- case DW_TAG_interface_type: s.PutCString("interface "); break;
- case DW_TAG_packed_type: s.PutCString("packed "); break;
- case DW_TAG_pointer_type: break; // print out a '*' after printing the full type below
- case DW_TAG_ptr_to_member_type: break; // print out a '*' after printing the full type below
- case DW_TAG_reference_type: break; // print out a '&' after printing the full type below
- case DW_TAG_restrict_type: s.PutCString("restrict "); break;
- case DW_TAG_set_type: s.PutCString("set "); break;
- case DW_TAG_shared_type: s.PutCString("shared "); break;
- case DW_TAG_string_type: s.PutCString("string "); break;
- case DW_TAG_structure_type: s.PutCString("struct "); break;
- case DW_TAG_subrange_type: s.PutCString("subrange "); break;
- case DW_TAG_subroutine_type: s.PutCString("function "); break;
- case DW_TAG_thrown_type: s.PutCString("thrown "); break;
- case DW_TAG_union_type: s.PutCString("union "); break;
- case DW_TAG_unspecified_type: s.PutCString("unspecified "); break;
- case DW_TAG_volatile_type: s.PutCString("volatile "); break;
- default:
- return false;
- }
-
- // Follow the DW_AT_type if possible
- DWARFFormValue form_value;
- if (die.GetAttributeValue(dwarf2Data, cu, DW_AT_type, form_value))
- {
- uint64_t next_die_offset = form_value.Reference(cu);
- result = AppendTypeName(dwarf2Data, cu, next_die_offset, s);
- }
-
- switch (abbrevDecl->Tag())
- {
- case DW_TAG_array_type: s.PutCString("[]"); break;
- case DW_TAG_pointer_type: s.PutChar('*'); break;
- case DW_TAG_ptr_to_member_type: s.PutChar('*'); break;
- case DW_TAG_reference_type: s.PutChar('&'); break;
- default:
- break;
- }
- return result;
- }
- }
- }
- return false;
-}
-
-bool
-DWARFDebugInfoEntry::Contains (const DWARFDebugInfoEntry *die) const
-{
- if (die)
- {
- const dw_offset_t die_offset = die->GetOffset();
- if (die_offset > GetOffset())
- {
- const DWARFDebugInfoEntry *sibling = GetSibling();
- assert (sibling); // TODO: take this out
- if (sibling)
- return die_offset < sibling->GetOffset();
- }
- }
- return false;
-}
-
-//----------------------------------------------------------------------
-// BuildAddressRangeTable
-//----------------------------------------------------------------------
-void
-DWARFDebugInfoEntry::BuildAddressRangeTable
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- DWARFDebugAranges* debug_aranges
-) const
-{
- if (m_tag)
- {
- if (m_tag == DW_TAG_subprogram)
- {
- dw_addr_t hi_pc = DW_INVALID_ADDRESS;
- dw_addr_t lo_pc = GetAttributeValueAsUnsigned(dwarf2Data, cu, DW_AT_low_pc, DW_INVALID_ADDRESS);
- if (lo_pc != DW_INVALID_ADDRESS)
- hi_pc = GetAttributeValueAsUnsigned(dwarf2Data, cu, DW_AT_high_pc, DW_INVALID_ADDRESS);
- if (hi_pc != DW_INVALID_ADDRESS)
- {
- /// printf("BuildAddressRangeTable() 0x%8.8x: %30s: [0x%8.8x - 0x%8.8x)\n", m_offset, DW_TAG_value_to_name(tag), lo_pc, hi_pc);
- debug_aranges->AppendRange (cu->GetOffset(), lo_pc, hi_pc);
- }
- }
-
-
- const DWARFDebugInfoEntry* child = GetFirstChild();
- while (child)
- {
- child->BuildAddressRangeTable(dwarf2Data, cu, debug_aranges);
- child = child->GetSibling();
- }
- }
-}
-
-//----------------------------------------------------------------------
-// BuildFunctionAddressRangeTable
-//
-// This function is very similar to the BuildAddressRangeTable function
-// except that the actual DIE offset for the function is placed in the
-// table instead of the compile unit offset (which is the way the
-// standard .debug_aranges section does it).
-//----------------------------------------------------------------------
-void
-DWARFDebugInfoEntry::BuildFunctionAddressRangeTable
-(
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- DWARFDebugAranges* debug_aranges
-) const
-{
- if (m_tag)
- {
- if (m_tag == DW_TAG_subprogram)
- {
- dw_addr_t hi_pc = DW_INVALID_ADDRESS;
- dw_addr_t lo_pc = GetAttributeValueAsUnsigned(dwarf2Data, cu, DW_AT_low_pc, DW_INVALID_ADDRESS);
- if (lo_pc != DW_INVALID_ADDRESS)
- hi_pc = GetAttributeValueAsUnsigned(dwarf2Data, cu, DW_AT_high_pc, DW_INVALID_ADDRESS);
- if (hi_pc != DW_INVALID_ADDRESS)
- {
- // printf("BuildAddressRangeTable() 0x%8.8x: [0x%16.16llx - 0x%16.16llx)\n", m_offset, lo_pc, hi_pc); // DEBUG ONLY
- debug_aranges->AppendRange (GetOffset(), lo_pc, hi_pc);
- }
- }
-
- const DWARFDebugInfoEntry* child = GetFirstChild();
- while (child)
- {
- child->BuildFunctionAddressRangeTable(dwarf2Data, cu, debug_aranges);
- child = child->GetSibling();
- }
- }
-}
-
-void
-DWARFDebugInfoEntry::GetDeclContextDIEs (SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu,
- DWARFDIECollection &decl_context_dies) const
-{
- const DWARFDebugInfoEntry *parent_decl_ctx_die = GetParentDeclContextDIE (dwarf2Data, cu);
- if (parent_decl_ctx_die && parent_decl_ctx_die != this)
- {
- decl_context_dies.Append(parent_decl_ctx_die);
- parent_decl_ctx_die->GetDeclContextDIEs (dwarf2Data, cu, decl_context_dies);
- }
-}
-
-void
-DWARFDebugInfoEntry::GetDWARFDeclContext (SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu,
- DWARFDeclContext &dwarf_decl_ctx) const
-{
- const dw_tag_t tag = Tag();
- if (tag != DW_TAG_compile_unit)
- {
- dwarf_decl_ctx.AppendDeclContext(tag, GetName(dwarf2Data, cu));
- const DWARFDebugInfoEntry *parent_decl_ctx_die = GetParentDeclContextDIE (dwarf2Data, cu);
- if (parent_decl_ctx_die && parent_decl_ctx_die != this)
- {
- if (parent_decl_ctx_die->Tag() != DW_TAG_compile_unit)
- parent_decl_ctx_die->GetDWARFDeclContext (dwarf2Data, cu, dwarf_decl_ctx);
- }
- }
-}
-
-
-bool
-DWARFDebugInfoEntry::MatchesDWARFDeclContext (SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu,
- const DWARFDeclContext &dwarf_decl_ctx) const
-{
-
- DWARFDeclContext this_dwarf_decl_ctx;
- GetDWARFDeclContext (dwarf2Data, cu, this_dwarf_decl_ctx);
- return this_dwarf_decl_ctx == dwarf_decl_ctx;
-}
-
-const DWARFDebugInfoEntry *
-DWARFDebugInfoEntry::GetParentDeclContextDIE (SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu) const
-{
- DWARFDebugInfoEntry::Attributes attributes;
- GetAttributes(dwarf2Data, cu, NULL, attributes);
- return GetParentDeclContextDIE (dwarf2Data, cu, attributes);
-}
-
-const DWARFDebugInfoEntry *
-DWARFDebugInfoEntry::GetParentDeclContextDIE (SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu,
- const DWARFDebugInfoEntry::Attributes& attributes) const
-{
- const DWARFDebugInfoEntry * die = this;
-
- while (die != NULL)
- {
- // If this is the original DIE that we are searching for a declaration
- // for, then don't look in the cache as we don't want our own decl
- // context to be our decl context...
- if (die != this)
- {
- switch (die->Tag())
- {
- case DW_TAG_compile_unit:
- case DW_TAG_namespace:
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- case DW_TAG_class_type:
- return die;
-
- default:
- break;
- }
- }
-
- dw_offset_t die_offset;
-
- die_offset = attributes.FormValueAsUnsigned(dwarf2Data, DW_AT_specification, DW_INVALID_OFFSET);
- if (die_offset != DW_INVALID_OFFSET)
- {
- const DWARFDebugInfoEntry *spec_die = cu->GetDIEPtr (die_offset);
- if (spec_die)
- {
- const DWARFDebugInfoEntry *spec_die_decl_ctx_die = spec_die->GetParentDeclContextDIE (dwarf2Data, cu);
- if (spec_die_decl_ctx_die)
- return spec_die_decl_ctx_die;
- }
- }
-
- die_offset = attributes.FormValueAsUnsigned(dwarf2Data, DW_AT_abstract_origin, DW_INVALID_OFFSET);
- if (die_offset != DW_INVALID_OFFSET)
- {
- const DWARFDebugInfoEntry *abs_die = cu->GetDIEPtr (die_offset);
- if (abs_die)
- {
- const DWARFDebugInfoEntry *abs_die_decl_ctx_die = abs_die->GetParentDeclContextDIE (dwarf2Data, cu);
- if (abs_die_decl_ctx_die)
- return abs_die_decl_ctx_die;
- }
- }
-
- die = die->GetParent();
- }
- return NULL;
-}
-
-
-const char *
-DWARFDebugInfoEntry::GetQualifiedName (SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu,
- std::string &storage) const
-{
- DWARFDebugInfoEntry::Attributes attributes;
- GetAttributes(dwarf2Data, cu, NULL, attributes);
- return GetQualifiedName (dwarf2Data, cu, attributes, storage);
-}
-
-const char*
-DWARFDebugInfoEntry::GetQualifiedName (SymbolFileDWARF* dwarf2Data,
- DWARFCompileUnit* cu,
- const DWARFDebugInfoEntry::Attributes& attributes,
- std::string &storage) const
-{
-
- const char *name = GetName (dwarf2Data, cu);
-
- if (name)
- {
- const DWARFDebugInfoEntry *parent_decl_ctx_die = GetParentDeclContextDIE (dwarf2Data, cu);
- storage.clear();
- // TODO: change this to get the correct decl context parent....
- while (parent_decl_ctx_die)
- {
- const dw_tag_t parent_tag = parent_decl_ctx_die->Tag();
- switch (parent_tag)
- {
- case DW_TAG_namespace:
- {
- const char *namespace_name = parent_decl_ctx_die->GetName (dwarf2Data, cu);
- if (namespace_name)
- {
- storage.insert (0, "::");
- storage.insert (0, namespace_name);
- }
- else
- {
- storage.insert (0, "(anonymous namespace)::");
- }
- parent_decl_ctx_die = parent_decl_ctx_die->GetParentDeclContextDIE(dwarf2Data, cu);
- }
- break;
-
- case DW_TAG_class_type:
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- {
- const char *class_union_struct_name = parent_decl_ctx_die->GetName (dwarf2Data, cu);
-
- if (class_union_struct_name)
- {
- storage.insert (0, "::");
- storage.insert (0, class_union_struct_name);
- }
- parent_decl_ctx_die = parent_decl_ctx_die->GetParentDeclContextDIE(dwarf2Data, cu);
- }
- break;
-
- default:
- parent_decl_ctx_die = NULL;
- break;
- }
- }
-
- if (storage.empty())
- storage.append ("::");
-
- storage.append (name);
- }
- if (storage.empty())
- return NULL;
- return storage.c_str();
-}
-
-
-//----------------------------------------------------------------------
-// LookupAddress
-//----------------------------------------------------------------------
-bool
-DWARFDebugInfoEntry::LookupAddress
-(
- const dw_addr_t address,
- SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit* cu,
- DWARFDebugInfoEntry** function_die,
- DWARFDebugInfoEntry** block_die
-)
-{
- bool found_address = false;
- if (m_tag)
- {
- bool check_children = false;
- bool match_addr_range = false;
- // printf("0x%8.8x: %30s: address = 0x%8.8x - ", m_offset, DW_TAG_value_to_name(tag), address);
- switch (m_tag)
- {
- case DW_TAG_array_type : break;
- case DW_TAG_class_type : check_children = true; break;
- case DW_TAG_entry_point : break;
- case DW_TAG_enumeration_type : break;
- case DW_TAG_formal_parameter : break;
- case DW_TAG_imported_declaration : break;
- case DW_TAG_label : break;
- case DW_TAG_lexical_block : check_children = true; match_addr_range = true; break;
- case DW_TAG_member : break;
- case DW_TAG_pointer_type : break;
- case DW_TAG_reference_type : break;
- case DW_TAG_compile_unit : match_addr_range = true; break;
- case DW_TAG_string_type : break;
- case DW_TAG_structure_type : check_children = true; break;
- case DW_TAG_subroutine_type : break;
- case DW_TAG_typedef : break;
- case DW_TAG_union_type : break;
- case DW_TAG_unspecified_parameters : break;
- case DW_TAG_variant : break;
- case DW_TAG_common_block : check_children = true; break;
- case DW_TAG_common_inclusion : break;
- case DW_TAG_inheritance : break;
- case DW_TAG_inlined_subroutine : check_children = true; match_addr_range = true; break;
- case DW_TAG_module : match_addr_range = true; break;
- case DW_TAG_ptr_to_member_type : break;
- case DW_TAG_set_type : break;
- case DW_TAG_subrange_type : break;
- case DW_TAG_with_stmt : break;
- case DW_TAG_access_declaration : break;
- case DW_TAG_base_type : break;
- case DW_TAG_catch_block : match_addr_range = true; break;
- case DW_TAG_const_type : break;
- case DW_TAG_constant : break;
- case DW_TAG_enumerator : break;
- case DW_TAG_file_type : break;
- case DW_TAG_friend : break;
- case DW_TAG_namelist : break;
- case DW_TAG_namelist_item : break;
- case DW_TAG_packed_type : break;
- case DW_TAG_subprogram : match_addr_range = true; break;
- case DW_TAG_template_type_parameter : break;
- case DW_TAG_template_value_parameter : break;
- case DW_TAG_thrown_type : break;
- case DW_TAG_try_block : match_addr_range = true; break;
- case DW_TAG_variant_part : break;
- case DW_TAG_variable : break;
- case DW_TAG_volatile_type : break;
- case DW_TAG_dwarf_procedure : break;
- case DW_TAG_restrict_type : break;
- case DW_TAG_interface_type : break;
- case DW_TAG_namespace : check_children = true; break;
- case DW_TAG_imported_module : break;
- case DW_TAG_unspecified_type : break;
- case DW_TAG_partial_unit : break;
- case DW_TAG_imported_unit : break;
- case DW_TAG_shared_type : break;
- default: break;
- }
-
- if (match_addr_range)
- {
- dw_addr_t lo_pc = GetAttributeValueAsUnsigned(dwarf2Data, cu, DW_AT_low_pc, DW_INVALID_ADDRESS);
- if (lo_pc != DW_INVALID_ADDRESS)
- {
- dw_addr_t hi_pc = GetAttributeValueAsUnsigned(dwarf2Data, cu, DW_AT_high_pc, DW_INVALID_ADDRESS);
- if (hi_pc != DW_INVALID_ADDRESS)
- {
- // printf("\n0x%8.8x: %30s: address = 0x%8.8x [0x%8.8x - 0x%8.8x) ", m_offset, DW_TAG_value_to_name(tag), address, lo_pc, hi_pc);
- if ((lo_pc <= address) && (address < hi_pc))
- {
- found_address = true;
- // puts("***MATCH***");
- switch (m_tag)
- {
- case DW_TAG_compile_unit: // File
- check_children = ((function_die != NULL) || (block_die != NULL));
- break;
-
- case DW_TAG_subprogram: // Function
- if (function_die)
- *function_die = this;
- check_children = (block_die != NULL);
- break;
-
- case DW_TAG_inlined_subroutine: // Inlined Function
- case DW_TAG_lexical_block: // Block { } in code
- if (block_die)
- {
- *block_die = this;
- check_children = true;
- }
- break;
-
- default:
- check_children = true;
- break;
- }
- }
- }
- else
- { // compile units may not have a valid high/low pc when there
- // are address gaps in subroutines so we must always search
- // if there is no valid high and low PC
- check_children = (m_tag == DW_TAG_compile_unit) && ((function_die != NULL) || (block_die != NULL));
- }
- }
- else
- {
- dw_offset_t debug_ranges_offset = GetAttributeValueAsUnsigned(dwarf2Data, cu, DW_AT_ranges, DW_INVALID_OFFSET);
- if (debug_ranges_offset != DW_INVALID_OFFSET)
- {
- DWARFDebugRanges::RangeList ranges;
- DWARFDebugRanges* debug_ranges = dwarf2Data->DebugRanges();
- debug_ranges->FindRanges(debug_ranges_offset, ranges);
- // All DW_AT_ranges are relative to the base address of the
- // compile unit. We add the compile unit base address to make
- // sure all the addresses are properly fixed up.
- ranges.Slide (cu->GetBaseAddress());
- if (ranges.FindEntryThatContains(address))
- {
- found_address = true;
- // puts("***MATCH***");
- switch (m_tag)
- {
- case DW_TAG_compile_unit: // File
- check_children = ((function_die != NULL) || (block_die != NULL));
- break;
-
- case DW_TAG_subprogram: // Function
- if (function_die)
- *function_die = this;
- check_children = (block_die != NULL);
- break;
-
- case DW_TAG_inlined_subroutine: // Inlined Function
- case DW_TAG_lexical_block: // Block { } in code
- if (block_die)
- {
- *block_die = this;
- check_children = true;
- }
- break;
-
- default:
- check_children = true;
- break;
- }
- }
- else
- {
- check_children = false;
- }
- }
- }
- }
-
-
- if (check_children)
- {
- // printf("checking children\n");
- DWARFDebugInfoEntry* child = GetFirstChild();
- while (child)
- {
- if (child->LookupAddress(address, dwarf2Data, cu, function_die, block_die))
- return true;
- child = child->GetSibling();
- }
- }
- }
- return found_address;
-}
-
-const DWARFAbbreviationDeclaration*
-DWARFDebugInfoEntry::GetAbbreviationDeclarationPtr (SymbolFileDWARF* dwarf2Data,
- const DWARFCompileUnit *cu,
- dw_offset_t &offset) const
-{
- offset = GetOffset();
-
- const DWARFAbbreviationDeclaration* abbrev_decl = cu->GetAbbreviations()->GetAbbreviationDeclaration (m_abbr_idx);
- if (abbrev_decl)
- {
- // Make sure the abbreviation code still matches. If it doesn't and
- // the DWARF data was mmap'ed, the backing file might have been modified
- // which is bad news.
- const uint64_t abbrev_code = dwarf2Data->get_debug_info_data().GetULEB128 (&offset);
-
- if (abbrev_decl->Code() == abbrev_code)
- return abbrev_decl;
-
- dwarf2Data->GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("0x%8.8x: the DWARF debug information has been modified (abbrev code was %u, and is now %u)",
- GetOffset(),
- (uint32_t)abbrev_decl->Code(),
- (uint32_t)abbrev_code);
- }
- offset = DW_INVALID_OFFSET;
- return NULL;
-}
-
-
-bool
-DWARFDebugInfoEntry::OffsetLessThan (const DWARFDebugInfoEntry& a, const DWARFDebugInfoEntry& b)
-{
- return a.GetOffset() < b.GetOffset();
-}
-
-void
-DWARFDebugInfoEntry::DumpDIECollection (Stream &strm, DWARFDebugInfoEntry::collection &die_collection)
-{
- DWARFDebugInfoEntry::const_iterator pos;
- DWARFDebugInfoEntry::const_iterator end = die_collection.end();
- strm.PutCString("\noffset parent sibling child\n");
- strm.PutCString("-------- -------- -------- --------\n");
- for (pos = die_collection.begin(); pos != end; ++pos)
- {
- const DWARFDebugInfoEntry& die_ref = *pos;
- const DWARFDebugInfoEntry* p = die_ref.GetParent();
- const DWARFDebugInfoEntry* s = die_ref.GetSibling();
- const DWARFDebugInfoEntry* c = die_ref.GetFirstChild();
- strm.Printf("%.8x: %.8x %.8x %.8x 0x%4.4x %s%s\n",
- die_ref.GetOffset(),
- p ? p->GetOffset() : 0,
- s ? s->GetOffset() : 0,
- c ? c->GetOffset() : 0,
- die_ref.Tag(),
- DW_TAG_value_to_name(die_ref.Tag()),
- die_ref.HasChildren() ? " *" : "");
- }
-}
-
-
Removed: lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp.orig
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp.orig?rev=167219&view=auto
==============================================================================
--- lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp.orig (original)
+++ lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp.orig (removed)
@@ -1,7304 +0,0 @@
-//===-- SymbolFileDWARF.cpp ------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "SymbolFileDWARF.h"
-
-// Other libraries and framework includes
-#include "clang/AST/ASTConsumer.h"
-#include "clang/AST/ASTContext.h"
-#include "clang/AST/Decl.h"
-#include "clang/AST/DeclGroup.h"
-#include "clang/AST/DeclObjC.h"
-#include "clang/AST/DeclTemplate.h"
-#include "clang/Basic/Builtins.h"
-#include "clang/Basic/IdentifierTable.h"
-#include "clang/Basic/LangOptions.h"
-#include "clang/Basic/SourceManager.h"
-#include "clang/Basic/TargetInfo.h"
-#include "clang/Basic/Specifiers.h"
-#include "clang/Sema/DeclSpec.h"
-
-#include "llvm/Support/Casting.h"
-
-#include "lldb/Core/Module.h"
-#include "lldb/Core/PluginManager.h"
-#include "lldb/Core/RegularExpression.h"
-#include "lldb/Core/Scalar.h"
-#include "lldb/Core/Section.h"
-#include "lldb/Core/StreamFile.h"
-#include "lldb/Core/StreamString.h"
-#include "lldb/Core/Timer.h"
-#include "lldb/Core/Value.h"
-
-#include "lldb/Host/Host.h"
-
-#include "lldb/Symbol/Block.h"
-#include "lldb/Symbol/ClangExternalASTSourceCallbacks.h"
-#include "lldb/Symbol/CompileUnit.h"
-#include "lldb/Symbol/LineTable.h"
-#include "lldb/Symbol/ObjectFile.h"
-#include "lldb/Symbol/SymbolVendor.h"
-#include "lldb/Symbol/VariableList.h"
-
-#include "lldb/Target/ObjCLanguageRuntime.h"
-#include "lldb/Target/CPPLanguageRuntime.h"
-
-#include "DWARFCompileUnit.h"
-#include "DWARFDebugAbbrev.h"
-#include "DWARFDebugAranges.h"
-#include "DWARFDebugInfo.h"
-#include "DWARFDebugInfoEntry.h"
-#include "DWARFDebugLine.h"
-#include "DWARFDebugPubnames.h"
-#include "DWARFDebugRanges.h"
-#include "DWARFDeclContext.h"
-#include "DWARFDIECollection.h"
-#include "DWARFFormValue.h"
-#include "DWARFLocationList.h"
-#include "LogChannelDWARF.h"
-#include "SymbolFileDWARFDebugMap.h"
-
-#include <map>
-
-//#define ENABLE_DEBUG_PRINTF // COMMENT OUT THIS LINE PRIOR TO CHECKIN
-
-#ifdef ENABLE_DEBUG_PRINTF
-#include <stdio.h>
-#define DEBUG_PRINTF(fmt, ...) printf(fmt, ## __VA_ARGS__)
-#else
-#define DEBUG_PRINTF(fmt, ...)
-#endif
-
-#define DIE_IS_BEING_PARSED ((lldb_private::Type*)1)
-
-using namespace lldb;
-using namespace lldb_private;
-
-//static inline bool
-//child_requires_parent_class_union_or_struct_to_be_completed (dw_tag_t tag)
-//{
-// switch (tag)
-// {
-// default:
-// break;
-// case DW_TAG_subprogram:
-// case DW_TAG_inlined_subroutine:
-// case DW_TAG_class_type:
-// case DW_TAG_structure_type:
-// case DW_TAG_union_type:
-// return true;
-// }
-// return false;
-//}
-//
-static AccessType
-DW_ACCESS_to_AccessType (uint32_t dwarf_accessibility)
-{
- switch (dwarf_accessibility)
- {
- case DW_ACCESS_public: return eAccessPublic;
- case DW_ACCESS_private: return eAccessPrivate;
- case DW_ACCESS_protected: return eAccessProtected;
- default: break;
- }
- return eAccessNone;
-}
-
-#if defined(LLDB_CONFIGURATION_DEBUG) or defined(LLDB_CONFIGURATION_RELEASE)
-
-class DIEStack
-{
-public:
-
- void Push (DWARFCompileUnit *cu, const DWARFDebugInfoEntry *die)
- {
- m_dies.push_back (DIEInfo(cu, die));
- }
-
-
- void LogDIEs (Log *log, SymbolFileDWARF *dwarf)
- {
- StreamString log_strm;
- const size_t n = m_dies.size();
- log_strm.Printf("DIEStack[%llu]:\n", (uint64_t)n);
- for (size_t i=0; i<n; i++)
- {
- DWARFCompileUnit *cu = m_dies[i].cu;
- const DWARFDebugInfoEntry *die = m_dies[i].die;
- std::string qualified_name;
- die->GetQualifiedName(dwarf, cu, qualified_name);
- log_strm.Printf ("[%llu] 0x%8.8x: %s name='%s'\n",
- (uint64_t)i,
- die->GetOffset(),
- DW_TAG_value_to_name(die->Tag()),
- qualified_name.c_str());
- }
- log->PutCString(log_strm.GetData());
- }
- void Pop ()
- {
- m_dies.pop_back();
- }
-
- class ScopedPopper
- {
- public:
- ScopedPopper (DIEStack &die_stack) :
- m_die_stack (die_stack),
- m_valid (false)
- {
- }
-
- void
- Push (DWARFCompileUnit *cu, const DWARFDebugInfoEntry *die)
- {
- m_valid = true;
- m_die_stack.Push (cu, die);
- }
-
- ~ScopedPopper ()
- {
- if (m_valid)
- m_die_stack.Pop();
- }
-
-
-
- protected:
- DIEStack &m_die_stack;
- bool m_valid;
- };
-
-protected:
- struct DIEInfo {
- DIEInfo (DWARFCompileUnit *c, const DWARFDebugInfoEntry *d) :
- cu(c),
- die(d)
- {
- }
- DWARFCompileUnit *cu;
- const DWARFDebugInfoEntry *die;
- };
- typedef std::vector<DIEInfo> Stack;
- Stack m_dies;
-};
-#endif
-
-void
-SymbolFileDWARF::Initialize()
-{
- LogChannelDWARF::Initialize();
- PluginManager::RegisterPlugin (GetPluginNameStatic(),
- GetPluginDescriptionStatic(),
- CreateInstance);
-}
-
-void
-SymbolFileDWARF::Terminate()
-{
- PluginManager::UnregisterPlugin (CreateInstance);
- LogChannelDWARF::Initialize();
-}
-
-
-const char *
-SymbolFileDWARF::GetPluginNameStatic()
-{
- return "dwarf";
-}
-
-const char *
-SymbolFileDWARF::GetPluginDescriptionStatic()
-{
- return "DWARF and DWARF3 debug symbol file reader.";
-}
-
-
-SymbolFile*
-SymbolFileDWARF::CreateInstance (ObjectFile* obj_file)
-{
- return new SymbolFileDWARF(obj_file);
-}
-
-TypeList *
-SymbolFileDWARF::GetTypeList ()
-{
- if (GetDebugMapSymfile ())
- return m_debug_map_symfile->GetTypeList();
- return m_obj_file->GetModule()->GetTypeList();
-
-}
-
-//----------------------------------------------------------------------
-// Gets the first parent that is a lexical block, function or inlined
-// subroutine, or compile unit.
-//----------------------------------------------------------------------
-static const DWARFDebugInfoEntry *
-GetParentSymbolContextDIE(const DWARFDebugInfoEntry *child_die)
-{
- const DWARFDebugInfoEntry *die;
- for (die = child_die->GetParent(); die != NULL; die = die->GetParent())
- {
- dw_tag_t tag = die->Tag();
-
- switch (tag)
- {
- case DW_TAG_compile_unit:
- case DW_TAG_subprogram:
- case DW_TAG_inlined_subroutine:
- case DW_TAG_lexical_block:
- return die;
- }
- }
- return NULL;
-}
-
-
-SymbolFileDWARF::SymbolFileDWARF(ObjectFile* objfile) :
- SymbolFile (objfile),
- UserID (0), // Used by SymbolFileDWARFDebugMap to when this class parses .o files to contain the .o file index/ID
- m_debug_map_module_wp (),
- m_debug_map_symfile (NULL),
- m_clang_tu_decl (NULL),
- m_flags(),
- m_data_debug_abbrev (),
- m_data_debug_aranges (),
- m_data_debug_frame (),
- m_data_debug_info (),
- m_data_debug_line (),
- m_data_debug_loc (),
- m_data_debug_ranges (),
- m_data_debug_str (),
- m_data_apple_names (),
- m_data_apple_types (),
- m_data_apple_namespaces (),
- m_abbr(),
- m_info(),
- m_line(),
- m_apple_names_ap (),
- m_apple_types_ap (),
- m_apple_namespaces_ap (),
- m_apple_objc_ap (),
- m_function_basename_index(),
- m_function_fullname_index(),
- m_function_method_index(),
- m_function_selector_index(),
- m_objc_class_selectors_index(),
- m_global_index(),
- m_type_index(),
- m_namespace_index(),
- m_indexed (false),
- m_is_external_ast_source (false),
- m_using_apple_tables (false),
- m_supports_DW_AT_APPLE_objc_complete_type (eLazyBoolCalculate),
- m_ranges(),
- m_unique_ast_type_map ()
-{
-}
-
-SymbolFileDWARF::~SymbolFileDWARF()
-{
- if (m_is_external_ast_source)
- {
- ModuleSP module_sp (m_obj_file->GetModule());
- if (module_sp)
- module_sp->GetClangASTContext().RemoveExternalSource ();
- }
-}
-
-static const ConstString &
-GetDWARFMachOSegmentName ()
-{
- static ConstString g_dwarf_section_name ("__DWARF");
- return g_dwarf_section_name;
-}
-
-UniqueDWARFASTTypeMap &
-SymbolFileDWARF::GetUniqueDWARFASTTypeMap ()
-{
- if (GetDebugMapSymfile ())
- return m_debug_map_symfile->GetUniqueDWARFASTTypeMap ();
- return m_unique_ast_type_map;
-}
-
-ClangASTContext &
-SymbolFileDWARF::GetClangASTContext ()
-{
- if (GetDebugMapSymfile ())
- return m_debug_map_symfile->GetClangASTContext ();
-
- ClangASTContext &ast = m_obj_file->GetModule()->GetClangASTContext();
- if (!m_is_external_ast_source)
- {
- m_is_external_ast_source = true;
- llvm::OwningPtr<clang::ExternalASTSource> ast_source_ap (
- new ClangExternalASTSourceCallbacks (SymbolFileDWARF::CompleteTagDecl,
- SymbolFileDWARF::CompleteObjCInterfaceDecl,
- SymbolFileDWARF::FindExternalVisibleDeclsByName,
- SymbolFileDWARF::LayoutRecordType,
- this));
- ast.SetExternalSource (ast_source_ap);
- }
- return ast;
-}
-
-void
-SymbolFileDWARF::InitializeObject()
-{
- // Install our external AST source callbacks so we can complete Clang types.
- ModuleSP module_sp (m_obj_file->GetModule());
- if (module_sp)
- {
- const SectionList *section_list = m_obj_file->GetSectionList();
-
- const Section* section = section_list->FindSectionByName(GetDWARFMachOSegmentName ()).get();
-
- // Memory map the DWARF mach-o segment so we have everything mmap'ed
- // to keep our heap memory usage down.
- if (section)
- m_obj_file->MemoryMapSectionData(section, m_dwarf_data);
- }
- get_apple_names_data();
- if (m_data_apple_names.GetByteSize() > 0)
- {
- m_apple_names_ap.reset (new DWARFMappedHash::MemoryTable (m_data_apple_names, get_debug_str_data(), ".apple_names"));
- if (m_apple_names_ap->IsValid())
- m_using_apple_tables = true;
- else
- m_apple_names_ap.reset();
- }
- get_apple_types_data();
- if (m_data_apple_types.GetByteSize() > 0)
- {
- m_apple_types_ap.reset (new DWARFMappedHash::MemoryTable (m_data_apple_types, get_debug_str_data(), ".apple_types"));
- if (m_apple_types_ap->IsValid())
- m_using_apple_tables = true;
- else
- m_apple_types_ap.reset();
- }
-
- get_apple_namespaces_data();
- if (m_data_apple_namespaces.GetByteSize() > 0)
- {
- m_apple_namespaces_ap.reset (new DWARFMappedHash::MemoryTable (m_data_apple_namespaces, get_debug_str_data(), ".apple_namespaces"));
- if (m_apple_namespaces_ap->IsValid())
- m_using_apple_tables = true;
- else
- m_apple_namespaces_ap.reset();
- }
-
- get_apple_objc_data();
- if (m_data_apple_objc.GetByteSize() > 0)
- {
- m_apple_objc_ap.reset (new DWARFMappedHash::MemoryTable (m_data_apple_objc, get_debug_str_data(), ".apple_objc"));
- if (m_apple_objc_ap->IsValid())
- m_using_apple_tables = true;
- else
- m_apple_objc_ap.reset();
- }
-}
-
-bool
-SymbolFileDWARF::SupportedVersion(uint16_t version)
-{
- return version == 2 || version == 3;
-}
-
-uint32_t
-SymbolFileDWARF::CalculateAbilities ()
-{
- uint32_t abilities = 0;
- if (m_obj_file != NULL)
- {
- const Section* section = NULL;
- const SectionList *section_list = m_obj_file->GetSectionList();
- if (section_list == NULL)
- return 0;
-
- uint64_t debug_abbrev_file_size = 0;
- uint64_t debug_info_file_size = 0;
- uint64_t debug_line_file_size = 0;
-
- section = section_list->FindSectionByName(GetDWARFMachOSegmentName ()).get();
-
- if (section)
- section_list = §ion->GetChildren ();
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugInfo, true).get();
- if (section != NULL)
- {
- debug_info_file_size = section->GetFileSize();
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugAbbrev, true).get();
- if (section)
- debug_abbrev_file_size = section->GetFileSize();
- else
- m_flags.Set (flagsGotDebugAbbrevData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugAranges, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugArangesData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugFrame, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugFrameData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugLine, true).get();
- if (section)
- debug_line_file_size = section->GetFileSize();
- else
- m_flags.Set (flagsGotDebugLineData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugLoc, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugLocData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugMacInfo, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugMacInfoData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugPubNames, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugPubNamesData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugPubTypes, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugPubTypesData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugRanges, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugRangesData);
-
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugStr, true).get();
- if (!section)
- m_flags.Set (flagsGotDebugStrData);
- }
- else
- {
- const char *symfile_dir_cstr = m_obj_file->GetFileSpec().GetDirectory().GetCString();
- if (symfile_dir_cstr)
- {
- if (strcasestr(symfile_dir_cstr, ".dsym"))
- {
- if (m_obj_file->GetType() == ObjectFile::eTypeDebugInfo)
- {
- // We have a dSYM file that didn't have a any debug info.
- // If the string table has a size of 1, then it was made from
- // an executable with no debug info, or from an executable that
- // was stripped.
- section = section_list->FindSectionByType (eSectionTypeDWARFDebugStr, true).get();
- if (section && section->GetFileSize() == 1)
- {
- m_obj_file->GetModule()->ReportWarning ("empty dSYM file detected, dSYM was created with an executable with no debug info.");
- }
- }
- }
- }
- }
-
- if (debug_abbrev_file_size > 0 && debug_info_file_size > 0)
- abilities |= CompileUnits | Functions | Blocks | GlobalVariables | LocalVariables | VariableTypes;
-
- if (debug_line_file_size > 0)
- abilities |= LineTables;
- }
- return abilities;
-}
-
-const DataExtractor&
-SymbolFileDWARF::GetCachedSectionData (uint32_t got_flag, SectionType sect_type, DataExtractor &data)
-{
- if (m_flags.IsClear (got_flag))
- {
- m_flags.Set (got_flag);
- const SectionList *section_list = m_obj_file->GetSectionList();
- if (section_list)
- {
- SectionSP section_sp (section_list->FindSectionByType(sect_type, true));
- if (section_sp)
- {
- // See if we memory mapped the DWARF segment?
- if (m_dwarf_data.GetByteSize())
- {
- data.SetData(m_dwarf_data, section_sp->GetOffset (), section_sp->GetFileSize());
- }
- else
- {
- if (m_obj_file->ReadSectionData (section_sp.get(), data) == 0)
- data.Clear();
- }
- }
- }
- }
- return data;
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_abbrev_data()
-{
- return GetCachedSectionData (flagsGotDebugAbbrevData, eSectionTypeDWARFDebugAbbrev, m_data_debug_abbrev);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_aranges_data()
-{
- return GetCachedSectionData (flagsGotDebugArangesData, eSectionTypeDWARFDebugAranges, m_data_debug_aranges);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_frame_data()
-{
- return GetCachedSectionData (flagsGotDebugFrameData, eSectionTypeDWARFDebugFrame, m_data_debug_frame);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_info_data()
-{
- return GetCachedSectionData (flagsGotDebugInfoData, eSectionTypeDWARFDebugInfo, m_data_debug_info);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_line_data()
-{
- return GetCachedSectionData (flagsGotDebugLineData, eSectionTypeDWARFDebugLine, m_data_debug_line);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_loc_data()
-{
- return GetCachedSectionData (flagsGotDebugLocData, eSectionTypeDWARFDebugLoc, m_data_debug_loc);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_ranges_data()
-{
- return GetCachedSectionData (flagsGotDebugRangesData, eSectionTypeDWARFDebugRanges, m_data_debug_ranges);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_debug_str_data()
-{
- return GetCachedSectionData (flagsGotDebugStrData, eSectionTypeDWARFDebugStr, m_data_debug_str);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_apple_names_data()
-{
- return GetCachedSectionData (flagsGotAppleNamesData, eSectionTypeDWARFAppleNames, m_data_apple_names);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_apple_types_data()
-{
- return GetCachedSectionData (flagsGotAppleTypesData, eSectionTypeDWARFAppleTypes, m_data_apple_types);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_apple_namespaces_data()
-{
- return GetCachedSectionData (flagsGotAppleNamespacesData, eSectionTypeDWARFAppleNamespaces, m_data_apple_namespaces);
-}
-
-const DataExtractor&
-SymbolFileDWARF::get_apple_objc_data()
-{
- return GetCachedSectionData (flagsGotAppleObjCData, eSectionTypeDWARFAppleObjC, m_data_apple_objc);
-}
-
-
-DWARFDebugAbbrev*
-SymbolFileDWARF::DebugAbbrev()
-{
- if (m_abbr.get() == NULL)
- {
- const DataExtractor &debug_abbrev_data = get_debug_abbrev_data();
- if (debug_abbrev_data.GetByteSize() > 0)
- {
- m_abbr.reset(new DWARFDebugAbbrev());
- if (m_abbr.get())
- m_abbr->Parse(debug_abbrev_data);
- }
- }
- return m_abbr.get();
-}
-
-const DWARFDebugAbbrev*
-SymbolFileDWARF::DebugAbbrev() const
-{
- return m_abbr.get();
-}
-
-
-DWARFDebugInfo*
-SymbolFileDWARF::DebugInfo()
-{
- if (m_info.get() == NULL)
- {
- Timer scoped_timer(__PRETTY_FUNCTION__, "%s this = %p", __PRETTY_FUNCTION__, this);
- if (get_debug_info_data().GetByteSize() > 0)
- {
- m_info.reset(new DWARFDebugInfo());
- if (m_info.get())
- {
- m_info->SetDwarfData(this);
- }
- }
- }
- return m_info.get();
-}
-
-const DWARFDebugInfo*
-SymbolFileDWARF::DebugInfo() const
-{
- return m_info.get();
-}
-
-DWARFCompileUnit*
-SymbolFileDWARF::GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit)
-{
- DWARFDebugInfo* info = DebugInfo();
- if (info)
- {
- if (GetDebugMapSymfile ())
- {
- // The debug map symbol file made the compile units for this DWARF
- // file which is .o file with DWARF in it, and we should have
- // only 1 compile unit which is at offset zero in the DWARF.
- // TODO: modify to support LTO .o files where each .o file might
- // have multiple DW_TAG_compile_unit tags.
- return info->GetCompileUnit(0).get();
- }
- else
- {
- // Just a normal DWARF file whose user ID for the compile unit is
- // the DWARF offset itself
- return info->GetCompileUnit((dw_offset_t)comp_unit->GetID()).get();
- }
- }
- return NULL;
-}
-
-
-DWARFDebugRanges*
-SymbolFileDWARF::DebugRanges()
-{
- if (m_ranges.get() == NULL)
- {
- Timer scoped_timer(__PRETTY_FUNCTION__, "%s this = %p", __PRETTY_FUNCTION__, this);
- if (get_debug_ranges_data().GetByteSize() > 0)
- {
- m_ranges.reset(new DWARFDebugRanges());
- if (m_ranges.get())
- m_ranges->Extract(this);
- }
- }
- return m_ranges.get();
-}
-
-const DWARFDebugRanges*
-SymbolFileDWARF::DebugRanges() const
-{
- return m_ranges.get();
-}
-
-lldb::CompUnitSP
-SymbolFileDWARF::ParseCompileUnit (DWARFCompileUnit* dwarf_cu, uint32_t cu_idx)
-{
- CompUnitSP cu_sp;
- if (dwarf_cu)
- {
- CompileUnit *comp_unit = (CompileUnit*)dwarf_cu->GetUserData();
- if (comp_unit)
- {
- // We already parsed this compile unit, had out a shared pointer to it
- cu_sp = comp_unit->shared_from_this();
- }
- else
- {
- if (GetDebugMapSymfile ())
- {
- // Let the debug map create the compile unit
- cu_sp = m_debug_map_symfile->GetCompileUnit(this);
- dwarf_cu->SetUserData(cu_sp.get());
- }
- else
- {
- ModuleSP module_sp (m_obj_file->GetModule());
- if (module_sp)
- {
- const DWARFDebugInfoEntry * cu_die = dwarf_cu->GetCompileUnitDIEOnly ();
- if (cu_die)
- {
- const char * cu_die_name = cu_die->GetName(this, dwarf_cu);
- const char * cu_comp_dir = cu_die->GetAttributeValueAsString(this, dwarf_cu, DW_AT_comp_dir, NULL);
- LanguageType cu_language = (LanguageType)cu_die->GetAttributeValueAsUnsigned(this, dwarf_cu, DW_AT_language, 0);
- if (cu_die_name)
- {
- std::string ramapped_file;
- FileSpec cu_file_spec;
-
- if (cu_die_name[0] == '/' || cu_comp_dir == NULL || cu_comp_dir[0] == '\0')
- {
- // If we have a full path to the compile unit, we don't need to resolve
- // the file. This can be expensive e.g. when the source files are NFS mounted.
- if (module_sp->RemapSourceFile(cu_die_name, ramapped_file))
- cu_file_spec.SetFile (ramapped_file.c_str(), false);
- else
- cu_file_spec.SetFile (cu_die_name, false);
- }
- else
- {
- std::string fullpath(cu_comp_dir);
- if (*fullpath.rbegin() != '/')
- fullpath += '/';
- fullpath += cu_die_name;
- if (module_sp->RemapSourceFile (fullpath.c_str(), ramapped_file))
- cu_file_spec.SetFile (ramapped_file.c_str(), false);
- else
- cu_file_spec.SetFile (fullpath.c_str(), false);
- }
-
- cu_sp.reset(new CompileUnit (module_sp,
- dwarf_cu,
- cu_file_spec,
- MakeUserID(dwarf_cu->GetOffset()),
- cu_language));
- if (cu_sp)
- {
- dwarf_cu->SetUserData(cu_sp.get());
-
- // Figure out the compile unit index if we weren't given one
- if (cu_idx == UINT32_MAX)
- DebugInfo()->GetCompileUnit(dwarf_cu->GetOffset(), &cu_idx);
-
- m_obj_file->GetModule()->GetSymbolVendor()->SetCompileUnitAtIndex(cu_idx, cu_sp);
- }
- }
- }
- }
- }
- }
- }
- return cu_sp;
-}
-
-uint32_t
-SymbolFileDWARF::GetNumCompileUnits()
-{
- DWARFDebugInfo* info = DebugInfo();
- if (info)
- return info->GetNumCompileUnits();
- return 0;
-}
-
-CompUnitSP
-SymbolFileDWARF::ParseCompileUnitAtIndex(uint32_t cu_idx)
-{
- CompUnitSP cu_sp;
- DWARFDebugInfo* info = DebugInfo();
- if (info)
- {
- DWARFCompileUnit* dwarf_cu = info->GetCompileUnitAtIndex(cu_idx);
- if (dwarf_cu)
- cu_sp = ParseCompileUnit(dwarf_cu, cu_idx);
- }
- return cu_sp;
-}
-
-static void
-AddRangesToBlock (Block& block,
- DWARFDebugRanges::RangeList& ranges,
- addr_t block_base_addr)
-{
- const size_t num_ranges = ranges.GetSize();
- for (size_t i = 0; i<num_ranges; ++i)
- {
- const DWARFDebugRanges::Range &range = ranges.GetEntryRef (i);
- const addr_t range_base = range.GetRangeBase();
- assert (range_base >= block_base_addr);
- block.AddRange(Block::Range (range_base - block_base_addr, range.GetByteSize()));;
- }
- block.FinalizeRanges ();
-}
-
-
-Function *
-SymbolFileDWARF::ParseCompileUnitFunction (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu, const DWARFDebugInfoEntry *die)
-{
- DWARFDebugRanges::RangeList func_ranges;
- const char *name = NULL;
- const char *mangled = NULL;
- int decl_file = 0;
- int decl_line = 0;
- int decl_column = 0;
- int call_file = 0;
- int call_line = 0;
- int call_column = 0;
- DWARFExpression frame_base;
-
- assert (die->Tag() == DW_TAG_subprogram);
-
- if (die->Tag() != DW_TAG_subprogram)
- return NULL;
-
- if (die->GetDIENamesAndRanges (this,
- dwarf_cu,
- name,
- mangled,
- func_ranges,
- decl_file,
- decl_line,
- decl_column,
- call_file,
- call_line,
- call_column,
- &frame_base))
- {
- // Union of all ranges in the function DIE (if the function is discontiguous)
- AddressRange func_range;
- lldb::addr_t lowest_func_addr = func_ranges.GetMinRangeBase (0);
- lldb::addr_t highest_func_addr = func_ranges.GetMaxRangeEnd (0);
- if (lowest_func_addr != LLDB_INVALID_ADDRESS && lowest_func_addr <= highest_func_addr)
- {
- func_range.GetBaseAddress().ResolveAddressUsingFileSections (lowest_func_addr, m_obj_file->GetSectionList());
- if (func_range.GetBaseAddress().IsValid())
- func_range.SetByteSize(highest_func_addr - lowest_func_addr);
- }
-
- if (func_range.GetBaseAddress().IsValid())
- {
- Mangled func_name;
- if (mangled)
- func_name.SetValue(ConstString(mangled), true);
- else if (name)
- func_name.SetValue(ConstString(name), false);
-
- FunctionSP func_sp;
- std::auto_ptr<Declaration> decl_ap;
- if (decl_file != 0 || decl_line != 0 || decl_column != 0)
- decl_ap.reset(new Declaration (sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(decl_file),
- decl_line,
- decl_column));
-
- // Supply the type _only_ if it has already been parsed
- Type *func_type = m_die_to_type.lookup (die);
-
- assert(func_type == NULL || func_type != DIE_IS_BEING_PARSED);
-
- func_range.GetBaseAddress().ResolveLinkedAddress();
-
- const user_id_t func_user_id = MakeUserID(die->GetOffset());
- func_sp.reset(new Function (sc.comp_unit,
- func_user_id, // UserID is the DIE offset
- func_user_id,
- func_name,
- func_type,
- func_range)); // first address range
-
- if (func_sp.get() != NULL)
- {
- if (frame_base.IsValid())
- func_sp->GetFrameBaseExpression() = frame_base;
- sc.comp_unit->AddFunction(func_sp);
- return func_sp.get();
- }
- }
- }
- return NULL;
-}
-
-lldb::LanguageType
-SymbolFileDWARF::ParseCompileUnitLanguage (const SymbolContext& sc)
-{
- assert (sc.comp_unit);
- DWARFCompileUnit* dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
- if (dwarf_cu)
- {
- const DWARFDebugInfoEntry *die = dwarf_cu->GetCompileUnitDIEOnly();
- if (die)
- {
- const uint32_t language = die->GetAttributeValueAsUnsigned(this, dwarf_cu, DW_AT_language, 0);
- if (language)
- return (lldb::LanguageType)language;
- }
- }
- return eLanguageTypeUnknown;
-}
-
-size_t
-SymbolFileDWARF::ParseCompileUnitFunctions(const SymbolContext &sc)
-{
- assert (sc.comp_unit);
- size_t functions_added = 0;
- DWARFCompileUnit* dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
- if (dwarf_cu)
- {
- DWARFDIECollection function_dies;
- const size_t num_functions = dwarf_cu->AppendDIEsWithTag (DW_TAG_subprogram, function_dies);
- size_t func_idx;
- for (func_idx = 0; func_idx < num_functions; ++func_idx)
- {
- const DWARFDebugInfoEntry *die = function_dies.GetDIEPtrAtIndex(func_idx);
- if (sc.comp_unit->FindFunctionByUID (MakeUserID(die->GetOffset())).get() == NULL)
- {
- if (ParseCompileUnitFunction(sc, dwarf_cu, die))
- ++functions_added;
- }
- }
- //FixupTypes();
- }
- return functions_added;
-}
-
-bool
-SymbolFileDWARF::ParseCompileUnitSupportFiles (const SymbolContext& sc, FileSpecList& support_files)
-{
- assert (sc.comp_unit);
- DWARFCompileUnit* dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
- assert (dwarf_cu);
- const DWARFDebugInfoEntry * cu_die = dwarf_cu->GetCompileUnitDIEOnly();
-
- if (cu_die)
- {
- const char * cu_comp_dir = cu_die->GetAttributeValueAsString(this, dwarf_cu, DW_AT_comp_dir, NULL);
- dw_offset_t stmt_list = cu_die->GetAttributeValueAsUnsigned(this, dwarf_cu, DW_AT_stmt_list, DW_INVALID_OFFSET);
-
- // All file indexes in DWARF are one based and a file of index zero is
- // supposed to be the compile unit itself.
- support_files.Append (*sc.comp_unit);
-
- return DWARFDebugLine::ParseSupportFiles(sc.comp_unit->GetModule(), get_debug_line_data(), cu_comp_dir, stmt_list, support_files);
- }
- return false;
-}
-
-struct ParseDWARFLineTableCallbackInfo
-{
- LineTable* line_table;
- const SectionList *section_list;
- lldb::addr_t prev_sect_file_base_addr;
- lldb::addr_t curr_sect_file_base_addr;
- bool is_oso_for_debug_map;
- bool prev_in_final_executable;
- DWARFDebugLine::Row prev_row;
- SectionSP prev_section_sp;
- SectionSP curr_section_sp;
-};
-
-//----------------------------------------------------------------------
-// ParseStatementTableCallback
-//----------------------------------------------------------------------
-static void
-ParseDWARFLineTableCallback(dw_offset_t offset, const DWARFDebugLine::State& state, void* userData)
-{
- LineTable* line_table = ((ParseDWARFLineTableCallbackInfo*)userData)->line_table;
- if (state.row == DWARFDebugLine::State::StartParsingLineTable)
- {
- // Just started parsing the line table
- }
- else if (state.row == DWARFDebugLine::State::DoneParsingLineTable)
- {
- // Done parsing line table, nothing to do for the cleanup
- }
- else
- {
- ParseDWARFLineTableCallbackInfo* info = (ParseDWARFLineTableCallbackInfo*)userData;
- // We have a new row, lets append it
-
- if (info->curr_section_sp.get() == NULL || info->curr_section_sp->ContainsFileAddress(state.address) == false)
- {
- info->prev_section_sp = info->curr_section_sp;
- info->prev_sect_file_base_addr = info->curr_sect_file_base_addr;
- // If this is an end sequence entry, then we subtract one from the
- // address to make sure we get an address that is not the end of
- // a section.
- if (state.end_sequence && state.address != 0)
- info->curr_section_sp = info->section_list->FindSectionContainingFileAddress (state.address - 1);
- else
- info->curr_section_sp = info->section_list->FindSectionContainingFileAddress (state.address);
-
- if (info->curr_section_sp.get())
- info->curr_sect_file_base_addr = info->curr_section_sp->GetFileAddress ();
- else
- info->curr_sect_file_base_addr = 0;
- }
- if (info->curr_section_sp.get())
- {
- lldb::addr_t curr_line_section_offset = state.address - info->curr_sect_file_base_addr;
- // Check for the fancy section magic to determine if we
-
- if (info->is_oso_for_debug_map)
- {
- // When this is a debug map object file that contains DWARF
- // (referenced from an N_OSO debug map nlist entry) we will have
- // a file address in the file range for our section from the
- // original .o file, and a load address in the executable that
- // contains the debug map.
- //
- // If the sections for the file range and load range are
- // different, we have a remapped section for the function and
- // this address is resolved. If they are the same, then the
- // function for this address didn't make it into the final
- // executable.
- bool curr_in_final_executable = (bool) info->curr_section_sp->GetLinkedSection ();
-
- // If we are doing DWARF with debug map, then we need to carefully
- // add each line table entry as there may be gaps as functions
- // get moved around or removed.
- if (!info->prev_row.end_sequence && info->prev_section_sp.get())
- {
- if (info->prev_in_final_executable)
- {
- bool terminate_previous_entry = false;
- if (!curr_in_final_executable)
- {
- // Check for the case where the previous line entry
- // in a function made it into the final executable,
- // yet the current line entry falls in a function
- // that didn't. The line table used to be contiguous
- // through this address range but now it isn't. We
- // need to terminate the previous line entry so
- // that we can reconstruct the line range correctly
- // for it and to keep the line table correct.
- terminate_previous_entry = true;
- }
- else if (info->curr_section_sp.get() != info->prev_section_sp.get())
- {
- // Check for cases where the line entries used to be
- // contiguous address ranges, but now they aren't.
- // This can happen when order files specify the
- // ordering of the functions.
- lldb::addr_t prev_line_section_offset = info->prev_row.address - info->prev_sect_file_base_addr;
- Section *curr_sect = info->curr_section_sp.get();
- Section *prev_sect = info->prev_section_sp.get();
- assert (curr_sect->GetLinkedSection());
- assert (prev_sect->GetLinkedSection());
- lldb::addr_t object_file_addr_delta = state.address - info->prev_row.address;
- lldb::addr_t curr_linked_file_addr = curr_sect->GetLinkedFileAddress() + curr_line_section_offset;
- lldb::addr_t prev_linked_file_addr = prev_sect->GetLinkedFileAddress() + prev_line_section_offset;
- lldb::addr_t linked_file_addr_delta = curr_linked_file_addr - prev_linked_file_addr;
- if (object_file_addr_delta != linked_file_addr_delta)
- terminate_previous_entry = true;
- }
-
- if (terminate_previous_entry)
- {
- line_table->InsertLineEntry (info->prev_section_sp,
- state.address - info->prev_sect_file_base_addr,
- info->prev_row.line,
- info->prev_row.column,
- info->prev_row.file,
- false, // is_stmt
- false, // basic_block
- false, // state.prologue_end
- false, // state.epilogue_begin
- true); // end_sequence);
- }
- }
- }
-
- if (curr_in_final_executable)
- {
- line_table->InsertLineEntry (info->curr_section_sp,
- curr_line_section_offset,
- state.line,
- state.column,
- state.file,
- state.is_stmt,
- state.basic_block,
- state.prologue_end,
- state.epilogue_begin,
- state.end_sequence);
- info->prev_section_sp = info->curr_section_sp;
- }
- else
- {
- // If the current address didn't make it into the final
- // executable, the current section will be the __text
- // segment in the .o file, so we need to clear this so
- // we can catch the next function that did make it into
- // the final executable.
- info->prev_section_sp.reset();
- info->curr_section_sp.reset();
- }
-
- info->prev_in_final_executable = curr_in_final_executable;
- }
- else
- {
- // We are not in an object file that contains DWARF for an
- // N_OSO, this is just a normal DWARF file. The DWARF spec
- // guarantees that the addresses will be in increasing order
- // so, since we store line tables in file address order, we
- // can always just append the line entry without needing to
- // search for the correct insertion point (we don't need to
- // use LineEntry::InsertLineEntry()).
- line_table->AppendLineEntry (info->curr_section_sp,
- curr_line_section_offset,
- state.line,
- state.column,
- state.file,
- state.is_stmt,
- state.basic_block,
- state.prologue_end,
- state.epilogue_begin,
- state.end_sequence);
- }
- }
-
- info->prev_row = state;
- }
-}
-
-bool
-SymbolFileDWARF::ParseCompileUnitLineTable (const SymbolContext &sc)
-{
- assert (sc.comp_unit);
- if (sc.comp_unit->GetLineTable() != NULL)
- return true;
-
- DWARFCompileUnit* dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
- if (dwarf_cu)
- {
- const DWARFDebugInfoEntry *dwarf_cu_die = dwarf_cu->GetCompileUnitDIEOnly();
- if (dwarf_cu_die)
- {
- const dw_offset_t cu_line_offset = dwarf_cu_die->GetAttributeValueAsUnsigned(this, dwarf_cu, DW_AT_stmt_list, DW_INVALID_OFFSET);
- if (cu_line_offset != DW_INVALID_OFFSET)
- {
- std::auto_ptr<LineTable> line_table_ap(new LineTable(sc.comp_unit));
- if (line_table_ap.get())
- {
- ParseDWARFLineTableCallbackInfo info = {
- line_table_ap.get(),
- m_obj_file->GetSectionList(),
- 0,
- 0,
- GetDebugMapSymfile () != NULL,
- false,
- DWARFDebugLine::Row(),
- SectionSP(),
- SectionSP()
- };
- uint32_t offset = cu_line_offset;
- DWARFDebugLine::ParseStatementTable(get_debug_line_data(), &offset, ParseDWARFLineTableCallback, &info);
- sc.comp_unit->SetLineTable(line_table_ap.release());
- return true;
- }
- }
- }
- }
- return false;
-}
-
-size_t
-SymbolFileDWARF::ParseFunctionBlocks
-(
- const SymbolContext& sc,
- Block *parent_block,
- DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *die,
- addr_t subprogram_low_pc,
- uint32_t depth
-)
-{
- size_t blocks_added = 0;
- while (die != NULL)
- {
- dw_tag_t tag = die->Tag();
-
- switch (tag)
- {
- case DW_TAG_inlined_subroutine:
- case DW_TAG_subprogram:
- case DW_TAG_lexical_block:
- {
- Block *block = NULL;
- if (tag == DW_TAG_subprogram)
- {
- // Skip any DW_TAG_subprogram DIEs that are inside
- // of a normal or inlined functions. These will be
- // parsed on their own as separate entities.
-
- if (depth > 0)
- break;
-
- block = parent_block;
- }
- else
- {
- BlockSP block_sp(new Block (MakeUserID(die->GetOffset())));
- parent_block->AddChild(block_sp);
- block = block_sp.get();
- }
- DWARFDebugRanges::RangeList ranges;
- const char *name = NULL;
- const char *mangled_name = NULL;
-
- int decl_file = 0;
- int decl_line = 0;
- int decl_column = 0;
- int call_file = 0;
- int call_line = 0;
- int call_column = 0;
- if (die->GetDIENamesAndRanges (this,
- dwarf_cu,
- name,
- mangled_name,
- ranges,
- decl_file, decl_line, decl_column,
- call_file, call_line, call_column))
- {
- if (tag == DW_TAG_subprogram)
- {
- assert (subprogram_low_pc == LLDB_INVALID_ADDRESS);
- subprogram_low_pc = ranges.GetMinRangeBase(0);
- }
- else if (tag == DW_TAG_inlined_subroutine)
- {
- // We get called here for inlined subroutines in two ways.
- // The first time is when we are making the Function object
- // for this inlined concrete instance. Since we're creating a top level block at
- // here, the subprogram_low_pc will be LLDB_INVALID_ADDRESS. So we need to
- // adjust the containing address.
- // The second time is when we are parsing the blocks inside the function that contains
- // the inlined concrete instance. Since these will be blocks inside the containing "real"
- // function the offset will be for that function.
- if (subprogram_low_pc == LLDB_INVALID_ADDRESS)
- {
- subprogram_low_pc = ranges.GetMinRangeBase(0);
- }
- }
-
- AddRangesToBlock (*block, ranges, subprogram_low_pc);
-
- if (tag != DW_TAG_subprogram && (name != NULL || mangled_name != NULL))
- {
- std::auto_ptr<Declaration> decl_ap;
- if (decl_file != 0 || decl_line != 0 || decl_column != 0)
- decl_ap.reset(new Declaration(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(decl_file),
- decl_line, decl_column));
-
- std::auto_ptr<Declaration> call_ap;
- if (call_file != 0 || call_line != 0 || call_column != 0)
- call_ap.reset(new Declaration(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(call_file),
- call_line, call_column));
-
- block->SetInlinedFunctionInfo (name, mangled_name, decl_ap.get(), call_ap.get());
- }
-
- ++blocks_added;
-
- if (die->HasChildren())
- {
- blocks_added += ParseFunctionBlocks (sc,
- block,
- dwarf_cu,
- die->GetFirstChild(),
- subprogram_low_pc,
- depth + 1);
- }
- }
- }
- break;
- default:
- break;
- }
-
- // Only parse siblings of the block if we are not at depth zero. A depth
- // of zero indicates we are currently parsing the top level
- // DW_TAG_subprogram DIE
-
- if (depth == 0)
- die = NULL;
- else
- die = die->GetSibling();
- }
- return blocks_added;
-}
-
-bool
-SymbolFileDWARF::ParseTemplateDIE (DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *die,
- ClangASTContext::TemplateParameterInfos &template_param_infos)
-{
- const dw_tag_t tag = die->Tag();
-
- switch (tag)
- {
- case DW_TAG_template_type_parameter:
- case DW_TAG_template_value_parameter:
- {
- const uint8_t *fixed_form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize (dwarf_cu->GetAddressByteSize());
-
- DWARFDebugInfoEntry::Attributes attributes;
- const size_t num_attributes = die->GetAttributes (this,
- dwarf_cu,
- fixed_form_sizes,
- attributes);
- const char *name = NULL;
- Type *lldb_type = NULL;
- clang_type_t clang_type = NULL;
- uint64_t uval64 = 0;
- bool uval64_valid = false;
- if (num_attributes > 0)
- {
- DWARFFormValue form_value;
- for (size_t i=0; i<num_attributes; ++i)
- {
- const dw_attr_t attr = attributes.AttributeAtIndex(i);
-
- switch (attr)
- {
- case DW_AT_name:
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- name = form_value.AsCString(&get_debug_str_data());
- break;
-
- case DW_AT_type:
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- const dw_offset_t type_die_offset = form_value.Reference(dwarf_cu);
- lldb_type = ResolveTypeUID(type_die_offset);
- if (lldb_type)
- clang_type = lldb_type->GetClangForwardType();
- }
- break;
-
- case DW_AT_const_value:
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- uval64_valid = true;
- uval64 = form_value.Unsigned();
- }
- break;
- default:
- break;
- }
- }
-
- if (name && lldb_type && clang_type)
- {
- bool is_signed = false;
- template_param_infos.names.push_back(name);
- clang::QualType clang_qual_type (clang::QualType::getFromOpaquePtr (clang_type));
- if (tag == DW_TAG_template_value_parameter && ClangASTContext::IsIntegerType (clang_type, is_signed) && uval64_valid)
- {
- llvm::APInt apint (lldb_type->GetByteSize() * 8, uval64, is_signed);
- template_param_infos.args.push_back (clang::TemplateArgument (*GetClangASTContext().getASTContext(),
- llvm::APSInt(apint),
- clang_qual_type));
- }
- else
- {
- template_param_infos.args.push_back (clang::TemplateArgument (clang_qual_type));
- }
- }
- else
- {
- return false;
- }
-
- }
- }
- return true;
-
- default:
- break;
- }
- return false;
-}
-
-bool
-SymbolFileDWARF::ParseTemplateParameterInfos (DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *parent_die,
- ClangASTContext::TemplateParameterInfos &template_param_infos)
-{
-
- if (parent_die == NULL)
- return false;
-
- Args template_parameter_names;
- for (const DWARFDebugInfoEntry *die = parent_die->GetFirstChild();
- die != NULL;
- die = die->GetSibling())
- {
- const dw_tag_t tag = die->Tag();
-
- switch (tag)
- {
- case DW_TAG_template_type_parameter:
- case DW_TAG_template_value_parameter:
- ParseTemplateDIE (dwarf_cu, die, template_param_infos);
- break;
-
- default:
- break;
- }
- }
- if (template_param_infos.args.empty())
- return false;
- return template_param_infos.args.size() == template_param_infos.names.size();
-}
-
-clang::ClassTemplateDecl *
-SymbolFileDWARF::ParseClassTemplateDecl (clang::DeclContext *decl_ctx,
- lldb::AccessType access_type,
- const char *parent_name,
- int tag_decl_kind,
- const ClangASTContext::TemplateParameterInfos &template_param_infos)
-{
- if (template_param_infos.IsValid())
- {
- std::string template_basename(parent_name);
- template_basename.erase (template_basename.find('<'));
- ClangASTContext &ast = GetClangASTContext();
-
- return ast.CreateClassTemplateDecl (decl_ctx,
- access_type,
- template_basename.c_str(),
- tag_decl_kind,
- template_param_infos);
- }
- return NULL;
-}
-
-class SymbolFileDWARF::DelayedAddObjCClassProperty
-{
-public:
- DelayedAddObjCClassProperty
- (
- clang::ASTContext *ast,
- lldb::clang_type_t class_opaque_type,
- const char *property_name,
- lldb::clang_type_t property_opaque_type, // The property type is only required if you don't have an ivar decl
- clang::ObjCIvarDecl *ivar_decl,
- const char *property_setter_name,
- const char *property_getter_name,
- uint32_t property_attributes,
- const ClangASTMetadata *metadata
- ) :
- m_ast (ast),
- m_class_opaque_type (class_opaque_type),
- m_property_name (property_name),
- m_property_opaque_type (property_opaque_type),
- m_ivar_decl (ivar_decl),
- m_property_setter_name (property_setter_name),
- m_property_getter_name (property_getter_name),
- m_property_attributes (property_attributes)
- {
- if (metadata != NULL)
- {
- m_metadata_ap.reset(new ClangASTMetadata());
- *(m_metadata_ap.get()) = *metadata;
- }
- }
-
- DelayedAddObjCClassProperty (const DelayedAddObjCClassProperty &rhs)
- {
- m_ast = rhs.m_ast;
- m_class_opaque_type = rhs.m_class_opaque_type;
- m_property_name = rhs.m_property_name;
- m_property_opaque_type = rhs.m_property_opaque_type;
- m_ivar_decl = rhs.m_ivar_decl;
- m_property_setter_name = rhs.m_property_setter_name;
- m_property_getter_name = rhs.m_property_getter_name;
- m_property_attributes = rhs.m_property_attributes;
-
- if (rhs.m_metadata_ap.get())
- {
- m_metadata_ap.reset (new ClangASTMetadata());
- *(m_metadata_ap.get()) = *(rhs.m_metadata_ap.get());
- }
-
- }
-
- bool Finalize() const
- {
- return ClangASTContext::AddObjCClassProperty(m_ast,
- m_class_opaque_type,
- m_property_name,
- m_property_opaque_type,
- m_ivar_decl,
- m_property_setter_name,
- m_property_getter_name,
- m_property_attributes,
- m_metadata_ap.get());
- }
-private:
- clang::ASTContext *m_ast;
- lldb::clang_type_t m_class_opaque_type;
- const char *m_property_name;
- lldb::clang_type_t m_property_opaque_type;
- clang::ObjCIvarDecl *m_ivar_decl;
- const char *m_property_setter_name;
- const char *m_property_getter_name;
- uint32_t m_property_attributes;
- std::auto_ptr<ClangASTMetadata> m_metadata_ap;
-};
-
-size_t
-SymbolFileDWARF::ParseChildMembers
-(
- const SymbolContext& sc,
- DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *parent_die,
- clang_type_t class_clang_type,
- const LanguageType class_language,
- std::vector<clang::CXXBaseSpecifier *>& base_classes,
- std::vector<int>& member_accessibilities,
- DWARFDIECollection& member_function_dies,
- DelayedPropertyList& delayed_properties,
- AccessType& default_accessibility,
- bool &is_a_class,
- LayoutInfo &layout_info
-)
-{
- if (parent_die == NULL)
- return 0;
-
- size_t count = 0;
- const DWARFDebugInfoEntry *die;
- const uint8_t *fixed_form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize (dwarf_cu->GetAddressByteSize());
- uint32_t member_idx = 0;
-
- for (die = parent_die->GetFirstChild(); die != NULL; die = die->GetSibling())
- {
- dw_tag_t tag = die->Tag();
-
- switch (tag)
- {
- case DW_TAG_member:
- case DW_TAG_APPLE_property:
- {
- DWARFDebugInfoEntry::Attributes attributes;
- const size_t num_attributes = die->GetAttributes (this,
- dwarf_cu,
- fixed_form_sizes,
- attributes);
- if (num_attributes > 0)
- {
- Declaration decl;
- //DWARFExpression location;
- const char *name = NULL;
- const char *prop_name = NULL;
- const char *prop_getter_name = NULL;
- const char *prop_setter_name = NULL;
- uint32_t prop_attributes = 0;
-
-
- bool is_artificial = false;
- lldb::user_id_t encoding_uid = LLDB_INVALID_UID;
- AccessType accessibility = eAccessNone;
- uint32_t member_byte_offset = UINT32_MAX;
- size_t byte_size = 0;
- size_t bit_offset = 0;
- size_t bit_size = 0;
- uint32_t i;
- for (i=0; i<num_attributes && !is_artificial; ++i)
- {
- const dw_attr_t attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_name: name = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_type: encoding_uid = form_value.Reference(dwarf_cu); break;
- case DW_AT_bit_offset: bit_offset = form_value.Unsigned(); break;
- case DW_AT_bit_size: bit_size = form_value.Unsigned(); break;
- case DW_AT_byte_size: byte_size = form_value.Unsigned(); break;
- case DW_AT_data_member_location:
- if (form_value.BlockData())
- {
- Value initialValue(0);
- Value memberOffset(0);
- const DataExtractor& debug_info_data = get_debug_info_data();
- uint32_t block_length = form_value.Unsigned();
- uint32_t block_offset = form_value.BlockData() - debug_info_data.GetDataStart();
- if (DWARFExpression::Evaluate(NULL, // ExecutionContext *
- NULL, // clang::ASTContext *
- NULL, // ClangExpressionVariableList *
- NULL, // ClangExpressionDeclMap *
- NULL, // RegisterContext *
- debug_info_data,
- block_offset,
- block_length,
- eRegisterKindDWARF,
- &initialValue,
- memberOffset,
- NULL))
- {
- member_byte_offset = memberOffset.ResolveValue(NULL, NULL).UInt();
- }
- }
- break;
-
- case DW_AT_accessibility: accessibility = DW_ACCESS_to_AccessType (form_value.Unsigned()); break;
- case DW_AT_artificial: is_artificial = form_value.Unsigned() != 0; break;
- case DW_AT_APPLE_property_name: prop_name = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_APPLE_property_getter: prop_getter_name = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_APPLE_property_setter: prop_setter_name = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_APPLE_property_attribute: prop_attributes = form_value.Unsigned(); break;
-
- default:
- case DW_AT_declaration:
- case DW_AT_description:
- case DW_AT_mutable:
- case DW_AT_visibility:
- case DW_AT_sibling:
- break;
- }
- }
- }
-
- if (prop_name)
- {
- ConstString fixed_getter;
- ConstString fixed_setter;
-
- // Check if the property getter/setter were provided as full
- // names. We want basenames, so we extract them.
-
- if (prop_getter_name && prop_getter_name[0] == '-')
- {
- ObjCLanguageRuntime::ParseMethodName (prop_getter_name,
- NULL,
- &fixed_getter,
- NULL,
- NULL);
- prop_getter_name = fixed_getter.GetCString();
- }
-
- if (prop_setter_name && prop_setter_name[0] == '-')
- {
- ObjCLanguageRuntime::ParseMethodName (prop_setter_name,
- NULL,
- &fixed_setter,
- NULL,
- NULL);
- prop_setter_name = fixed_setter.GetCString();
- }
-
- // If the names haven't been provided, they need to be
- // filled in.
-
- if (!prop_getter_name)
- {
- prop_getter_name = prop_name;
- }
- if (!prop_setter_name && prop_name[0] && !(prop_attributes & DW_APPLE_PROPERTY_readonly))
- {
- StreamString ss;
-
- ss.Printf("set%c%s:",
- toupper(prop_name[0]),
- &prop_name[1]);
-
- fixed_setter.SetCString(ss.GetData());
- prop_setter_name = fixed_setter.GetCString();
- }
- }
-
- // Clang has a DWARF generation bug where sometimes it
- // represents fields that are references with bad byte size
- // and bit size/offset information such as:
- //
- // DW_AT_byte_size( 0x00 )
- // DW_AT_bit_size( 0x40 )
- // DW_AT_bit_offset( 0xffffffffffffffc0 )
- //
- // So check the bit offset to make sure it is sane, and if
- // the values are not sane, remove them. If we don't do this
- // then we will end up with a crash if we try to use this
- // type in an expression when clang becomes unhappy with its
- // recycled debug info.
-
- if (bit_offset > 128)
- {
- bit_size = 0;
- bit_offset = 0;
- }
-
- // FIXME: Make Clang ignore Objective-C accessibility for expressions
- if (class_language == eLanguageTypeObjC ||
- class_language == eLanguageTypeObjC_plus_plus)
- accessibility = eAccessNone;
-
- if (member_idx == 0 && !is_artificial && name && (strstr (name, "_vptr$") == name))
- {
- // Not all compilers will mark the vtable pointer
- // member as artificial (llvm-gcc). We can't have
- // the virtual members in our classes otherwise it
- // throws off all child offsets since we end up
- // having and extra pointer sized member in our
- // class layouts.
- is_artificial = true;
- }
-
- if (is_artificial == false)
- {
- Type *member_type = ResolveTypeUID(encoding_uid);
- clang::FieldDecl *field_decl = NULL;
- if (tag == DW_TAG_member)
- {
- if (member_type)
- {
- if (accessibility == eAccessNone)
- accessibility = default_accessibility;
- member_accessibilities.push_back(accessibility);
-
- field_decl = GetClangASTContext().AddFieldToRecordType (class_clang_type,
- name,
- member_type->GetClangLayoutType(),
- accessibility,
- bit_size);
-
- GetClangASTContext().SetMetadataAsUserID ((uintptr_t)field_decl, MakeUserID(die->GetOffset()));
- }
- else
- {
- if (name)
- GetObjectFile()->GetModule()->ReportError ("0x%8.8llx: DW_TAG_member '%s' refers to type 0x%8.8llx which was unable to be parsed",
- MakeUserID(die->GetOffset()),
- name,
- encoding_uid);
- else
- GetObjectFile()->GetModule()->ReportError ("0x%8.8llx: DW_TAG_member refers to type 0x%8.8llx which was unable to be parsed",
- MakeUserID(die->GetOffset()),
- encoding_uid);
- }
-
- if (member_byte_offset != UINT32_MAX || bit_size != 0)
- {
- /////////////////////////////////////////////////////////////
- // How to locate a field given the DWARF debug information
- //
- // AT_byte_size indicates the size of the word in which the
- // bit offset must be interpreted.
- //
- // AT_data_member_location indicates the byte offset of the
- // word from the base address of the structure.
- //
- // AT_bit_offset indicates how many bits into the word
- // (according to the host endianness) the low-order bit of
- // the field starts. AT_bit_offset can be negative.
- //
- // AT_bit_size indicates the size of the field in bits.
- /////////////////////////////////////////////////////////////
-
- ByteOrder object_endian = GetObjectFile()->GetModule()->GetArchitecture().GetDefaultEndian();
-
- uint64_t total_bit_offset = 0;
-
- total_bit_offset += (member_byte_offset == UINT32_MAX ? 0 : (member_byte_offset * 8));
-
- if (object_endian == eByteOrderLittle)
- {
- total_bit_offset += byte_size * 8;
- total_bit_offset -= (bit_offset + bit_size);
- }
- else
- {
- total_bit_offset += bit_offset;
- }
-
- layout_info.field_offsets.insert(std::make_pair(field_decl, total_bit_offset));
- }
- }
-
- if (prop_name != NULL)
- {
- clang::ObjCIvarDecl *ivar_decl = NULL;
-
- if (field_decl)
- {
- ivar_decl = clang::dyn_cast<clang::ObjCIvarDecl>(field_decl);
- assert (ivar_decl != NULL);
- }
-
- ClangASTMetadata metadata;
- metadata.SetUserID (MakeUserID(die->GetOffset()));
- delayed_properties.push_back(DelayedAddObjCClassProperty(GetClangASTContext().getASTContext(),
- class_clang_type,
- prop_name,
- member_type->GetClangLayoutType(),
- ivar_decl,
- prop_setter_name,
- prop_getter_name,
- prop_attributes,
- &metadata));
-
- if (ivar_decl)
- GetClangASTContext().SetMetadataAsUserID ((uintptr_t)ivar_decl, MakeUserID(die->GetOffset()));
- }
- }
- }
- ++member_idx;
- }
- break;
-
- case DW_TAG_subprogram:
- // Let the type parsing code handle this one for us.
- member_function_dies.Append (die);
- break;
-
- case DW_TAG_inheritance:
- {
- is_a_class = true;
- if (default_accessibility == eAccessNone)
- default_accessibility = eAccessPrivate;
- // TODO: implement DW_TAG_inheritance type parsing
- DWARFDebugInfoEntry::Attributes attributes;
- const size_t num_attributes = die->GetAttributes (this,
- dwarf_cu,
- fixed_form_sizes,
- attributes);
- if (num_attributes > 0)
- {
- Declaration decl;
- DWARFExpression location;
- lldb::user_id_t encoding_uid = LLDB_INVALID_UID;
- AccessType accessibility = default_accessibility;
- bool is_virtual = false;
- bool is_base_of_class = true;
- //off_t member_offset = 0;
- uint32_t i;
- for (i=0; i<num_attributes; ++i)
- {
- const dw_attr_t attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_type: encoding_uid = form_value.Reference(dwarf_cu); break;
-// case DW_AT_data_member_location:
-// if (form_value.BlockData())
-// {
-// Value initialValue(0);
-// Value memberOffset(0);
-// const DataExtractor& debug_info_data = get_debug_info_data();
-// uint32_t block_length = form_value.Unsigned();
-// uint32_t block_offset = form_value.BlockData() - debug_info_data.GetDataStart();
-// if (DWARFExpression::Evaluate (NULL,
-// NULL,
-// NULL,
-// NULL,
-// NULL,
-// debug_info_data,
-// block_offset,
-// block_length,
-// eRegisterKindDWARF,
-// &initialValue,
-// memberOffset,
-// NULL))
-// {
-// member_offset = memberOffset.ResolveValue(NULL, NULL).UInt();
-// }
-// }
-// break;
-
- case DW_AT_accessibility:
- accessibility = DW_ACCESS_to_AccessType(form_value.Unsigned());
- break;
-
- case DW_AT_virtuality: is_virtual = form_value.Unsigned() != 0; break;
- default:
- case DW_AT_sibling:
- break;
- }
- }
- }
-
- Type *base_class_type = ResolveTypeUID(encoding_uid);
- assert(base_class_type);
-
- clang_type_t base_class_clang_type = base_class_type->GetClangFullType();
- assert (base_class_clang_type);
- if (class_language == eLanguageTypeObjC)
- {
- GetClangASTContext().SetObjCSuperClass(class_clang_type, base_class_clang_type);
- }
- else
- {
- base_classes.push_back (GetClangASTContext().CreateBaseClassSpecifier (base_class_clang_type,
- accessibility,
- is_virtual,
- is_base_of_class));
- }
- }
- }
- break;
-
- default:
- break;
- }
- }
-
- return count;
-}
-
-
-clang::DeclContext*
-SymbolFileDWARF::GetClangDeclContextContainingTypeUID (lldb::user_id_t type_uid)
-{
- DWARFDebugInfo* debug_info = DebugInfo();
- if (debug_info && UserIDMatches(type_uid))
- {
- DWARFCompileUnitSP cu_sp;
- const DWARFDebugInfoEntry* die = debug_info->GetDIEPtr(type_uid, &cu_sp);
- if (die)
- return GetClangDeclContextContainingDIE (cu_sp.get(), die, NULL);
- }
- return NULL;
-}
-
-clang::DeclContext*
-SymbolFileDWARF::GetClangDeclContextForTypeUID (const lldb_private::SymbolContext &sc, lldb::user_id_t type_uid)
-{
- if (UserIDMatches(type_uid))
- return GetClangDeclContextForDIEOffset (sc, type_uid);
- return NULL;
-}
-
-Type*
-SymbolFileDWARF::ResolveTypeUID (lldb::user_id_t type_uid)
-{
- if (UserIDMatches(type_uid))
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- if (debug_info)
- {
- DWARFCompileUnitSP cu_sp;
- const DWARFDebugInfoEntry* type_die = debug_info->GetDIEPtr(type_uid, &cu_sp);
- const bool assert_not_being_parsed = true;
- return ResolveTypeUID (cu_sp.get(), type_die, assert_not_being_parsed);
- }
- }
- return NULL;
-}
-
-Type*
-SymbolFileDWARF::ResolveTypeUID (DWARFCompileUnit* cu, const DWARFDebugInfoEntry* die, bool assert_not_being_parsed)
-{
- if (die != NULL)
- {
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_INFO));
- if (log)
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::ResolveTypeUID (die = 0x%8.8x) %s '%s'",
- die->GetOffset(),
- DW_TAG_value_to_name(die->Tag()),
- die->GetName(this, cu));
-
- // We might be coming in in the middle of a type tree (a class
- // withing a class, an enum within a class), so parse any needed
- // parent DIEs before we get to this one...
- const DWARFDebugInfoEntry *decl_ctx_die = GetDeclContextDIEContainingDIE (cu, die);
- switch (decl_ctx_die->Tag())
- {
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- case DW_TAG_class_type:
- {
- // Get the type, which could be a forward declaration
- if (log)
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::ResolveTypeUID (die = 0x%8.8x) %s '%s' resolve parent forward type for 0x%8.8x",
- die->GetOffset(),
- DW_TAG_value_to_name(die->Tag()),
- die->GetName(this, cu),
- decl_ctx_die->GetOffset());
-//
-// Type *parent_type = ResolveTypeUID (cu, decl_ctx_die, assert_not_being_parsed);
-// if (child_requires_parent_class_union_or_struct_to_be_completed(die->Tag()))
-// {
-// if (log)
-// GetObjectFile()->GetModule()->LogMessage (log.get(),
-// "SymbolFileDWARF::ResolveTypeUID (die = 0x%8.8x) %s '%s' resolve parent full type for 0x%8.8x since die is a function",
-// die->GetOffset(),
-// DW_TAG_value_to_name(die->Tag()),
-// die->GetName(this, cu),
-// decl_ctx_die->GetOffset());
-// // Ask the type to complete itself if it already hasn't since if we
-// // want a function (method or static) from a class, the class must
-// // create itself and add it's own methods and class functions.
-// if (parent_type)
-// parent_type->GetClangFullType();
-// }
- }
- break;
-
- default:
- break;
- }
- return ResolveType (cu, die);
- }
- return NULL;
-}
-
-// This function is used when SymbolFileDWARFDebugMap owns a bunch of
-// SymbolFileDWARF objects to detect if this DWARF file is the one that
-// can resolve a clang_type.
-bool
-SymbolFileDWARF::HasForwardDeclForClangType (lldb::clang_type_t clang_type)
-{
- clang_type_t clang_type_no_qualifiers = ClangASTType::RemoveFastQualifiers(clang_type);
- const DWARFDebugInfoEntry* die = m_forward_decl_clang_type_to_die.lookup (clang_type_no_qualifiers);
- return die != NULL;
-}
-
-
-lldb::clang_type_t
-SymbolFileDWARF::ResolveClangOpaqueTypeDefinition (lldb::clang_type_t clang_type)
-{
- // We have a struct/union/class/enum that needs to be fully resolved.
- clang_type_t clang_type_no_qualifiers = ClangASTType::RemoveFastQualifiers(clang_type);
- const DWARFDebugInfoEntry* die = m_forward_decl_clang_type_to_die.lookup (clang_type_no_qualifiers);
- if (die == NULL)
- {
- // We have already resolved this type...
- return clang_type;
- }
- // Once we start resolving this type, remove it from the forward declaration
- // map in case anyone child members or other types require this type to get resolved.
- // The type will get resolved when all of the calls to SymbolFileDWARF::ResolveClangOpaqueTypeDefinition
- // are done.
- m_forward_decl_clang_type_to_die.erase (clang_type_no_qualifiers);
-
-
- // Disable external storage for this type so we don't get anymore
- // clang::ExternalASTSource queries for this type.
- ClangASTContext::SetHasExternalStorage (clang_type, false);
-
- DWARFDebugInfo* debug_info = DebugInfo();
-
- DWARFCompileUnit *dwarf_cu = debug_info->GetCompileUnitContainingDIE (die->GetOffset()).get();
- Type *type = m_die_to_type.lookup (die);
-
- const dw_tag_t tag = die->Tag();
-
- LogSP log (LogChannelDWARF::GetLogIfAny(DWARF_LOG_DEBUG_INFO|DWARF_LOG_TYPE_COMPLETION));
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessageVerboseBacktrace (log.get(),
- "0x%8.8llx: %s '%s' resolving forward declaration...",
- MakeUserID(die->GetOffset()),
- DW_TAG_value_to_name(tag),
- type->GetName().AsCString());
-
- }
- assert (clang_type);
- DWARFDebugInfoEntry::Attributes attributes;
-
- ClangASTContext &ast = GetClangASTContext();
-
- switch (tag)
- {
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- case DW_TAG_class_type:
- {
- LayoutInfo layout_info;
-
- {
- if (die->HasChildren())
- {
-
- LanguageType class_language = eLanguageTypeUnknown;
- bool is_objc_class = ClangASTContext::IsObjCClassType (clang_type);
- if (is_objc_class)
- {
- class_language = eLanguageTypeObjC;
- // For objective C we don't start the definition when
- // the class is created.
- ast.StartTagDeclarationDefinition (clang_type);
- }
-
- int tag_decl_kind = -1;
- AccessType default_accessibility = eAccessNone;
- if (tag == DW_TAG_structure_type)
- {
- tag_decl_kind = clang::TTK_Struct;
- default_accessibility = eAccessPublic;
- }
- else if (tag == DW_TAG_union_type)
- {
- tag_decl_kind = clang::TTK_Union;
- default_accessibility = eAccessPublic;
- }
- else if (tag == DW_TAG_class_type)
- {
- tag_decl_kind = clang::TTK_Class;
- default_accessibility = eAccessPrivate;
- }
-
- SymbolContext sc(GetCompUnitForDWARFCompUnit(dwarf_cu));
- std::vector<clang::CXXBaseSpecifier *> base_classes;
- std::vector<int> member_accessibilities;
- bool is_a_class = false;
- // Parse members and base classes first
- DWARFDIECollection member_function_dies;
-
- DelayedPropertyList delayed_properties;
-
- ParseChildMembers (sc,
- dwarf_cu,
- die,
- clang_type,
- class_language,
- base_classes,
- member_accessibilities,
- member_function_dies,
- delayed_properties,
- default_accessibility,
- is_a_class,
- layout_info);
-
- // Now parse any methods if there were any...
- size_t num_functions = member_function_dies.Size();
- if (num_functions > 0)
- {
- for (size_t i=0; i<num_functions; ++i)
- {
- ResolveType(dwarf_cu, member_function_dies.GetDIEPtrAtIndex(i));
- }
- }
-
- if (class_language == eLanguageTypeObjC)
- {
- std::string class_str (ClangASTType::GetTypeNameForOpaqueQualType(ast.getASTContext(), clang_type));
- if (!class_str.empty())
- {
-
- DIEArray method_die_offsets;
- if (m_using_apple_tables)
- {
- if (m_apple_objc_ap.get())
- m_apple_objc_ap->FindByName(class_str.c_str(), method_die_offsets);
- }
- else
- {
- if (!m_indexed)
- Index ();
-
- ConstString class_name (class_str.c_str());
- m_objc_class_selectors_index.Find (class_name, method_die_offsets);
- }
-
- if (!method_die_offsets.empty())
- {
- DWARFDebugInfo* debug_info = DebugInfo();
-
- DWARFCompileUnit* method_cu = NULL;
- const size_t num_matches = method_die_offsets.size();
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = method_die_offsets[i];
- DWARFDebugInfoEntry *method_die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &method_cu);
-
- if (method_die)
- ResolveType (method_cu, method_die);
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_objc accelerator table had bad die 0x%8.8x for '%s')\n",
- die_offset, class_str.c_str());
- }
- }
- }
- }
-
- for (DelayedPropertyList::const_iterator pi = delayed_properties.begin(), pe = delayed_properties.end();
- pi != pe;
- ++pi)
- pi->Finalize();
- }
- }
-
- // If we have a DW_TAG_structure_type instead of a DW_TAG_class_type we
- // need to tell the clang type it is actually a class.
- if (class_language != eLanguageTypeObjC)
- {
- if (is_a_class && tag_decl_kind != clang::TTK_Class)
- ast.SetTagTypeKind (clang_type, clang::TTK_Class);
- }
-
- // Since DW_TAG_structure_type gets used for both classes
- // and structures, we may need to set any DW_TAG_member
- // fields to have a "private" access if none was specified.
- // When we parsed the child members we tracked that actual
- // accessibility value for each DW_TAG_member in the
- // "member_accessibilities" array. If the value for the
- // member is zero, then it was set to the "default_accessibility"
- // which for structs was "public". Below we correct this
- // by setting any fields to "private" that weren't correctly
- // set.
- if (is_a_class && !member_accessibilities.empty())
- {
- // This is a class and all members that didn't have
- // their access specified are private.
- ast.SetDefaultAccessForRecordFields (clang_type,
- eAccessPrivate,
- &member_accessibilities.front(),
- member_accessibilities.size());
- }
-
- if (!base_classes.empty())
- {
- ast.SetBaseClassesForClassType (clang_type,
- &base_classes.front(),
- base_classes.size());
-
- // Clang will copy each CXXBaseSpecifier in "base_classes"
- // so we have to free them all.
- ClangASTContext::DeleteBaseClassSpecifiers (&base_classes.front(),
- base_classes.size());
- }
- }
- }
-
- ast.BuildIndirectFields (clang_type);
-
- ast.CompleteTagDeclarationDefinition (clang_type);
-
- if (!layout_info.field_offsets.empty())
- {
- if (type)
- layout_info.bit_size = type->GetByteSize() * 8;
- if (layout_info.bit_size == 0)
- layout_info.bit_size = die->GetAttributeValueAsUnsigned(this, dwarf_cu, DW_AT_byte_size, 0) * 8;
- clang::QualType qual_type(clang::QualType::getFromOpaquePtr(clang_type));
- const clang::RecordType *record_type = clang::dyn_cast<clang::RecordType>(qual_type.getTypePtr());
- if (record_type)
- {
- const clang::RecordDecl *record_decl = record_type->getDecl();
-
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::ResolveClangOpaqueTypeDefinition (clang_type = %p) caching layout info for record_decl = %p, bit_size = %llu, alignment = %llu, field_offsets[%u], base_offsets[0], vbase_offsets[0])",
- clang_type,
- record_decl,
- layout_info.bit_size,
- layout_info.alignment,
- (uint32_t)layout_info.field_offsets.size());
-
- llvm::DenseMap <const clang::FieldDecl *, uint64_t>::const_iterator pos, end = layout_info.field_offsets.end();
- for (pos = layout_info.field_offsets.begin(); pos != end; ++pos)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::ResolveClangOpaqueTypeDefinition (clang_type = %p) field = { bit_offset=%u, name='%s' }",
- clang_type,
- (uint32_t)pos->second,
- pos->first->getNameAsString().c_str());
- }
- }
- m_record_decl_to_layout_map.insert(std::make_pair(record_decl, layout_info));
- }
- }
- }
-
- return clang_type;
-
- case DW_TAG_enumeration_type:
- ast.StartTagDeclarationDefinition (clang_type);
- if (die->HasChildren())
- {
- SymbolContext sc(GetCompUnitForDWARFCompUnit(dwarf_cu));
- ParseChildEnumerators(sc, clang_type, type->GetByteSize(), dwarf_cu, die);
- }
- ast.CompleteTagDeclarationDefinition (clang_type);
- return clang_type;
-
- default:
- assert(false && "not a forward clang type decl!");
- break;
- }
- return NULL;
-}
-
-Type*
-SymbolFileDWARF::ResolveType (DWARFCompileUnit* dwarf_cu, const DWARFDebugInfoEntry* type_die, bool assert_not_being_parsed)
-{
- if (type_die != NULL)
- {
- Type *type = m_die_to_type.lookup (type_die);
-
- if (type == NULL)
- type = GetTypeForDIE (dwarf_cu, type_die).get();
-
- if (assert_not_being_parsed)
- {
- if (type != DIE_IS_BEING_PARSED)
- return type;
-
- GetObjectFile()->GetModule()->ReportError ("Parsing a die that is being parsed die: 0x%8.8x: %s %s",
- type_die->GetOffset(),
- DW_TAG_value_to_name(type_die->Tag()),
- type_die->GetName(this, dwarf_cu));
-
- }
- else
- return type;
- }
- return NULL;
-}
-
-CompileUnit*
-SymbolFileDWARF::GetCompUnitForDWARFCompUnit (DWARFCompileUnit* dwarf_cu, uint32_t cu_idx)
-{
- // Check if the symbol vendor already knows about this compile unit?
- if (dwarf_cu->GetUserData() == NULL)
- {
- // The symbol vendor doesn't know about this compile unit, we
- // need to parse and add it to the symbol vendor object.
- return ParseCompileUnit(dwarf_cu, cu_idx).get();
- }
- return (CompileUnit*)dwarf_cu->GetUserData();
-}
-
-bool
-SymbolFileDWARF::GetFunction (DWARFCompileUnit* dwarf_cu, const DWARFDebugInfoEntry* func_die, SymbolContext& sc)
-{
- sc.Clear();
- // Check if the symbol vendor already knows about this compile unit?
- sc.comp_unit = GetCompUnitForDWARFCompUnit(dwarf_cu, UINT32_MAX);
-
- sc.function = sc.comp_unit->FindFunctionByUID (MakeUserID(func_die->GetOffset())).get();
- if (sc.function == NULL)
- sc.function = ParseCompileUnitFunction(sc, dwarf_cu, func_die);
-
- if (sc.function)
- {
- sc.module_sp = sc.function->CalculateSymbolContextModule();
- return true;
- }
-
- return false;
-}
-
-uint32_t
-SymbolFileDWARF::ResolveSymbolContext (const Address& so_addr, uint32_t resolve_scope, SymbolContext& sc)
-{
- Timer scoped_timer(__PRETTY_FUNCTION__,
- "SymbolFileDWARF::ResolveSymbolContext (so_addr = { section = %p, offset = 0x%llx }, resolve_scope = 0x%8.8x)",
- so_addr.GetSection().get(),
- so_addr.GetOffset(),
- resolve_scope);
- uint32_t resolved = 0;
- if (resolve_scope & ( eSymbolContextCompUnit |
- eSymbolContextFunction |
- eSymbolContextBlock |
- eSymbolContextLineEntry))
- {
- lldb::addr_t file_vm_addr = so_addr.GetFileAddress();
-
- DWARFDebugInfo* debug_info = DebugInfo();
- if (debug_info)
- {
- const dw_offset_t cu_offset = debug_info->GetCompileUnitAranges().FindAddress(file_vm_addr);
- if (cu_offset != DW_INVALID_OFFSET)
- {
- uint32_t cu_idx = DW_INVALID_INDEX;
- DWARFCompileUnit* dwarf_cu = debug_info->GetCompileUnit(cu_offset, &cu_idx).get();
- if (dwarf_cu)
- {
- sc.comp_unit = GetCompUnitForDWARFCompUnit(dwarf_cu, cu_idx);
- if (sc.comp_unit)
- {
- resolved |= eSymbolContextCompUnit;
-
- if (resolve_scope & eSymbolContextLineEntry)
- {
- LineTable *line_table = sc.comp_unit->GetLineTable();
- if (line_table != NULL)
- {
- if (so_addr.IsLinkedAddress())
- {
- Address linked_addr (so_addr);
- linked_addr.ResolveLinkedAddress();
- if (line_table->FindLineEntryByAddress (linked_addr, sc.line_entry))
- {
- resolved |= eSymbolContextLineEntry;
- }
- }
- else if (line_table->FindLineEntryByAddress (so_addr, sc.line_entry))
- {
- resolved |= eSymbolContextLineEntry;
- }
- }
- }
-
- if (resolve_scope & (eSymbolContextFunction | eSymbolContextBlock))
- {
- DWARFDebugInfoEntry *function_die = NULL;
- DWARFDebugInfoEntry *block_die = NULL;
- if (resolve_scope & eSymbolContextBlock)
- {
- dwarf_cu->LookupAddress(file_vm_addr, &function_die, &block_die);
- }
- else
- {
- dwarf_cu->LookupAddress(file_vm_addr, &function_die, NULL);
- }
-
- if (function_die != NULL)
- {
- sc.function = sc.comp_unit->FindFunctionByUID (MakeUserID(function_die->GetOffset())).get();
- if (sc.function == NULL)
- sc.function = ParseCompileUnitFunction(sc, dwarf_cu, function_die);
- }
- else
- {
- // We might have had a compile unit that had discontiguous
- // address ranges where the gaps are symbols that don't have
- // any debug info. Discontiguous compile unit address ranges
- // should only happen when there aren't other functions from
- // other compile units in these gaps. This helps keep the size
- // of the aranges down.
- sc.comp_unit = NULL;
- resolved &= ~eSymbolContextCompUnit;
- }
-
- if (sc.function != NULL)
- {
- resolved |= eSymbolContextFunction;
-
- if (resolve_scope & eSymbolContextBlock)
- {
- Block& block = sc.function->GetBlock (true);
-
- if (block_die != NULL)
- sc.block = block.FindBlockByID (MakeUserID(block_die->GetOffset()));
- else
- sc.block = block.FindBlockByID (MakeUserID(function_die->GetOffset()));
- if (sc.block)
- resolved |= eSymbolContextBlock;
- }
- }
- }
- }
- else
- {
- GetObjectFile()->GetModule()->ReportWarning ("0x%8.8x: compile unit %u failed to create a valid lldb_private::CompileUnit class.",
- cu_offset,
- cu_idx);
- }
- }
- }
- }
- }
- return resolved;
-}
-
-
-
-uint32_t
-SymbolFileDWARF::ResolveSymbolContext(const FileSpec& file_spec, uint32_t line, bool check_inlines, uint32_t resolve_scope, SymbolContextList& sc_list)
-{
- const uint32_t prev_size = sc_list.GetSize();
- if (resolve_scope & eSymbolContextCompUnit)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- if (debug_info)
- {
- uint32_t cu_idx;
- DWARFCompileUnit* dwarf_cu = NULL;
-
- for (cu_idx = 0; (dwarf_cu = debug_info->GetCompileUnitAtIndex(cu_idx)) != NULL; ++cu_idx)
- {
- CompileUnit *dc_cu = GetCompUnitForDWARFCompUnit(dwarf_cu, cu_idx);
- const bool full_match = file_spec.GetDirectory();
- bool file_spec_matches_cu_file_spec = dc_cu != NULL && FileSpec::Equal(file_spec, *dc_cu, full_match);
- if (check_inlines || file_spec_matches_cu_file_spec)
- {
- SymbolContext sc (m_obj_file->GetModule());
- sc.comp_unit = GetCompUnitForDWARFCompUnit(dwarf_cu, cu_idx);
- if (sc.comp_unit)
- {
- uint32_t file_idx = UINT32_MAX;
-
- // If we are looking for inline functions only and we don't
- // find it in the support files, we are done.
- if (check_inlines)
- {
- file_idx = sc.comp_unit->GetSupportFiles().FindFileIndex (1, file_spec, true);
- if (file_idx == UINT32_MAX)
- continue;
- }
-
- if (line != 0)
- {
- LineTable *line_table = sc.comp_unit->GetLineTable();
-
- if (line_table != NULL && line != 0)
- {
- // We will have already looked up the file index if
- // we are searching for inline entries.
- if (!check_inlines)
- file_idx = sc.comp_unit->GetSupportFiles().FindFileIndex (1, file_spec, true);
-
- if (file_idx != UINT32_MAX)
- {
- uint32_t found_line;
- uint32_t line_idx = line_table->FindLineEntryIndexByFileIndex (0, file_idx, line, false, &sc.line_entry);
- found_line = sc.line_entry.line;
-
- while (line_idx != UINT32_MAX)
- {
- sc.function = NULL;
- sc.block = NULL;
- if (resolve_scope & (eSymbolContextFunction | eSymbolContextBlock))
- {
- const lldb::addr_t file_vm_addr = sc.line_entry.range.GetBaseAddress().GetFileAddress();
- if (file_vm_addr != LLDB_INVALID_ADDRESS)
- {
- DWARFDebugInfoEntry *function_die = NULL;
- DWARFDebugInfoEntry *block_die = NULL;
- dwarf_cu->LookupAddress(file_vm_addr, &function_die, resolve_scope & eSymbolContextBlock ? &block_die : NULL);
-
- if (function_die != NULL)
- {
- sc.function = sc.comp_unit->FindFunctionByUID (MakeUserID(function_die->GetOffset())).get();
- if (sc.function == NULL)
- sc.function = ParseCompileUnitFunction(sc, dwarf_cu, function_die);
- }
-
- if (sc.function != NULL)
- {
- Block& block = sc.function->GetBlock (true);
-
- if (block_die != NULL)
- sc.block = block.FindBlockByID (MakeUserID(block_die->GetOffset()));
- else
- sc.block = block.FindBlockByID (MakeUserID(function_die->GetOffset()));
- }
- }
- }
-
- sc_list.Append(sc);
- line_idx = line_table->FindLineEntryIndexByFileIndex (line_idx + 1, file_idx, found_line, true, &sc.line_entry);
- }
- }
- }
- else if (file_spec_matches_cu_file_spec && !check_inlines)
- {
- // only append the context if we aren't looking for inline call sites
- // by file and line and if the file spec matches that of the compile unit
- sc_list.Append(sc);
- }
- }
- else if (file_spec_matches_cu_file_spec && !check_inlines)
- {
- // only append the context if we aren't looking for inline call sites
- // by file and line and if the file spec matches that of the compile unit
- sc_list.Append(sc);
- }
-
- if (!check_inlines)
- break;
- }
- }
- }
- }
- }
- return sc_list.GetSize() - prev_size;
-}
-
-void
-SymbolFileDWARF::Index ()
-{
- if (m_indexed)
- return;
- m_indexed = true;
- Timer scoped_timer (__PRETTY_FUNCTION__,
- "SymbolFileDWARF::Index (%s)",
- GetObjectFile()->GetFileSpec().GetFilename().AsCString());
-
- DWARFDebugInfo* debug_info = DebugInfo();
- if (debug_info)
- {
- uint32_t cu_idx = 0;
- const uint32_t num_compile_units = GetNumCompileUnits();
- for (cu_idx = 0; cu_idx < num_compile_units; ++cu_idx)
- {
- DWARFCompileUnit* dwarf_cu = debug_info->GetCompileUnitAtIndex(cu_idx);
-
- bool clear_dies = dwarf_cu->ExtractDIEsIfNeeded (false) > 1;
-
- dwarf_cu->Index (cu_idx,
- m_function_basename_index,
- m_function_fullname_index,
- m_function_method_index,
- m_function_selector_index,
- m_objc_class_selectors_index,
- m_global_index,
- m_type_index,
- m_namespace_index);
-
- // Keep memory down by clearing DIEs if this generate function
- // caused them to be parsed
- if (clear_dies)
- dwarf_cu->ClearDIEs (true);
- }
-
- m_function_basename_index.Finalize();
- m_function_fullname_index.Finalize();
- m_function_method_index.Finalize();
- m_function_selector_index.Finalize();
- m_objc_class_selectors_index.Finalize();
- m_global_index.Finalize();
- m_type_index.Finalize();
- m_namespace_index.Finalize();
-
-#if defined (ENABLE_DEBUG_PRINTF)
- StreamFile s(stdout, false);
- s.Printf ("DWARF index for '%s/%s':",
- GetObjectFile()->GetFileSpec().GetDirectory().AsCString(),
- GetObjectFile()->GetFileSpec().GetFilename().AsCString());
- s.Printf("\nFunction basenames:\n"); m_function_basename_index.Dump (&s);
- s.Printf("\nFunction fullnames:\n"); m_function_fullname_index.Dump (&s);
- s.Printf("\nFunction methods:\n"); m_function_method_index.Dump (&s);
- s.Printf("\nFunction selectors:\n"); m_function_selector_index.Dump (&s);
- s.Printf("\nObjective C class selectors:\n"); m_objc_class_selectors_index.Dump (&s);
- s.Printf("\nGlobals and statics:\n"); m_global_index.Dump (&s);
- s.Printf("\nTypes:\n"); m_type_index.Dump (&s);
- s.Printf("\nNamepaces:\n"); m_namespace_index.Dump (&s);
-#endif
- }
-}
-
-bool
-SymbolFileDWARF::NamespaceDeclMatchesThisSymbolFile (const ClangNamespaceDecl *namespace_decl)
-{
- if (namespace_decl == NULL)
- {
- // Invalid namespace decl which means we aren't matching only things
- // in this symbol file, so return true to indicate it matches this
- // symbol file.
- return true;
- }
-
- clang::ASTContext *namespace_ast = namespace_decl->GetASTContext();
-
- if (namespace_ast == NULL)
- return true; // No AST in the "namespace_decl", return true since it
- // could then match any symbol file, including this one
-
- if (namespace_ast == GetClangASTContext().getASTContext())
- return true; // The ASTs match, return true
-
- // The namespace AST was valid, and it does not match...
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- if (log)
- GetObjectFile()->GetModule()->LogMessage(log.get(), "Valid namespace does not match symbol file");
-
- return false;
-}
-
-bool
-SymbolFileDWARF::DIEIsInNamespace (const ClangNamespaceDecl *namespace_decl,
- DWARFCompileUnit* cu,
- const DWARFDebugInfoEntry* die)
-{
- // No namespace specified, so the answesr i
- if (namespace_decl == NULL)
- return true;
-
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- const DWARFDebugInfoEntry *decl_ctx_die = NULL;
- clang::DeclContext *die_clang_decl_ctx = GetClangDeclContextContainingDIE (cu, die, &decl_ctx_die);
- if (decl_ctx_die)
- {
- clang::NamespaceDecl *clang_namespace_decl = namespace_decl->GetNamespaceDecl();
-
- if (clang_namespace_decl)
- {
- if (decl_ctx_die->Tag() != DW_TAG_namespace)
- {
- if (log)
- GetObjectFile()->GetModule()->LogMessage(log.get(), "Found a match, but its parent is not a namespace");
- return false;
- }
-
- if (clang_namespace_decl == die_clang_decl_ctx)
- return true;
- else
- return false;
- }
- else
- {
- // We have a namespace_decl that was not NULL but it contained
- // a NULL "clang::NamespaceDecl", so this means the global namespace
- // So as long the the contained decl context DIE isn't a namespace
- // we should be ok.
- if (decl_ctx_die->Tag() != DW_TAG_namespace)
- return true;
- }
- }
-
- if (log)
- GetObjectFile()->GetModule()->LogMessage(log.get(), "Found a match, but its parent doesn't exist");
-
- return false;
-}
-uint32_t
-SymbolFileDWARF::FindGlobalVariables (const ConstString &name, const lldb_private::ClangNamespaceDecl *namespace_decl, bool append, uint32_t max_matches, VariableList& variables)
-{
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindGlobalVariables (name=\"%s\", namespace_decl=%p, append=%u, max_matches=%u, variables)",
- name.GetCString(),
- namespace_decl,
- append,
- max_matches);
- }
-
- if (!NamespaceDeclMatchesThisSymbolFile(namespace_decl))
- return 0;
-
- DWARFDebugInfo* info = DebugInfo();
- if (info == NULL)
- return 0;
-
- // If we aren't appending the results to this list, then clear the list
- if (!append)
- variables.Clear();
-
- // Remember how many variables are in the list before we search in case
- // we are appending the results to a variable list.
- const uint32_t original_size = variables.GetSize();
-
- DIEArray die_offsets;
-
- if (m_using_apple_tables)
- {
- if (m_apple_names_ap.get())
- {
- const char *name_cstr = name.GetCString();
- const char *base_name_start;
- const char *base_name_end = NULL;
-
- if (!CPPLanguageRuntime::StripNamespacesFromVariableName(name_cstr, base_name_start, base_name_end))
- base_name_start = name_cstr;
-
- m_apple_names_ap->FindByName (base_name_start, die_offsets);
- }
- }
- else
- {
- // Index the DWARF if we haven't already
- if (!m_indexed)
- Index ();
-
- m_global_index.Find (name, die_offsets);
- }
-
- const size_t num_die_matches = die_offsets.size();
- if (num_die_matches)
- {
- SymbolContext sc;
- sc.module_sp = m_obj_file->GetModule();
- assert (sc.module_sp);
-
- DWARFDebugInfo* debug_info = DebugInfo();
- DWARFCompileUnit* dwarf_cu = NULL;
- const DWARFDebugInfoEntry* die = NULL;
- bool done = false;
- for (size_t i=0; i<num_die_matches && !done; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
-
- if (die)
- {
- switch (die->Tag())
- {
- default:
- case DW_TAG_subprogram:
- case DW_TAG_inlined_subroutine:
- case DW_TAG_try_block:
- case DW_TAG_catch_block:
- break;
-
- case DW_TAG_variable:
- {
- sc.comp_unit = GetCompUnitForDWARFCompUnit(dwarf_cu, UINT32_MAX);
-
- if (namespace_decl && !DIEIsInNamespace (namespace_decl, dwarf_cu, die))
- continue;
-
- ParseVariables(sc, dwarf_cu, LLDB_INVALID_ADDRESS, die, false, false, &variables);
-
- if (variables.GetSize() - original_size >= max_matches)
- done = true;
- }
- break;
- }
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_names accelerator table had bad die 0x%8.8x for '%s')\n",
- die_offset, name.GetCString());
- }
- }
- }
- }
-
- // Return the number of variable that were appended to the list
- const uint32_t num_matches = variables.GetSize() - original_size;
- if (log && num_matches > 0)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindGlobalVariables (name=\"%s\", namespace_decl=%p, append=%u, max_matches=%u, variables) => %u",
- name.GetCString(),
- namespace_decl,
- append,
- max_matches,
- num_matches);
- }
- return num_matches;
-}
-
-uint32_t
-SymbolFileDWARF::FindGlobalVariables(const RegularExpression& regex, bool append, uint32_t max_matches, VariableList& variables)
-{
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindGlobalVariables (regex=\"%s\", append=%u, max_matches=%u, variables)",
- regex.GetText(),
- append,
- max_matches);
- }
-
- DWARFDebugInfo* info = DebugInfo();
- if (info == NULL)
- return 0;
-
- // If we aren't appending the results to this list, then clear the list
- if (!append)
- variables.Clear();
-
- // Remember how many variables are in the list before we search in case
- // we are appending the results to a variable list.
- const uint32_t original_size = variables.GetSize();
-
- DIEArray die_offsets;
-
- if (m_using_apple_tables)
- {
- if (m_apple_names_ap.get())
- {
- DWARFMappedHash::DIEInfoArray hash_data_array;
- if (m_apple_names_ap->AppendAllDIEsThatMatchingRegex (regex, hash_data_array))
- DWARFMappedHash::ExtractDIEArray (hash_data_array, die_offsets);
- }
- }
- else
- {
- // Index the DWARF if we haven't already
- if (!m_indexed)
- Index ();
-
- m_global_index.Find (regex, die_offsets);
- }
-
- SymbolContext sc;
- sc.module_sp = m_obj_file->GetModule();
- assert (sc.module_sp);
-
- DWARFCompileUnit* dwarf_cu = NULL;
- const DWARFDebugInfoEntry* die = NULL;
- const size_t num_matches = die_offsets.size();
- if (num_matches)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
-
- if (die)
- {
- sc.comp_unit = GetCompUnitForDWARFCompUnit(dwarf_cu, UINT32_MAX);
-
- ParseVariables(sc, dwarf_cu, LLDB_INVALID_ADDRESS, die, false, false, &variables);
-
- if (variables.GetSize() - original_size >= max_matches)
- break;
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_names accelerator table had bad die 0x%8.8x for regex '%s')\n",
- die_offset, regex.GetText());
- }
- }
- }
- }
-
- // Return the number of variable that were appended to the list
- return variables.GetSize() - original_size;
-}
-
-
-bool
-SymbolFileDWARF::ResolveFunction (dw_offset_t die_offset,
- DWARFCompileUnit *&dwarf_cu,
- SymbolContextList& sc_list)
-{
- const DWARFDebugInfoEntry *die = DebugInfo()->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
- return ResolveFunction (dwarf_cu, die, sc_list);
-}
-
-
-bool
-SymbolFileDWARF::ResolveFunction (DWARFCompileUnit *cu,
- const DWARFDebugInfoEntry *die,
- SymbolContextList& sc_list)
-{
- SymbolContext sc;
-
- if (die == NULL)
- return false;
-
- // If we were passed a die that is not a function, just return false...
- if (die->Tag() != DW_TAG_subprogram && die->Tag() != DW_TAG_inlined_subroutine)
- return false;
-
- const DWARFDebugInfoEntry* inlined_die = NULL;
- if (die->Tag() == DW_TAG_inlined_subroutine)
- {
- inlined_die = die;
-
- while ((die = die->GetParent()) != NULL)
- {
- if (die->Tag() == DW_TAG_subprogram)
- break;
- }
- }
- assert (die->Tag() == DW_TAG_subprogram);
- if (GetFunction (cu, die, sc))
- {
- Address addr;
- // Parse all blocks if needed
- if (inlined_die)
- {
- sc.block = sc.function->GetBlock (true).FindBlockByID (MakeUserID(inlined_die->GetOffset()));
- assert (sc.block != NULL);
- if (sc.block->GetStartAddress (addr) == false)
- addr.Clear();
- }
- else
- {
- sc.block = NULL;
- addr = sc.function->GetAddressRange().GetBaseAddress();
- }
-
- if (addr.IsValid())
- {
- sc_list.Append(sc);
- return true;
- }
- }
-
- return false;
-}
-
-void
-SymbolFileDWARF::FindFunctions (const ConstString &name,
- const NameToDIE &name_to_die,
- SymbolContextList& sc_list)
-{
- DIEArray die_offsets;
- if (name_to_die.Find (name, die_offsets))
- {
- ParseFunctions (die_offsets, sc_list);
- }
-}
-
-
-void
-SymbolFileDWARF::FindFunctions (const RegularExpression ®ex,
- const NameToDIE &name_to_die,
- SymbolContextList& sc_list)
-{
- DIEArray die_offsets;
- if (name_to_die.Find (regex, die_offsets))
- {
- ParseFunctions (die_offsets, sc_list);
- }
-}
-
-
-void
-SymbolFileDWARF::FindFunctions (const RegularExpression ®ex,
- const DWARFMappedHash::MemoryTable &memory_table,
- SymbolContextList& sc_list)
-{
- DIEArray die_offsets;
- DWARFMappedHash::DIEInfoArray hash_data_array;
- if (memory_table.AppendAllDIEsThatMatchingRegex (regex, hash_data_array))
- {
- DWARFMappedHash::ExtractDIEArray (hash_data_array, die_offsets);
- ParseFunctions (die_offsets, sc_list);
- }
-}
-
-void
-SymbolFileDWARF::ParseFunctions (const DIEArray &die_offsets,
- SymbolContextList& sc_list)
-{
- const size_t num_matches = die_offsets.size();
- if (num_matches)
- {
- SymbolContext sc;
-
- DWARFCompileUnit* dwarf_cu = NULL;
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- ResolveFunction (die_offset, dwarf_cu, sc_list);
- }
- }
-}
-
-bool
-SymbolFileDWARF::FunctionDieMatchesPartialName (const DWARFDebugInfoEntry* die,
- const DWARFCompileUnit *dwarf_cu,
- uint32_t name_type_mask,
- const char *partial_name,
- const char *base_name_start,
- const char *base_name_end)
-{
- // If we are looking only for methods, throw away all the ones that aren't in C++ classes:
- if (name_type_mask == eFunctionNameTypeMethod
- || name_type_mask == eFunctionNameTypeBase)
- {
- clang::DeclContext *containing_decl_ctx = GetClangDeclContextContainingDIEOffset(die->GetOffset());
- if (!containing_decl_ctx)
- return false;
-
- bool is_cxx_method = DeclKindIsCXXClass(containing_decl_ctx->getDeclKind());
-
- if (!is_cxx_method && name_type_mask == eFunctionNameTypeMethod)
- return false;
- if (is_cxx_method && name_type_mask == eFunctionNameTypeBase)
- return false;
- }
-
- // Now we need to check whether the name we got back for this type matches the extra specifications
- // that were in the name we're looking up:
- if (base_name_start != partial_name || *base_name_end != '\0')
- {
- // First see if the stuff to the left matches the full name. To do that let's see if
- // we can pull out the mips linkage name attribute:
-
- Mangled best_name;
-
- DWARFDebugInfoEntry::Attributes attributes;
- die->GetAttributes(this, dwarf_cu, NULL, attributes);
- uint32_t idx = attributes.FindAttributeIndex(DW_AT_MIPS_linkage_name);
- if (idx != UINT32_MAX)
- {
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, idx, form_value))
- {
- const char *name = form_value.AsCString(&get_debug_str_data());
- best_name.SetValue (ConstString(name), true);
- }
- }
- if (best_name)
- {
- const char *demangled = best_name.GetDemangledName().GetCString();
- if (demangled)
- {
- std::string name_no_parens(partial_name, base_name_end - partial_name);
- const char *partial_in_demangled = strstr (demangled, name_no_parens.c_str());
- if (partial_in_demangled == NULL)
- return false;
- else
- {
- // Sort out the case where our name is something like "Process::Destroy" and the match is
- // "SBProcess::Destroy" - that shouldn't be a match. We should really always match on
- // namespace boundaries...
-
- if (partial_name[0] == ':' && partial_name[1] == ':')
- {
- // The partial name was already on a namespace boundary so all matches are good.
- return true;
- }
- else if (partial_in_demangled == demangled)
- {
- // They both start the same, so this is an good match.
- return true;
- }
- else
- {
- if (partial_in_demangled - demangled == 1)
- {
- // Only one character difference, can't be a namespace boundary...
- return false;
- }
- else if (*(partial_in_demangled - 1) == ':' && *(partial_in_demangled - 2) == ':')
- {
- // We are on a namespace boundary, so this is also good.
- return true;
- }
- else
- return false;
- }
- }
- }
- }
- }
-
- return true;
-}
-
-uint32_t
-SymbolFileDWARF::FindFunctions (const ConstString &name,
- const lldb_private::ClangNamespaceDecl *namespace_decl,
- uint32_t name_type_mask,
- bool include_inlines,
- bool append,
- SymbolContextList& sc_list)
-{
- Timer scoped_timer (__PRETTY_FUNCTION__,
- "SymbolFileDWARF::FindFunctions (name = '%s')",
- name.AsCString());
-
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindFunctions (name=\"%s\", name_type_mask=0x%x, append=%u, sc_list)",
- name.GetCString(),
- name_type_mask,
- append);
- }
-
- // If we aren't appending the results to this list, then clear the list
- if (!append)
- sc_list.Clear();
-
- if (!NamespaceDeclMatchesThisSymbolFile(namespace_decl))
- return 0;
-
- // If name is empty then we won't find anything.
- if (name.IsEmpty())
- return 0;
-
- // Remember how many sc_list are in the list before we search in case
- // we are appending the results to a variable list.
-
- const uint32_t original_size = sc_list.GetSize();
-
- const char *name_cstr = name.GetCString();
- uint32_t effective_name_type_mask = eFunctionNameTypeNone;
- const char *base_name_start = name_cstr;
- const char *base_name_end = name_cstr + strlen(name_cstr);
-
- if (name_type_mask & eFunctionNameTypeAuto)
- {
- if (CPPLanguageRuntime::IsCPPMangledName (name_cstr))
- effective_name_type_mask = eFunctionNameTypeFull;
- else if (ObjCLanguageRuntime::IsPossibleObjCMethodName (name_cstr))
- effective_name_type_mask = eFunctionNameTypeFull;
- else
- {
- if (ObjCLanguageRuntime::IsPossibleObjCSelector(name_cstr))
- effective_name_type_mask |= eFunctionNameTypeSelector;
-
- if (CPPLanguageRuntime::IsPossibleCPPCall(name_cstr, base_name_start, base_name_end))
- effective_name_type_mask |= (eFunctionNameTypeMethod | eFunctionNameTypeBase);
- }
- }
- else
- {
- effective_name_type_mask = name_type_mask;
- if (effective_name_type_mask & eFunctionNameTypeMethod || name_type_mask & eFunctionNameTypeBase)
- {
- // If they've asked for a CPP method or function name and it can't be that, we don't
- // even need to search for CPP methods or names.
- if (!CPPLanguageRuntime::IsPossibleCPPCall(name_cstr, base_name_start, base_name_end))
- {
- effective_name_type_mask &= ~(eFunctionNameTypeMethod | eFunctionNameTypeBase);
- if (effective_name_type_mask == eFunctionNameTypeNone)
- return 0;
- }
- }
-
- if (effective_name_type_mask & eFunctionNameTypeSelector)
- {
- if (!ObjCLanguageRuntime::IsPossibleObjCSelector(name_cstr))
- {
- effective_name_type_mask &= ~(eFunctionNameTypeSelector);
- if (effective_name_type_mask == eFunctionNameTypeNone)
- return 0;
- }
- }
- }
-
- DWARFDebugInfo* info = DebugInfo();
- if (info == NULL)
- return 0;
-
- DWARFCompileUnit *dwarf_cu = NULL;
- if (m_using_apple_tables)
- {
- if (m_apple_names_ap.get())
- {
-
- DIEArray die_offsets;
-
- uint32_t num_matches = 0;
-
- if (effective_name_type_mask & eFunctionNameTypeFull)
- {
- // If they asked for the full name, match what they typed. At some point we may
- // want to canonicalize this (strip double spaces, etc. For now, we just add all the
- // dies that we find by exact match.
- num_matches = m_apple_names_ap->FindByName (name_cstr, die_offsets);
- for (uint32_t i = 0; i < num_matches; i++)
- {
- const dw_offset_t die_offset = die_offsets[i];
- const DWARFDebugInfoEntry *die = info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
- if (die)
- {
- if (namespace_decl && !DIEIsInNamespace (namespace_decl, dwarf_cu, die))
- continue;
-
- if (!include_inlines && die->Tag() == DW_TAG_inlined_subroutine)
- continue;
-
- ResolveFunction (dwarf_cu, die, sc_list);
- }
- else
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_names accelerator table had bad die 0x%8.8x for '%s')",
- die_offset, name_cstr);
- }
- }
- }
- else
- {
- if (effective_name_type_mask & eFunctionNameTypeSelector)
- {
- if (namespace_decl && *namespace_decl)
- return 0; // no selectors in namespaces
-
- num_matches = m_apple_names_ap->FindByName (name_cstr, die_offsets);
- // Now make sure these are actually ObjC methods. In this case we can simply look up the name,
- // and if it is an ObjC method name, we're good.
-
- for (uint32_t i = 0; i < num_matches; i++)
- {
- const dw_offset_t die_offset = die_offsets[i];
- const DWARFDebugInfoEntry* die = info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
- if (die)
- {
- const char *die_name = die->GetName(this, dwarf_cu);
- if (ObjCLanguageRuntime::IsPossibleObjCMethodName(die_name))
- {
- if (!include_inlines && die->Tag() == DW_TAG_inlined_subroutine)
- continue;
-
- ResolveFunction (dwarf_cu, die, sc_list);
- }
- }
- else
- {
- GetObjectFile()->GetModule()->ReportError ("the DWARF debug information has been modified (.apple_names accelerator table had bad die 0x%8.8x for '%s')",
- die_offset, name_cstr);
- }
- }
- die_offsets.clear();
- }
-
- if (effective_name_type_mask & eFunctionNameTypeMethod
- || effective_name_type_mask & eFunctionNameTypeBase)
- {
- if ((effective_name_type_mask & eFunctionNameTypeMethod) &&
- (namespace_decl && *namespace_decl))
- return 0; // no methods in namespaces
-
- // The apple_names table stores just the "base name" of C++ methods in the table. So we have to
- // extract the base name, look that up, and if there is any other information in the name we were
- // passed in we have to post-filter based on that.
-
- // FIXME: Arrange the logic above so that we don't calculate the base name twice:
- std::string base_name(base_name_start, base_name_end - base_name_start);
- num_matches = m_apple_names_ap->FindByName (base_name.c_str(), die_offsets);
-
- for (uint32_t i = 0; i < num_matches; i++)
- {
- const dw_offset_t die_offset = die_offsets[i];
- const DWARFDebugInfoEntry* die = info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
- if (die)
- {
- if (namespace_decl && !DIEIsInNamespace (namespace_decl, dwarf_cu, die))
- continue;
-
- if (!FunctionDieMatchesPartialName(die,
- dwarf_cu,
- effective_name_type_mask,
- name_cstr,
- base_name_start,
- base_name_end))
- continue;
-
- if (!include_inlines && die->Tag() == DW_TAG_inlined_subroutine)
- continue;
-
- // If we get to here, the die is good, and we should add it:
- ResolveFunction (dwarf_cu, die, sc_list);
- }
- else
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_names accelerator table had bad die 0x%8.8x for '%s')",
- die_offset, name_cstr);
- }
- }
- die_offsets.clear();
- }
- }
- }
- }
- else
- {
-
- // Index the DWARF if we haven't already
- if (!m_indexed)
- Index ();
-
- if (name_type_mask & eFunctionNameTypeFull)
- FindFunctions (name, m_function_fullname_index, sc_list);
-
- std::string base_name(base_name_start, base_name_end - base_name_start);
- ConstString base_name_const(base_name.c_str());
- DIEArray die_offsets;
- DWARFCompileUnit *dwarf_cu = NULL;
-
- if (effective_name_type_mask & eFunctionNameTypeBase)
- {
- uint32_t num_base = m_function_basename_index.Find(base_name_const, die_offsets);
- for (uint32_t i = 0; i < num_base; i++)
- {
- const DWARFDebugInfoEntry* die = info->GetDIEPtrWithCompileUnitHint (die_offsets[i], &dwarf_cu);
- if (die)
- {
- if (namespace_decl && !DIEIsInNamespace (namespace_decl, dwarf_cu, die))
- continue;
-
- if (!FunctionDieMatchesPartialName(die,
- dwarf_cu,
- effective_name_type_mask,
- name_cstr,
- base_name_start,
- base_name_end))
- continue;
-
- if (!include_inlines && die->Tag() == DW_TAG_inlined_subroutine)
- continue;
-
- // If we get to here, the die is good, and we should add it:
- ResolveFunction (dwarf_cu, die, sc_list);
- }
- }
- die_offsets.clear();
- }
-
- if (effective_name_type_mask & eFunctionNameTypeMethod)
- {
- if (namespace_decl && *namespace_decl)
- return 0; // no methods in namespaces
-
- uint32_t num_base = m_function_method_index.Find(base_name_const, die_offsets);
- {
- for (uint32_t i = 0; i < num_base; i++)
- {
- const DWARFDebugInfoEntry* die = info->GetDIEPtrWithCompileUnitHint (die_offsets[i], &dwarf_cu);
- if (die)
- {
- if (!FunctionDieMatchesPartialName(die,
- dwarf_cu,
- effective_name_type_mask,
- name_cstr,
- base_name_start,
- base_name_end))
- continue;
-
- if (!include_inlines && die->Tag() == DW_TAG_inlined_subroutine)
- continue;
-
- // If we get to here, the die is good, and we should add it:
- ResolveFunction (dwarf_cu, die, sc_list);
- }
- }
- }
- die_offsets.clear();
- }
-
- if ((effective_name_type_mask & eFunctionNameTypeSelector) && (!namespace_decl || !*namespace_decl))
- {
- FindFunctions (name, m_function_selector_index, sc_list);
- }
-
- }
-
- // Return the number of variable that were appended to the list
- const uint32_t num_matches = sc_list.GetSize() - original_size;
-
- if (log && num_matches > 0)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindFunctions (name=\"%s\", name_type_mask=0x%x, append=%u, sc_list) => %u",
- name.GetCString(),
- name_type_mask,
- append,
- num_matches);
- }
- return num_matches;
-}
-
-uint32_t
-SymbolFileDWARF::FindFunctions(const RegularExpression& regex, bool include_inlines, bool append, SymbolContextList& sc_list)
-{
- Timer scoped_timer (__PRETTY_FUNCTION__,
- "SymbolFileDWARF::FindFunctions (regex = '%s')",
- regex.GetText());
-
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindFunctions (regex=\"%s\", append=%u, sc_list)",
- regex.GetText(),
- append);
- }
-
-
- // If we aren't appending the results to this list, then clear the list
- if (!append)
- sc_list.Clear();
-
- // Remember how many sc_list are in the list before we search in case
- // we are appending the results to a variable list.
- uint32_t original_size = sc_list.GetSize();
-
- if (m_using_apple_tables)
- {
- if (m_apple_names_ap.get())
- FindFunctions (regex, *m_apple_names_ap, sc_list);
- }
- else
- {
- // Index the DWARF if we haven't already
- if (!m_indexed)
- Index ();
-
- FindFunctions (regex, m_function_basename_index, sc_list);
-
- FindFunctions (regex, m_function_fullname_index, sc_list);
- }
-
- // Return the number of variable that were appended to the list
- return sc_list.GetSize() - original_size;
-}
-
-uint32_t
-SymbolFileDWARF::FindTypes (const SymbolContext& sc,
- const ConstString &name,
- const lldb_private::ClangNamespaceDecl *namespace_decl,
- bool append,
- uint32_t max_matches,
- TypeList& types)
-{
- DWARFDebugInfo* info = DebugInfo();
- if (info == NULL)
- return 0;
-
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- if (log)
- {
- if (namespace_decl)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindTypes (sc, name=\"%s\", clang::NamespaceDecl(%p) \"%s\", append=%u, max_matches=%u, type_list)",
- name.GetCString(),
- namespace_decl->GetNamespaceDecl(),
- namespace_decl->GetQualifiedName().c_str(),
- append,
- max_matches);
- }
- else
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindTypes (sc, name=\"%s\", clang::NamespaceDecl(NULL), append=%u, max_matches=%u, type_list)",
- name.GetCString(),
- append,
- max_matches);
- }
- }
-
- // If we aren't appending the results to this list, then clear the list
- if (!append)
- types.Clear();
-
- if (!NamespaceDeclMatchesThisSymbolFile(namespace_decl))
- return 0;
-
- DIEArray die_offsets;
-
- if (m_using_apple_tables)
- {
- if (m_apple_types_ap.get())
- {
- const char *name_cstr = name.GetCString();
- m_apple_types_ap->FindByName (name_cstr, die_offsets);
- }
- }
- else
- {
- if (!m_indexed)
- Index ();
-
- m_type_index.Find (name, die_offsets);
- }
-
- const size_t num_die_matches = die_offsets.size();
-
- if (num_die_matches)
- {
- const uint32_t initial_types_size = types.GetSize();
- DWARFCompileUnit* dwarf_cu = NULL;
- const DWARFDebugInfoEntry* die = NULL;
- DWARFDebugInfo* debug_info = DebugInfo();
- for (size_t i=0; i<num_die_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
-
- if (die)
- {
- if (namespace_decl && !DIEIsInNamespace (namespace_decl, dwarf_cu, die))
- continue;
-
- Type *matching_type = ResolveType (dwarf_cu, die);
- if (matching_type)
- {
- // We found a type pointer, now find the shared pointer form our type list
- types.InsertUnique (matching_type->shared_from_this());
- if (types.GetSize() >= max_matches)
- break;
- }
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_types accelerator table had bad die 0x%8.8x for '%s')\n",
- die_offset, name.GetCString());
- }
- }
-
- }
- const uint32_t num_matches = types.GetSize() - initial_types_size;
- if (log && num_matches)
- {
- if (namespace_decl)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindTypes (sc, name=\"%s\", clang::NamespaceDecl(%p) \"%s\", append=%u, max_matches=%u, type_list) => %u",
- name.GetCString(),
- namespace_decl->GetNamespaceDecl(),
- namespace_decl->GetQualifiedName().c_str(),
- append,
- max_matches,
- num_matches);
- }
- else
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindTypes (sc, name=\"%s\", clang::NamespaceDecl(NULL), append=%u, max_matches=%u, type_list) => %u",
- name.GetCString(),
- append,
- max_matches,
- num_matches);
- }
- }
- return num_matches;
- }
- return 0;
-}
-
-
-ClangNamespaceDecl
-SymbolFileDWARF::FindNamespace (const SymbolContext& sc,
- const ConstString &name,
- const lldb_private::ClangNamespaceDecl *parent_namespace_decl)
-{
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS));
-
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindNamespace (sc, name=\"%s\")",
- name.GetCString());
- }
-
- if (!NamespaceDeclMatchesThisSymbolFile(parent_namespace_decl))
- return ClangNamespaceDecl();
-
- ClangNamespaceDecl namespace_decl;
- DWARFDebugInfo* info = DebugInfo();
- if (info)
- {
- DIEArray die_offsets;
-
- // Index if we already haven't to make sure the compile units
- // get indexed and make their global DIE index list
- if (m_using_apple_tables)
- {
- if (m_apple_namespaces_ap.get())
- {
- const char *name_cstr = name.GetCString();
- m_apple_namespaces_ap->FindByName (name_cstr, die_offsets);
- }
- }
- else
- {
- if (!m_indexed)
- Index ();
-
- m_namespace_index.Find (name, die_offsets);
- }
-
- DWARFCompileUnit* dwarf_cu = NULL;
- const DWARFDebugInfoEntry* die = NULL;
- const size_t num_matches = die_offsets.size();
- if (num_matches)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
-
- if (die)
- {
- if (parent_namespace_decl && !DIEIsInNamespace (parent_namespace_decl, dwarf_cu, die))
- continue;
-
- clang::NamespaceDecl *clang_namespace_decl = ResolveNamespaceDIE (dwarf_cu, die);
- if (clang_namespace_decl)
- {
- namespace_decl.SetASTContext (GetClangASTContext().getASTContext());
- namespace_decl.SetNamespaceDecl (clang_namespace_decl);
- break;
- }
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_namespaces accelerator table had bad die 0x%8.8x for '%s')\n",
- die_offset, name.GetCString());
- }
- }
-
- }
- }
- }
- if (log && namespace_decl.GetNamespaceDecl())
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindNamespace (sc, name=\"%s\") => clang::NamespaceDecl(%p) \"%s\"",
- name.GetCString(),
- namespace_decl.GetNamespaceDecl(),
- namespace_decl.GetQualifiedName().c_str());
- }
-
- return namespace_decl;
-}
-
-uint32_t
-SymbolFileDWARF::FindTypes(std::vector<dw_offset_t> die_offsets, uint32_t max_matches, TypeList& types)
-{
- // Remember how many sc_list are in the list before we search in case
- // we are appending the results to a variable list.
- uint32_t original_size = types.GetSize();
-
- const uint32_t num_die_offsets = die_offsets.size();
- // Parse all of the types we found from the pubtypes matches
- uint32_t i;
- uint32_t num_matches = 0;
- for (i = 0; i < num_die_offsets; ++i)
- {
- Type *matching_type = ResolveTypeUID (die_offsets[i]);
- if (matching_type)
- {
- // We found a type pointer, now find the shared pointer form our type list
- types.InsertUnique (matching_type->shared_from_this());
- ++num_matches;
- if (num_matches >= max_matches)
- break;
- }
- }
-
- // Return the number of variable that were appended to the list
- return types.GetSize() - original_size;
-}
-
-
-size_t
-SymbolFileDWARF::ParseChildParameters (const SymbolContext& sc,
- clang::DeclContext *containing_decl_ctx,
- DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *parent_die,
- bool skip_artificial,
- bool &is_static,
- TypeList* type_list,
- std::vector<clang_type_t>& function_param_types,
- std::vector<clang::ParmVarDecl*>& function_param_decls,
- unsigned &type_quals,
- ClangASTContext::TemplateParameterInfos &template_param_infos)
-{
- if (parent_die == NULL)
- return 0;
-
- const uint8_t *fixed_form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize (dwarf_cu->GetAddressByteSize());
-
- size_t arg_idx = 0;
- const DWARFDebugInfoEntry *die;
- for (die = parent_die->GetFirstChild(); die != NULL; die = die->GetSibling())
- {
- dw_tag_t tag = die->Tag();
- switch (tag)
- {
- case DW_TAG_formal_parameter:
- {
- DWARFDebugInfoEntry::Attributes attributes;
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, fixed_form_sizes, attributes);
- if (num_attributes > 0)
- {
- const char *name = NULL;
- Declaration decl;
- dw_offset_t param_type_die_offset = DW_INVALID_OFFSET;
- bool is_artificial = false;
- // one of None, Auto, Register, Extern, Static, PrivateExtern
-
- clang::StorageClass storage = clang::SC_None;
- uint32_t i;
- for (i=0; i<num_attributes; ++i)
- {
- const dw_attr_t attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_name: name = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_type: param_type_die_offset = form_value.Reference(dwarf_cu); break;
- case DW_AT_artificial: is_artificial = form_value.Unsigned() != 0; break;
- case DW_AT_location:
- // if (form_value.BlockData())
- // {
- // const DataExtractor& debug_info_data = debug_info();
- // uint32_t block_length = form_value.Unsigned();
- // DataExtractor location(debug_info_data, form_value.BlockData() - debug_info_data.GetDataStart(), block_length);
- // }
- // else
- // {
- // }
- // break;
- case DW_AT_const_value:
- case DW_AT_default_value:
- case DW_AT_description:
- case DW_AT_endianity:
- case DW_AT_is_optional:
- case DW_AT_segment:
- case DW_AT_variable_parameter:
- default:
- case DW_AT_abstract_origin:
- case DW_AT_sibling:
- break;
- }
- }
- }
-
- bool skip = false;
- if (skip_artificial)
- {
- if (is_artificial)
- {
- // In order to determine if a C++ member function is
- // "const" we have to look at the const-ness of "this"...
- // Ugly, but that
- if (arg_idx == 0)
- {
- if (DeclKindIsCXXClass(containing_decl_ctx->getDeclKind()))
- {
- // Often times compilers omit the "this" name for the
- // specification DIEs, so we can't rely upon the name
- // being in the formal parameter DIE...
- if (name == NULL || ::strcmp(name, "this")==0)
- {
- Type *this_type = ResolveTypeUID (param_type_die_offset);
- if (this_type)
- {
- uint32_t encoding_mask = this_type->GetEncodingMask();
- if (encoding_mask & Type::eEncodingIsPointerUID)
- {
- is_static = false;
-
- if (encoding_mask & (1u << Type::eEncodingIsConstUID))
- type_quals |= clang::Qualifiers::Const;
- if (encoding_mask & (1u << Type::eEncodingIsVolatileUID))
- type_quals |= clang::Qualifiers::Volatile;
- }
- }
- }
- }
- }
- skip = true;
- }
- else
- {
-
- // HACK: Objective C formal parameters "self" and "_cmd"
- // are not marked as artificial in the DWARF...
- CompileUnit *comp_unit = GetCompUnitForDWARFCompUnit(dwarf_cu, UINT32_MAX);
- if (comp_unit)
- {
- switch (comp_unit->GetLanguage())
- {
- case eLanguageTypeObjC:
- case eLanguageTypeObjC_plus_plus:
- if (name && name[0] && (strcmp (name, "self") == 0 || strcmp (name, "_cmd") == 0))
- skip = true;
- break;
- default:
- break;
- }
- }
- }
- }
-
- if (!skip)
- {
- Type *type = ResolveTypeUID(param_type_die_offset);
- if (type)
- {
- function_param_types.push_back (type->GetClangForwardType());
-
- clang::ParmVarDecl *param_var_decl = GetClangASTContext().CreateParameterDeclaration (name,
- type->GetClangForwardType(),
- storage);
- assert(param_var_decl);
- function_param_decls.push_back(param_var_decl);
-
- GetClangASTContext().SetMetadataAsUserID ((uintptr_t)param_var_decl, MakeUserID(die->GetOffset()));
- }
- }
- }
- arg_idx++;
- }
- break;
-
- case DW_TAG_template_type_parameter:
- case DW_TAG_template_value_parameter:
- ParseTemplateDIE (dwarf_cu, die,template_param_infos);
- break;
-
- default:
- break;
- }
- }
- return arg_idx;
-}
-
-size_t
-SymbolFileDWARF::ParseChildEnumerators
-(
- const SymbolContext& sc,
- clang_type_t enumerator_clang_type,
- uint32_t enumerator_byte_size,
- DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *parent_die
-)
-{
- if (parent_die == NULL)
- return 0;
-
- size_t enumerators_added = 0;
- const DWARFDebugInfoEntry *die;
- const uint8_t *fixed_form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize (dwarf_cu->GetAddressByteSize());
-
- for (die = parent_die->GetFirstChild(); die != NULL; die = die->GetSibling())
- {
- const dw_tag_t tag = die->Tag();
- if (tag == DW_TAG_enumerator)
- {
- DWARFDebugInfoEntry::Attributes attributes;
- const size_t num_child_attributes = die->GetAttributes(this, dwarf_cu, fixed_form_sizes, attributes);
- if (num_child_attributes > 0)
- {
- const char *name = NULL;
- bool got_value = false;
- int64_t enum_value = 0;
- Declaration decl;
-
- uint32_t i;
- for (i=0; i<num_child_attributes; ++i)
- {
- const dw_attr_t attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_const_value:
- got_value = true;
- enum_value = form_value.Unsigned();
- break;
-
- case DW_AT_name:
- name = form_value.AsCString(&get_debug_str_data());
- break;
-
- case DW_AT_description:
- default:
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_sibling:
- break;
- }
- }
- }
-
- if (name && name[0] && got_value)
- {
- GetClangASTContext().AddEnumerationValueToEnumerationType (enumerator_clang_type,
- enumerator_clang_type,
- decl,
- name,
- enum_value,
- enumerator_byte_size * 8);
- ++enumerators_added;
- }
- }
- }
- }
- return enumerators_added;
-}
-
-void
-SymbolFileDWARF::ParseChildArrayInfo
-(
- const SymbolContext& sc,
- DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *parent_die,
- int64_t& first_index,
- std::vector<uint64_t>& element_orders,
- uint32_t& byte_stride,
- uint32_t& bit_stride
-)
-{
- if (parent_die == NULL)
- return;
-
- const DWARFDebugInfoEntry *die;
- const uint8_t *fixed_form_sizes = DWARFFormValue::GetFixedFormSizesForAddressSize (dwarf_cu->GetAddressByteSize());
- for (die = parent_die->GetFirstChild(); die != NULL; die = die->GetSibling())
- {
- const dw_tag_t tag = die->Tag();
- switch (tag)
- {
- case DW_TAG_subrange_type:
- {
- DWARFDebugInfoEntry::Attributes attributes;
- const size_t num_child_attributes = die->GetAttributes(this, dwarf_cu, fixed_form_sizes, attributes);
- if (num_child_attributes > 0)
- {
- uint64_t num_elements = 0;
- uint64_t lower_bound = 0;
- uint64_t upper_bound = 0;
- uint32_t i;
- for (i=0; i<num_child_attributes; ++i)
- {
- const dw_attr_t attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_name:
- break;
-
- case DW_AT_count:
- num_elements = form_value.Unsigned();
- break;
-
- case DW_AT_bit_stride:
- bit_stride = form_value.Unsigned();
- break;
-
- case DW_AT_byte_stride:
- byte_stride = form_value.Unsigned();
- break;
-
- case DW_AT_lower_bound:
- lower_bound = form_value.Unsigned();
- break;
-
- case DW_AT_upper_bound:
- upper_bound = form_value.Unsigned();
- break;
-
- default:
- case DW_AT_abstract_origin:
- case DW_AT_accessibility:
- case DW_AT_allocated:
- case DW_AT_associated:
- case DW_AT_data_location:
- case DW_AT_declaration:
- case DW_AT_description:
- case DW_AT_sibling:
- case DW_AT_threads_scaled:
- case DW_AT_type:
- case DW_AT_visibility:
- break;
- }
- }
- }
-
- if (upper_bound > lower_bound)
- num_elements = upper_bound - lower_bound + 1;
-
- element_orders.push_back (num_elements);
- }
- }
- break;
- }
- }
-}
-
-TypeSP
-SymbolFileDWARF::GetTypeForDIE (DWARFCompileUnit *dwarf_cu, const DWARFDebugInfoEntry* die)
-{
- TypeSP type_sp;
- if (die != NULL)
- {
- assert(dwarf_cu != NULL);
- Type *type_ptr = m_die_to_type.lookup (die);
- if (type_ptr == NULL)
- {
- CompileUnit* lldb_cu = GetCompUnitForDWARFCompUnit(dwarf_cu);
- assert (lldb_cu);
- SymbolContext sc(lldb_cu);
- type_sp = ParseType(sc, dwarf_cu, die, NULL);
- }
- else if (type_ptr != DIE_IS_BEING_PARSED)
- {
- // Grab the existing type from the master types lists
- type_sp = type_ptr->shared_from_this();
- }
-
- }
- return type_sp;
-}
-
-clang::DeclContext *
-SymbolFileDWARF::GetClangDeclContextContainingDIEOffset (dw_offset_t die_offset)
-{
- if (die_offset != DW_INVALID_OFFSET)
- {
- DWARFCompileUnitSP cu_sp;
- const DWARFDebugInfoEntry* die = DebugInfo()->GetDIEPtr(die_offset, &cu_sp);
- return GetClangDeclContextContainingDIE (cu_sp.get(), die, NULL);
- }
- return NULL;
-}
-
-clang::DeclContext *
-SymbolFileDWARF::GetClangDeclContextForDIEOffset (const SymbolContext &sc, dw_offset_t die_offset)
-{
- if (die_offset != DW_INVALID_OFFSET)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- if (debug_info)
- {
- DWARFCompileUnitSP cu_sp;
- const DWARFDebugInfoEntry* die = debug_info->GetDIEPtr(die_offset, &cu_sp);
- if (die)
- return GetClangDeclContextForDIE (sc, cu_sp.get(), die);
- }
- }
- return NULL;
-}
-
-clang::NamespaceDecl *
-SymbolFileDWARF::ResolveNamespaceDIE (DWARFCompileUnit *dwarf_cu, const DWARFDebugInfoEntry *die)
-{
- if (die && die->Tag() == DW_TAG_namespace)
- {
- // See if we already parsed this namespace DIE and associated it with a
- // uniqued namespace declaration
- clang::NamespaceDecl *namespace_decl = static_cast<clang::NamespaceDecl *>(m_die_to_decl_ctx[die]);
- if (namespace_decl)
- return namespace_decl;
- else
- {
- const char *namespace_name = die->GetAttributeValueAsString(this, dwarf_cu, DW_AT_name, NULL);
- clang::DeclContext *containing_decl_ctx = GetClangDeclContextContainingDIE (dwarf_cu, die, NULL);
- namespace_decl = GetClangASTContext().GetUniqueNamespaceDeclaration (namespace_name, containing_decl_ctx);
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_INFO));
- if (log)
- {
- if (namespace_name)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "ASTContext => %p: 0x%8.8llx: DW_TAG_namespace with DW_AT_name(\"%s\") => clang::NamespaceDecl *%p (original = %p)",
- GetClangASTContext().getASTContext(),
- MakeUserID(die->GetOffset()),
- namespace_name,
- namespace_decl,
- namespace_decl->getOriginalNamespace());
- }
- else
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "ASTContext => %p: 0x%8.8llx: DW_TAG_namespace (anonymous) => clang::NamespaceDecl *%p (original = %p)",
- GetClangASTContext().getASTContext(),
- MakeUserID(die->GetOffset()),
- namespace_decl,
- namespace_decl->getOriginalNamespace());
- }
- }
-
- if (namespace_decl)
- LinkDeclContextToDIE((clang::DeclContext*)namespace_decl, die);
- return namespace_decl;
- }
- }
- return NULL;
-}
-
-clang::DeclContext *
-SymbolFileDWARF::GetClangDeclContextForDIE (const SymbolContext &sc, DWARFCompileUnit *cu, const DWARFDebugInfoEntry *die)
-{
- clang::DeclContext *clang_decl_ctx = GetCachedClangDeclContextForDIE (die);
- if (clang_decl_ctx)
- return clang_decl_ctx;
- // If this DIE has a specification, or an abstract origin, then trace to those.
-
- dw_offset_t die_offset = die->GetAttributeValueAsReference(this, cu, DW_AT_specification, DW_INVALID_OFFSET);
- if (die_offset != DW_INVALID_OFFSET)
- return GetClangDeclContextForDIEOffset (sc, die_offset);
-
- die_offset = die->GetAttributeValueAsReference(this, cu, DW_AT_abstract_origin, DW_INVALID_OFFSET);
- if (die_offset != DW_INVALID_OFFSET)
- return GetClangDeclContextForDIEOffset (sc, die_offset);
-
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_INFO));
- if (log)
- GetObjectFile()->GetModule()->LogMessage(log.get(), "SymbolFileDWARF::GetClangDeclContextForDIE (die = 0x%8.8x) %s '%s'", die->GetOffset(), DW_TAG_value_to_name(die->Tag()), die->GetName(this, cu));
- // This is the DIE we want. Parse it, then query our map.
- bool assert_not_being_parsed = true;
- ResolveTypeUID (cu, die, assert_not_being_parsed);
-
- clang_decl_ctx = GetCachedClangDeclContextForDIE (die);
-
- return clang_decl_ctx;
-}
-
-clang::DeclContext *
-SymbolFileDWARF::GetClangDeclContextContainingDIE (DWARFCompileUnit *cu, const DWARFDebugInfoEntry *die, const DWARFDebugInfoEntry **decl_ctx_die_copy)
-{
- if (m_clang_tu_decl == NULL)
- m_clang_tu_decl = GetClangASTContext().getASTContext()->getTranslationUnitDecl();
-
- const DWARFDebugInfoEntry *decl_ctx_die = GetDeclContextDIEContainingDIE (cu, die);
-
- if (decl_ctx_die_copy)
- *decl_ctx_die_copy = decl_ctx_die;
-
- if (decl_ctx_die)
- {
-
- DIEToDeclContextMap::iterator pos = m_die_to_decl_ctx.find (decl_ctx_die);
- if (pos != m_die_to_decl_ctx.end())
- return pos->second;
-
- switch (decl_ctx_die->Tag())
- {
- case DW_TAG_compile_unit:
- return m_clang_tu_decl;
-
- case DW_TAG_namespace:
- return ResolveNamespaceDIE (cu, decl_ctx_die);
- break;
-
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- case DW_TAG_class_type:
- {
- Type* type = ResolveType (cu, decl_ctx_die);
- if (type)
- {
- clang::DeclContext *decl_ctx = ClangASTContext::GetDeclContextForType (type->GetClangForwardType ());
- if (decl_ctx)
- {
- LinkDeclContextToDIE (decl_ctx, decl_ctx_die);
- if (decl_ctx)
- return decl_ctx;
- }
- }
- }
- break;
-
- default:
- break;
- }
- }
- return m_clang_tu_decl;
-}
-
-
-const DWARFDebugInfoEntry *
-SymbolFileDWARF::GetDeclContextDIEContainingDIE (DWARFCompileUnit *cu, const DWARFDebugInfoEntry *die)
-{
- if (cu && die)
- {
- const DWARFDebugInfoEntry * const decl_die = die;
-
- while (die != NULL)
- {
- // If this is the original DIE that we are searching for a declaration
- // for, then don't look in the cache as we don't want our own decl
- // context to be our decl context...
- if (decl_die != die)
- {
- switch (die->Tag())
- {
- case DW_TAG_compile_unit:
- case DW_TAG_namespace:
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- case DW_TAG_class_type:
- return die;
-
- default:
- break;
- }
- }
-
- dw_offset_t die_offset = die->GetAttributeValueAsReference(this, cu, DW_AT_specification, DW_INVALID_OFFSET);
- if (die_offset != DW_INVALID_OFFSET)
- {
- DWARFCompileUnit *spec_cu = cu;
- const DWARFDebugInfoEntry *spec_die = DebugInfo()->GetDIEPtrWithCompileUnitHint (die_offset, &spec_cu);
- const DWARFDebugInfoEntry *spec_die_decl_ctx_die = GetDeclContextDIEContainingDIE (spec_cu, spec_die);
- if (spec_die_decl_ctx_die)
- return spec_die_decl_ctx_die;
- }
-
- die_offset = die->GetAttributeValueAsReference(this, cu, DW_AT_abstract_origin, DW_INVALID_OFFSET);
- if (die_offset != DW_INVALID_OFFSET)
- {
- DWARFCompileUnit *abs_cu = cu;
- const DWARFDebugInfoEntry *abs_die = DebugInfo()->GetDIEPtrWithCompileUnitHint (die_offset, &abs_cu);
- const DWARFDebugInfoEntry *abs_die_decl_ctx_die = GetDeclContextDIEContainingDIE (abs_cu, abs_die);
- if (abs_die_decl_ctx_die)
- return abs_die_decl_ctx_die;
- }
-
- die = die->GetParent();
- }
- }
- return NULL;
-}
-
-
-Symbol *
-SymbolFileDWARF::GetObjCClassSymbol (const ConstString &objc_class_name)
-{
- Symbol *objc_class_symbol = NULL;
- if (m_obj_file)
- {
- Symtab *symtab = m_obj_file->GetSymtab();
- if (symtab)
- {
- objc_class_symbol = symtab->FindFirstSymbolWithNameAndType (objc_class_name,
- eSymbolTypeObjCClass,
- Symtab::eDebugNo,
- Symtab::eVisibilityAny);
- }
- }
- return objc_class_symbol;
-}
-
-// Some compilers don't emit the DW_AT_APPLE_objc_complete_type attribute. If they don't
-// then we can end up looking through all class types for a complete type and never find
-// the full definition. We need to know if this attribute is supported, so we determine
-// this here and cache th result. We also need to worry about the debug map DWARF file
-// if we are doing darwin DWARF in .o file debugging.
-bool
-SymbolFileDWARF::Supports_DW_AT_APPLE_objc_complete_type (DWARFCompileUnit *cu)
-{
- if (m_supports_DW_AT_APPLE_objc_complete_type == eLazyBoolCalculate)
- {
- m_supports_DW_AT_APPLE_objc_complete_type = eLazyBoolNo;
- if (cu && cu->Supports_DW_AT_APPLE_objc_complete_type())
- m_supports_DW_AT_APPLE_objc_complete_type = eLazyBoolYes;
- else
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- const uint32_t num_compile_units = GetNumCompileUnits();
- for (uint32_t cu_idx = 0; cu_idx < num_compile_units; ++cu_idx)
- {
- DWARFCompileUnit* dwarf_cu = debug_info->GetCompileUnitAtIndex(cu_idx);
- if (dwarf_cu != cu && dwarf_cu->Supports_DW_AT_APPLE_objc_complete_type())
- {
- m_supports_DW_AT_APPLE_objc_complete_type = eLazyBoolYes;
- break;
- }
- }
- }
- if (m_supports_DW_AT_APPLE_objc_complete_type == eLazyBoolNo && GetDebugMapSymfile ())
- return m_debug_map_symfile->Supports_DW_AT_APPLE_objc_complete_type (this);
- }
- return m_supports_DW_AT_APPLE_objc_complete_type == eLazyBoolYes;
-}
-
-// This function can be used when a DIE is found that is a forward declaration
-// DIE and we want to try and find a type that has the complete definition.
-TypeSP
-SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE (const DWARFDebugInfoEntry *die,
- const ConstString &type_name,
- bool must_be_implementation)
-{
-
- TypeSP type_sp;
-
- if (!type_name || (must_be_implementation && !GetObjCClassSymbol (type_name)))
- return type_sp;
-
- DIEArray die_offsets;
-
- if (m_using_apple_tables)
- {
- if (m_apple_types_ap.get())
- {
- const char *name_cstr = type_name.GetCString();
- m_apple_types_ap->FindCompleteObjCClassByName (name_cstr, die_offsets, must_be_implementation);
- }
- }
- else
- {
- if (!m_indexed)
- Index ();
-
- m_type_index.Find (type_name, die_offsets);
- }
-
- const size_t num_matches = die_offsets.size();
-
- DWARFCompileUnit* type_cu = NULL;
- const DWARFDebugInfoEntry* type_die = NULL;
- if (num_matches)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- type_die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &type_cu);
-
- if (type_die)
- {
- bool try_resolving_type = false;
-
- // Don't try and resolve the DIE we are looking for with the DIE itself!
- if (type_die != die)
- {
- switch (type_die->Tag())
- {
- case DW_TAG_class_type:
- case DW_TAG_structure_type:
- try_resolving_type = true;
- break;
- default:
- break;
- }
- }
-
- if (try_resolving_type)
- {
- if (must_be_implementation && type_cu->Supports_DW_AT_APPLE_objc_complete_type())
- try_resolving_type = type_die->GetAttributeValueAsUnsigned (this, type_cu, DW_AT_APPLE_objc_complete_type, 0);
-
- if (try_resolving_type)
- {
- Type *resolved_type = ResolveType (type_cu, type_die, false);
- if (resolved_type && resolved_type != DIE_IS_BEING_PARSED)
- {
- DEBUG_PRINTF ("resolved 0x%8.8llx (cu 0x%8.8llx) from %s to 0x%8.8llx (cu 0x%8.8llx)\n",
- MakeUserID(die->GetOffset()),
- MakeUserID(dwarf_cu->GetOffset()),
- m_obj_file->GetFileSpec().GetFilename().AsCString(),
- MakeUserID(type_die->GetOffset()),
- MakeUserID(type_cu->GetOffset()));
-
- if (die)
- m_die_to_type[die] = resolved_type;
- type_sp = resolved_type->shared_from_this();
- break;
- }
- }
- }
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_types accelerator table had bad die 0x%8.8x for '%s')\n",
- die_offset, type_name.GetCString());
- }
- }
-
- }
- }
- return type_sp;
-}
-
-
-//----------------------------------------------------------------------
-// This function helps to ensure that the declaration contexts match for
-// two different DIEs. Often times debug information will refer to a
-// forward declaration of a type (the equivalent of "struct my_struct;".
-// There will often be a declaration of that type elsewhere that has the
-// full definition. When we go looking for the full type "my_struct", we
-// will find one or more matches in the accelerator tables and we will
-// then need to make sure the type was in the same declaration context
-// as the original DIE. This function can efficiently compare two DIEs
-// and will return true when the declaration context matches, and false
-// when they don't.
-//----------------------------------------------------------------------
-bool
-SymbolFileDWARF::DIEDeclContextsMatch (DWARFCompileUnit* cu1, const DWARFDebugInfoEntry *die1,
- DWARFCompileUnit* cu2, const DWARFDebugInfoEntry *die2)
-{
- if (die1 == die2)
- return true;
-
-#if defined (LLDB_CONFIGURATION_DEBUG)
- // You can't and shouldn't call this function with a compile unit from
- // two different SymbolFileDWARF instances.
- assert (DebugInfo()->ContainsCompileUnit (cu1));
- assert (DebugInfo()->ContainsCompileUnit (cu2));
-#endif
-
- DWARFDIECollection decl_ctx_1;
- DWARFDIECollection decl_ctx_2;
- //The declaration DIE stack is a stack of the declaration context
- // DIEs all the way back to the compile unit. If a type "T" is
- // declared inside a class "B", and class "B" is declared inside
- // a class "A" and class "A" is in a namespace "lldb", and the
- // namespace is in a compile unit, there will be a stack of DIEs:
- //
- // [0] DW_TAG_class_type for "B"
- // [1] DW_TAG_class_type for "A"
- // [2] DW_TAG_namespace for "lldb"
- // [3] DW_TAG_compile_unit for the source file.
- //
- // We grab both contexts and make sure that everything matches
- // all the way back to the compiler unit.
-
- // First lets grab the decl contexts for both DIEs
- die1->GetDeclContextDIEs (this, cu1, decl_ctx_1);
- die2->GetDeclContextDIEs (this, cu2, decl_ctx_2);
- // Make sure the context arrays have the same size, otherwise
- // we are done
- const size_t count1 = decl_ctx_1.Size();
- const size_t count2 = decl_ctx_2.Size();
- if (count1 != count2)
- return false;
-
- // Make sure the DW_TAG values match all the way back up the the
- // compile unit. If they don't, then we are done.
- const DWARFDebugInfoEntry *decl_ctx_die1;
- const DWARFDebugInfoEntry *decl_ctx_die2;
- size_t i;
- for (i=0; i<count1; i++)
- {
- decl_ctx_die1 = decl_ctx_1.GetDIEPtrAtIndex (i);
- decl_ctx_die2 = decl_ctx_2.GetDIEPtrAtIndex (i);
- if (decl_ctx_die1->Tag() != decl_ctx_die2->Tag())
- return false;
- }
-#if defined LLDB_CONFIGURATION_DEBUG
-
- // Make sure the top item in the decl context die array is always
- // DW_TAG_compile_unit. If it isn't then something went wrong in
- // the DWARFDebugInfoEntry::GetDeclContextDIEs() function...
- assert (decl_ctx_1.GetDIEPtrAtIndex (count1 - 1)->Tag() == DW_TAG_compile_unit);
-
-#endif
- // Always skip the compile unit when comparing by only iterating up to
- // "count - 1". Here we compare the names as we go.
- for (i=0; i<count1 - 1; i++)
- {
- decl_ctx_die1 = decl_ctx_1.GetDIEPtrAtIndex (i);
- decl_ctx_die2 = decl_ctx_2.GetDIEPtrAtIndex (i);
- const char *name1 = decl_ctx_die1->GetName(this, cu1);
- const char *name2 = decl_ctx_die2->GetName(this, cu2);
- // If the string was from a DW_FORM_strp, then the pointer will often
- // be the same!
- if (name1 == name2)
- continue;
-
- // Name pointers are not equal, so only compare the strings
- // if both are not NULL.
- if (name1 && name2)
- {
- // If the strings don't compare, we are done...
- if (strcmp(name1, name2) != 0)
- return false;
- }
- else
- {
- // One name was NULL while the other wasn't
- return false;
- }
- }
- // We made it through all of the checks and the declaration contexts
- // are equal.
- return true;
-}
-
-// This function can be used when a DIE is found that is a forward declaration
-// DIE and we want to try and find a type that has the complete definition.
-// "cu" and "die" must be from this SymbolFileDWARF
-TypeSP
-SymbolFileDWARF::FindDefinitionTypeForDIE (DWARFCompileUnit* cu,
- const DWARFDebugInfoEntry *die,
- const ConstString &type_name)
-{
- TypeSP type_sp;
-
-#if defined (LLDB_CONFIGURATION_DEBUG)
- // You can't and shouldn't call this function with a compile unit from
- // another SymbolFileDWARF instance.
- assert (DebugInfo()->ContainsCompileUnit (cu));
-#endif
-
- if (cu == NULL || die == NULL || !type_name)
- return type_sp;
-
- LogSP log (LogChannelDWARF::GetLogIfAny(DWARF_LOG_TYPE_COMPLETION|DWARF_LOG_LOOKUPS));
- if (log)
- {
- std::string qualified_name;
- die->GetQualifiedName(this, cu, qualified_name);
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindDefinitionTypeForDIE(die=0x%8.8x (%s), name='%s')",
- die->GetOffset(),
- qualified_name.c_str(),
- type_name.GetCString());
- }
-
- DIEArray die_offsets;
-
- if (m_using_apple_tables)
- {
- if (m_apple_types_ap.get())
- {
- if (m_apple_types_ap->GetHeader().header_data.atoms.size() > 1)
- {
- m_apple_types_ap->FindByNameAndTag (type_name.GetCString(), die->Tag(), die_offsets);
- }
- else
- {
- m_apple_types_ap->FindByName (type_name.GetCString(), die_offsets);
- }
- }
- }
- else
- {
- if (!m_indexed)
- Index ();
-
- m_type_index.Find (type_name, die_offsets);
- }
-
- const size_t num_matches = die_offsets.size();
-
- const dw_tag_t die_tag = die->Tag();
-
- DWARFCompileUnit* type_cu = NULL;
- const DWARFDebugInfoEntry* type_die = NULL;
- if (num_matches)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- type_die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &type_cu);
-
- if (type_die)
- {
- bool try_resolving_type = false;
-
- // Don't try and resolve the DIE we are looking for with the DIE itself!
- if (type_die != die)
- {
- const dw_tag_t type_die_tag = type_die->Tag();
- // Make sure the tags match
- if (type_die_tag == die_tag)
- {
- // The tags match, lets try resolving this type
- try_resolving_type = true;
- }
- else
- {
- // The tags don't match, but we need to watch our for a
- // forward declaration for a struct and ("struct foo")
- // ends up being a class ("class foo { ... };") or
- // vice versa.
- switch (type_die_tag)
- {
- case DW_TAG_class_type:
- // We had a "class foo", see if we ended up with a "struct foo { ... };"
- try_resolving_type = (die_tag == DW_TAG_structure_type);
- break;
- case DW_TAG_structure_type:
- // We had a "struct foo", see if we ended up with a "class foo { ... };"
- try_resolving_type = (die_tag == DW_TAG_class_type);
- break;
- default:
- // Tags don't match, don't event try to resolve
- // using this type whose name matches....
- break;
- }
- }
- }
-
- if (try_resolving_type)
- {
- if (log)
- {
- std::string qualified_name;
- type_die->GetQualifiedName(this, cu, qualified_name);
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindDefinitionTypeForDIE(die=0x%8.8x, name='%s') trying die=0x%8.8x (%s)",
- die->GetOffset(),
- type_name.GetCString(),
- type_die->GetOffset(),
- qualified_name.c_str());
- }
-
- // Make sure the decl contexts match all the way up
- if (DIEDeclContextsMatch(cu, die, type_cu, type_die))
- {
- Type *resolved_type = ResolveType (type_cu, type_die, false);
- if (resolved_type && resolved_type != DIE_IS_BEING_PARSED)
- {
- DEBUG_PRINTF ("resolved 0x%8.8llx (cu 0x%8.8llx) from %s to 0x%8.8llx (cu 0x%8.8llx)\n",
- MakeUserID(die->GetOffset()),
- MakeUserID(dwarf_cu->GetOffset()),
- m_obj_file->GetFileSpec().GetFilename().AsCString(),
- MakeUserID(type_die->GetOffset()),
- MakeUserID(type_cu->GetOffset()));
-
- m_die_to_type[die] = resolved_type;
- type_sp = resolved_type->shared_from_this();
- break;
- }
- }
- }
- else
- {
- if (log)
- {
- std::string qualified_name;
- type_die->GetQualifiedName(this, cu, qualified_name);
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindDefinitionTypeForDIE(die=0x%8.8x, name='%s') ignoring die=0x%8.8x (%s)",
- die->GetOffset(),
- type_name.GetCString(),
- type_die->GetOffset(),
- qualified_name.c_str());
- }
- }
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_types accelerator table had bad die 0x%8.8x for '%s')\n",
- die_offset, type_name.GetCString());
- }
- }
-
- }
- }
- return type_sp;
-}
-
-TypeSP
-SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext (const DWARFDeclContext &dwarf_decl_ctx)
-{
- TypeSP type_sp;
-
- const uint32_t dwarf_decl_ctx_count = dwarf_decl_ctx.GetSize();
- if (dwarf_decl_ctx_count > 0)
- {
- const ConstString type_name(dwarf_decl_ctx[0].name);
- const dw_tag_t tag = dwarf_decl_ctx[0].tag;
-
- if (type_name)
- {
- LogSP log (LogChannelDWARF::GetLogIfAny(DWARF_LOG_TYPE_COMPLETION|DWARF_LOG_LOOKUPS));
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(tag=%s, qualified-name='%s')",
- DW_TAG_value_to_name(dwarf_decl_ctx[0].tag),
- dwarf_decl_ctx.GetQualifiedName());
- }
-
- DIEArray die_offsets;
-
- if (m_using_apple_tables)
- {
- if (m_apple_types_ap.get())
- {
- if (m_apple_types_ap->GetHeader().header_data.atoms.size() > 1)
- {
- m_apple_types_ap->FindByNameAndTag (type_name.GetCString(), tag, die_offsets);
- }
- else
- {
- m_apple_types_ap->FindByName (type_name.GetCString(), die_offsets);
- }
- }
- }
- else
- {
- if (!m_indexed)
- Index ();
-
- m_type_index.Find (type_name, die_offsets);
- }
-
- const size_t num_matches = die_offsets.size();
-
-
- DWARFCompileUnit* type_cu = NULL;
- const DWARFDebugInfoEntry* type_die = NULL;
- if (num_matches)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- type_die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &type_cu);
-
- if (type_die)
- {
- bool try_resolving_type = false;
-
- // Don't try and resolve the DIE we are looking for with the DIE itself!
- const dw_tag_t type_tag = type_die->Tag();
- // Make sure the tags match
- if (type_tag == tag)
- {
- // The tags match, lets try resolving this type
- try_resolving_type = true;
- }
- else
- {
- // The tags don't match, but we need to watch our for a
- // forward declaration for a struct and ("struct foo")
- // ends up being a class ("class foo { ... };") or
- // vice versa.
- switch (type_tag)
- {
- case DW_TAG_class_type:
- // We had a "class foo", see if we ended up with a "struct foo { ... };"
- try_resolving_type = (tag == DW_TAG_structure_type);
- break;
- case DW_TAG_structure_type:
- // We had a "struct foo", see if we ended up with a "class foo { ... };"
- try_resolving_type = (tag == DW_TAG_class_type);
- break;
- default:
- // Tags don't match, don't event try to resolve
- // using this type whose name matches....
- break;
- }
- }
-
- if (try_resolving_type)
- {
- DWARFDeclContext type_dwarf_decl_ctx;
- type_die->GetDWARFDeclContext (this, type_cu, type_dwarf_decl_ctx);
-
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(tag=%s, qualified-name='%s') trying die=0x%8.8x (%s)",
- DW_TAG_value_to_name(dwarf_decl_ctx[0].tag),
- dwarf_decl_ctx.GetQualifiedName(),
- type_die->GetOffset(),
- type_dwarf_decl_ctx.GetQualifiedName());
- }
-
- // Make sure the decl contexts match all the way up
- if (dwarf_decl_ctx == type_dwarf_decl_ctx)
- {
- Type *resolved_type = ResolveType (type_cu, type_die, false);
- if (resolved_type && resolved_type != DIE_IS_BEING_PARSED)
- {
- type_sp = resolved_type->shared_from_this();
- break;
- }
- }
- }
- else
- {
- if (log)
- {
- std::string qualified_name;
- type_die->GetQualifiedName(this, type_cu, qualified_name);
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(tag=%s, qualified-name='%s') ignoring die=0x%8.8x (%s)",
- DW_TAG_value_to_name(dwarf_decl_ctx[0].tag),
- dwarf_decl_ctx.GetQualifiedName(),
- type_die->GetOffset(),
- qualified_name.c_str());
- }
- }
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_types accelerator table had bad die 0x%8.8x for '%s')\n",
- die_offset, type_name.GetCString());
- }
- }
-
- }
- }
- }
- }
- return type_sp;
-}
-
-bool
-SymbolFileDWARF::CopyUniqueClassMethodTypes (Type *class_type,
- DWARFCompileUnit* src_cu,
- const DWARFDebugInfoEntry *src_class_die,
- DWARFCompileUnit* dst_cu,
- const DWARFDebugInfoEntry *dst_class_die)
-{
- if (!class_type || !src_cu || !src_class_die || !dst_cu || !dst_class_die)
- return false;
- if (src_class_die->Tag() != dst_class_die->Tag())
- return false;
-
- // We need to complete the class type so we can get all of the method types
- // parsed so we can then unique those types to their equivalent counterparts
- // in "dst_cu" and "dst_class_die"
- class_type->GetClangFullType();
-
- const DWARFDebugInfoEntry *src_die;
- const DWARFDebugInfoEntry *dst_die;
- UniqueCStringMap<const DWARFDebugInfoEntry *> src_name_to_die;
- UniqueCStringMap<const DWARFDebugInfoEntry *> dst_name_to_die;
- for (src_die = src_class_die->GetFirstChild(); src_die != NULL; src_die = src_die->GetSibling())
- {
- if (src_die->Tag() == DW_TAG_subprogram)
- {
- const char *src_name = src_die->GetMangledName (this, src_cu);
- if (src_name)
- src_name_to_die.Append(ConstString(src_name).GetCString(), src_die);
- }
- }
- for (dst_die = dst_class_die->GetFirstChild(); dst_die != NULL; dst_die = dst_die->GetSibling())
- {
- if (dst_die->Tag() == DW_TAG_subprogram)
- {
- const char *dst_name = dst_die->GetMangledName (this, dst_cu);
- if (dst_name)
- dst_name_to_die.Append(ConstString(dst_name).GetCString(), dst_die);
- }
- }
- const uint32_t src_size = src_name_to_die.GetSize ();
- const uint32_t dst_size = dst_name_to_die.GetSize ();
- LogSP log (LogChannelDWARF::GetLogIfAny(DWARF_LOG_DEBUG_INFO | DWARF_LOG_TYPE_COMPLETION));
-
- if (src_size && dst_size)
- {
- if (src_size != dst_size)
- {
- if (log)
- log->Printf("warning: tried to unique class DIE 0x%8.8x to 0x%8.8x, but they didn't have the same size (src=%d, dst=%d)",
- src_class_die->GetOffset(),
- dst_class_die->GetOffset(),
- src_size,
- dst_size);
-
- return false;
- }
-
- uint32_t idx;
- for (idx = 0; idx < src_size; ++idx)
- {
- src_die = src_name_to_die.GetValueAtIndexUnchecked (idx);
- dst_die = dst_name_to_die.GetValueAtIndexUnchecked (idx);
-
- if (src_die->Tag() != dst_die->Tag())
- {
- if (log)
- log->Printf("warning: tried to unique class DIE 0x%8.8x to 0x%8.8x, but 0x%8.8x (%s) tags didn't match 0x%8.8x (%s)",
- src_class_die->GetOffset(),
- dst_class_die->GetOffset(),
- src_die->GetOffset(),
- DW_TAG_value_to_name(src_die->Tag()),
- dst_die->GetOffset(),
- DW_TAG_value_to_name(src_die->Tag()));
- return false;
- }
-
- const char *src_name = src_die->GetMangledName (this, src_cu);
- const char *dst_name = dst_die->GetMangledName (this, dst_cu);
-
- // Make sure the names match
- if (src_name == dst_name || (strcmp (src_name, dst_name) == 0))
- continue;
-
- if (log)
- log->Printf("warning: tried to unique class DIE 0x%8.8x to 0x%8.8x, but 0x%8.8x (%s) names didn't match 0x%8.8x (%s)",
- src_class_die->GetOffset(),
- dst_class_die->GetOffset(),
- src_die->GetOffset(),
- src_name,
- dst_die->GetOffset(),
- dst_name);
-
- return false;
- }
-
- for (idx = 0; idx < src_size; ++idx)
- {
- src_die = src_name_to_die.GetValueAtIndexUnchecked (idx);
- dst_die = dst_name_to_die.GetValueAtIndexUnchecked (idx);
-
- clang::DeclContext *src_decl_ctx = m_die_to_decl_ctx[src_die];
- if (src_decl_ctx)
- {
- if (log)
- log->Printf ("uniquing decl context %p from 0x%8.8x for 0x%8.8x\n", src_decl_ctx, src_die->GetOffset(), dst_die->GetOffset());
- LinkDeclContextToDIE (src_decl_ctx, dst_die);
- }
- else
- {
- if (log)
- log->Printf ("warning: tried to unique decl context from 0x%8.8x for 0x%8.8x, but none was found\n", src_die->GetOffset(), dst_die->GetOffset());
- }
-
- Type *src_child_type = m_die_to_type[src_die];
- if (src_child_type)
- {
- if (log)
- log->Printf ("uniquing type %p (uid=0x%llx) from 0x%8.8x for 0x%8.8x\n", src_child_type, src_child_type->GetID(), src_die->GetOffset(), dst_die->GetOffset());
- m_die_to_type[dst_die] = src_child_type;
- }
- else
- {
- if (log)
- log->Printf ("warning: tried to unique lldb_private::Type from 0x%8.8x for 0x%8.8x, but none was found\n", src_die->GetOffset(), dst_die->GetOffset());
- }
- }
- return true;
- }
- else
- {
- if (log)
- log->Printf("warning: tried to unique class DIE 0x%8.8x to 0x%8.8x, but 0x%8.8x has %u methods and 0x%8.8x has %u",
- src_class_die->GetOffset(),
- dst_class_die->GetOffset(),
- src_die->GetOffset(),
- src_size,
- dst_die->GetOffset(),
- dst_size);
- }
- return false;
-}
-
-TypeSP
-SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu, const DWARFDebugInfoEntry *die, bool *type_is_new_ptr)
-{
- TypeSP type_sp;
-
- if (type_is_new_ptr)
- *type_is_new_ptr = false;
-
-#if defined(LLDB_CONFIGURATION_DEBUG) or defined(LLDB_CONFIGURATION_RELEASE)
- static DIEStack g_die_stack;
- DIEStack::ScopedPopper scoped_die_logger(g_die_stack);
-#endif
-
- AccessType accessibility = eAccessNone;
- if (die != NULL)
- {
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_INFO));
- if (log)
- {
- const DWARFDebugInfoEntry *context_die;
- clang::DeclContext *context = GetClangDeclContextContainingDIE (dwarf_cu, die, &context_die);
-
- GetObjectFile()->GetModule()->LogMessage (log.get(), "SymbolFileDWARF::ParseType (die = 0x%8.8x, decl_ctx = %p (die 0x%8.8x)) %s name = '%s')",
- die->GetOffset(),
- context,
- context_die->GetOffset(),
- DW_TAG_value_to_name(die->Tag()),
- die->GetName(this, dwarf_cu));
-
-#if defined(LLDB_CONFIGURATION_DEBUG) or defined(LLDB_CONFIGURATION_RELEASE)
- scoped_die_logger.Push (dwarf_cu, die);
- g_die_stack.LogDIEs(log.get(), this);
-#endif
- }
-//
-// LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_INFO));
-// if (log && dwarf_cu)
-// {
-// StreamString s;
-// die->DumpLocation (this, dwarf_cu, s);
-// GetObjectFile()->GetModule()->LogMessage (log.get(), "SymbolFileDwarf::%s %s", __FUNCTION__, s.GetData());
-//
-// }
-
- Type *type_ptr = m_die_to_type.lookup (die);
- TypeList* type_list = GetTypeList();
- if (type_ptr == NULL)
- {
- ClangASTContext &ast = GetClangASTContext();
- if (type_is_new_ptr)
- *type_is_new_ptr = true;
-
- const dw_tag_t tag = die->Tag();
-
- bool is_forward_declaration = false;
- DWARFDebugInfoEntry::Attributes attributes;
- const char *type_name_cstr = NULL;
- ConstString type_name_const_str;
- Type::ResolveState resolve_state = Type::eResolveStateUnresolved;
- size_t byte_size = 0;
- Declaration decl;
-
- Type::EncodingDataType encoding_data_type = Type::eEncodingIsUID;
- clang_type_t clang_type = NULL;
-
- dw_attr_t attr;
-
- switch (tag)
- {
- case DW_TAG_base_type:
- case DW_TAG_pointer_type:
- case DW_TAG_reference_type:
- case DW_TAG_rvalue_reference_type:
- case DW_TAG_typedef:
- case DW_TAG_const_type:
- case DW_TAG_restrict_type:
- case DW_TAG_volatile_type:
- case DW_TAG_unspecified_type:
- {
- // Set a bit that lets us know that we are currently parsing this
- m_die_to_type[die] = DIE_IS_BEING_PARSED;
-
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, NULL, attributes);
- uint32_t encoding = 0;
- lldb::user_id_t encoding_uid = LLDB_INVALID_UID;
-
- if (num_attributes > 0)
- {
- uint32_t i;
- for (i=0; i<num_attributes; ++i)
- {
- attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_name:
-
- type_name_cstr = form_value.AsCString(&get_debug_str_data());
- // Work around a bug in llvm-gcc where they give a name to a reference type which doesn't
- // include the "&"...
- if (tag == DW_TAG_reference_type)
- {
- if (strchr (type_name_cstr, '&') == NULL)
- type_name_cstr = NULL;
- }
- if (type_name_cstr)
- type_name_const_str.SetCString(type_name_cstr);
- break;
- case DW_AT_byte_size: byte_size = form_value.Unsigned(); break;
- case DW_AT_encoding: encoding = form_value.Unsigned(); break;
- case DW_AT_type: encoding_uid = form_value.Reference(dwarf_cu); break;
- default:
- case DW_AT_sibling:
- break;
- }
- }
- }
- }
-
- DEBUG_PRINTF ("0x%8.8llx: %s (\"%s\") type => 0x%8.8x\n", MakeUserID(die->GetOffset()), DW_TAG_value_to_name(tag), type_name_cstr, encoding_uid);
-
- switch (tag)
- {
- default:
- break;
-
- case DW_TAG_unspecified_type:
- if (strcmp(type_name_cstr, "nullptr_t") == 0)
- {
- resolve_state = Type::eResolveStateFull;
- clang_type = ast.getASTContext()->NullPtrTy.getAsOpaquePtr();
- break;
- }
- // Fall through to base type below in case we can handle the type there...
-
- case DW_TAG_base_type:
- resolve_state = Type::eResolveStateFull;
- clang_type = ast.GetBuiltinTypeForDWARFEncodingAndBitSize (type_name_cstr,
- encoding,
- byte_size * 8);
- break;
-
- case DW_TAG_pointer_type: encoding_data_type = Type::eEncodingIsPointerUID; break;
- case DW_TAG_reference_type: encoding_data_type = Type::eEncodingIsLValueReferenceUID; break;
- case DW_TAG_rvalue_reference_type: encoding_data_type = Type::eEncodingIsRValueReferenceUID; break;
- case DW_TAG_typedef: encoding_data_type = Type::eEncodingIsTypedefUID; break;
- case DW_TAG_const_type: encoding_data_type = Type::eEncodingIsConstUID; break;
- case DW_TAG_restrict_type: encoding_data_type = Type::eEncodingIsRestrictUID; break;
- case DW_TAG_volatile_type: encoding_data_type = Type::eEncodingIsVolatileUID; break;
- }
-
- if (clang_type == NULL && (encoding_data_type == Type::eEncodingIsPointerUID || encoding_data_type == Type::eEncodingIsTypedefUID))
- {
- if (type_name_cstr != NULL && sc.comp_unit != NULL &&
- (sc.comp_unit->GetLanguage() == eLanguageTypeObjC || sc.comp_unit->GetLanguage() == eLanguageTypeObjC_plus_plus))
- {
- static ConstString g_objc_type_name_id("id");
- static ConstString g_objc_type_name_Class("Class");
- static ConstString g_objc_type_name_selector("SEL");
-
- if (type_name_const_str == g_objc_type_name_id)
- {
- if (log)
- GetObjectFile()->GetModule()->LogMessage (log.get(), "SymbolFileDWARF::ParseType (die = 0x%8.8x) %s '%s' is Objective C 'id' built-in type.",
- die->GetOffset(),
- DW_TAG_value_to_name(die->Tag()),
- die->GetName(this, dwarf_cu));
- clang_type = ast.GetBuiltInType_objc_id();
- encoding_data_type = Type::eEncodingIsUID;
- encoding_uid = LLDB_INVALID_UID;
- resolve_state = Type::eResolveStateFull;
-
- }
- else if (type_name_const_str == g_objc_type_name_Class)
- {
- if (log)
- GetObjectFile()->GetModule()->LogMessage (log.get(), "SymbolFileDWARF::ParseType (die = 0x%8.8x) %s '%s' is Objective C 'Class' built-in type.",
- die->GetOffset(),
- DW_TAG_value_to_name(die->Tag()),
- die->GetName(this, dwarf_cu));
- clang_type = ast.GetBuiltInType_objc_Class();
- encoding_data_type = Type::eEncodingIsUID;
- encoding_uid = LLDB_INVALID_UID;
- resolve_state = Type::eResolveStateFull;
- }
- else if (type_name_const_str == g_objc_type_name_selector)
- {
- if (log)
- GetObjectFile()->GetModule()->LogMessage (log.get(), "SymbolFileDWARF::ParseType (die = 0x%8.8x) %s '%s' is Objective C 'selector' built-in type.",
- die->GetOffset(),
- DW_TAG_value_to_name(die->Tag()),
- die->GetName(this, dwarf_cu));
- clang_type = ast.GetBuiltInType_objc_selector();
- encoding_data_type = Type::eEncodingIsUID;
- encoding_uid = LLDB_INVALID_UID;
- resolve_state = Type::eResolveStateFull;
- }
- }
- }
-
- type_sp.reset( new Type (MakeUserID(die->GetOffset()),
- this,
- type_name_const_str,
- byte_size,
- NULL,
- encoding_uid,
- encoding_data_type,
- &decl,
- clang_type,
- resolve_state));
-
- m_die_to_type[die] = type_sp.get();
-
-// Type* encoding_type = GetUniquedTypeForDIEOffset(encoding_uid, type_sp, NULL, 0, 0, false);
-// if (encoding_type != NULL)
-// {
-// if (encoding_type != DIE_IS_BEING_PARSED)
-// type_sp->SetEncodingType(encoding_type);
-// else
-// m_indirect_fixups.push_back(type_sp.get());
-// }
- }
- break;
-
- case DW_TAG_structure_type:
- case DW_TAG_union_type:
- case DW_TAG_class_type:
- {
- // Set a bit that lets us know that we are currently parsing this
- m_die_to_type[die] = DIE_IS_BEING_PARSED;
- bool byte_size_valid = false;
-
- LanguageType class_language = eLanguageTypeUnknown;
- bool is_complete_objc_class = false;
- //bool struct_is_class = false;
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, NULL, attributes);
- if (num_attributes > 0)
- {
- uint32_t i;
- for (i=0; i<num_attributes; ++i)
- {
- attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file:
- if (dwarf_cu->DW_AT_decl_file_attributes_are_invalid())
- {
- // llvm-gcc outputs invalid DW_AT_decl_file attributes that always
- // point to the compile unit file, so we clear this invalid value
- // so that we can still unique types efficiently.
- decl.SetFile(FileSpec ("<invalid>", false));
- }
- else
- decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned()));
- break;
-
- case DW_AT_decl_line:
- decl.SetLine(form_value.Unsigned());
- break;
-
- case DW_AT_decl_column:
- decl.SetColumn(form_value.Unsigned());
- break;
-
- case DW_AT_name:
- type_name_cstr = form_value.AsCString(&get_debug_str_data());
- type_name_const_str.SetCString(type_name_cstr);
- break;
-
- case DW_AT_byte_size:
- byte_size = form_value.Unsigned();
- byte_size_valid = true;
- break;
-
- case DW_AT_accessibility:
- accessibility = DW_ACCESS_to_AccessType(form_value.Unsigned());
- break;
-
- case DW_AT_declaration:
- is_forward_declaration = form_value.Unsigned() != 0;
- break;
-
- case DW_AT_APPLE_runtime_class:
- class_language = (LanguageType)form_value.Signed();
- break;
-
- case DW_AT_APPLE_objc_complete_type:
- is_complete_objc_class = form_value.Signed();
- break;
-
- case DW_AT_allocated:
- case DW_AT_associated:
- case DW_AT_data_location:
- case DW_AT_description:
- case DW_AT_start_scope:
- case DW_AT_visibility:
- default:
- case DW_AT_sibling:
- break;
- }
- }
- }
- }
-
- UniqueDWARFASTType unique_ast_entry;
-
- // Only try and unique the type if it has a name.
- if (type_name_const_str &&
- GetUniqueDWARFASTTypeMap().Find (type_name_const_str,
- this,
- dwarf_cu,
- die,
- decl,
- byte_size_valid ? byte_size : -1,
- unique_ast_entry))
- {
- // We have already parsed this type or from another
- // compile unit. GCC loves to use the "one definition
- // rule" which can result in multiple definitions
- // of the same class over and over in each compile
- // unit.
- type_sp = unique_ast_entry.m_type_sp;
- if (type_sp)
- {
- m_die_to_type[die] = type_sp.get();
- return type_sp;
- }
- }
-
- DEBUG_PRINTF ("0x%8.8llx: %s (\"%s\")\n", MakeUserID(die->GetOffset()), DW_TAG_value_to_name(tag), type_name_cstr);
-
- int tag_decl_kind = -1;
- AccessType default_accessibility = eAccessNone;
- if (tag == DW_TAG_structure_type)
- {
- tag_decl_kind = clang::TTK_Struct;
- default_accessibility = eAccessPublic;
- }
- else if (tag == DW_TAG_union_type)
- {
- tag_decl_kind = clang::TTK_Union;
- default_accessibility = eAccessPublic;
- }
- else if (tag == DW_TAG_class_type)
- {
- tag_decl_kind = clang::TTK_Class;
- default_accessibility = eAccessPrivate;
- }
-
- if (byte_size_valid && byte_size == 0 && type_name_cstr &&
- die->HasChildren() == false &&
- sc.comp_unit->GetLanguage() == eLanguageTypeObjC)
- {
- // Work around an issue with clang at the moment where
- // forward declarations for objective C classes are emitted
- // as:
- // DW_TAG_structure_type [2]
- // DW_AT_name( "ForwardObjcClass" )
- // DW_AT_byte_size( 0x00 )
- // DW_AT_decl_file( "..." )
- // DW_AT_decl_line( 1 )
- //
- // Note that there is no DW_AT_declaration and there are
- // no children, and the byte size is zero.
- is_forward_declaration = true;
- }
-
- if (class_language == eLanguageTypeObjC ||
- class_language == eLanguageTypeObjC_plus_plus)
- {
- if (!is_complete_objc_class && Supports_DW_AT_APPLE_objc_complete_type(dwarf_cu))
- {
- // We have a valid eSymbolTypeObjCClass class symbol whose
- // name matches the current objective C class that we
- // are trying to find and this DIE isn't the complete
- // definition (we checked is_complete_objc_class above and
- // know it is false), so the real definition is in here somewhere
- type_sp = FindCompleteObjCDefinitionTypeForDIE (die, type_name_const_str, true);
-
- if (!type_sp && GetDebugMapSymfile ())
- {
- // We weren't able to find a full declaration in
- // this DWARF, see if we have a declaration anywhere
- // else...
- type_sp = m_debug_map_symfile->FindCompleteObjCDefinitionTypeForDIE (die, type_name_const_str, true);
- }
-
- if (type_sp)
- {
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF(%p) - 0x%8.8x: %s type \"%s\" is an incomplete objc type, complete type is 0x%8.8llx",
- this,
- die->GetOffset(),
- DW_TAG_value_to_name(tag),
- type_name_cstr,
- type_sp->GetID());
- }
-
- // We found a real definition for this type elsewhere
- // so lets use it and cache the fact that we found
- // a complete type for this die
- m_die_to_type[die] = type_sp.get();
- return type_sp;
- }
- }
- }
-
-
- if (is_forward_declaration)
- {
- // We have a forward declaration to a type and we need
- // to try and find a full declaration. We look in the
- // current type index just in case we have a forward
- // declaration followed by an actual declarations in the
- // DWARF. If this fails, we need to look elsewhere...
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF(%p) - 0x%8.8x: %s type \"%s\" is a forward declaration, trying to find complete type",
- this,
- die->GetOffset(),
- DW_TAG_value_to_name(tag),
- type_name_cstr);
- }
-
- DWARFDeclContext die_decl_ctx;
- die->GetDWARFDeclContext(this, dwarf_cu, die_decl_ctx);
-
- //type_sp = FindDefinitionTypeForDIE (dwarf_cu, die, type_name_const_str);
- type_sp = FindDefinitionTypeForDWARFDeclContext (die_decl_ctx);
-
- if (!type_sp && GetDebugMapSymfile ())
- {
- // We weren't able to find a full declaration in
- // this DWARF, see if we have a declaration anywhere
- // else...
- type_sp = m_debug_map_symfile->FindDefinitionTypeForDWARFDeclContext (die_decl_ctx);
- }
-
- if (type_sp)
- {
- if (log)
- {
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF(%p) - 0x%8.8x: %s type \"%s\" is a forward declaration, complete type is 0x%8.8llx",
- this,
- die->GetOffset(),
- DW_TAG_value_to_name(tag),
- type_name_cstr,
- type_sp->GetID());
- }
-
- // We found a real definition for this type elsewhere
- // so lets use it and cache the fact that we found
- // a complete type for this die
- m_die_to_type[die] = type_sp.get();
- return type_sp;
- }
- }
- assert (tag_decl_kind != -1);
- bool clang_type_was_created = false;
- clang_type = m_forward_decl_die_to_clang_type.lookup (die);
- if (clang_type == NULL)
- {
- const DWARFDebugInfoEntry *decl_ctx_die;
-
- clang::DeclContext *decl_ctx = GetClangDeclContextContainingDIE (dwarf_cu, die, &decl_ctx_die);
- if (accessibility == eAccessNone && decl_ctx)
- {
- // Check the decl context that contains this class/struct/union.
- // If it is a class we must give it an accessability.
- const clang::Decl::Kind containing_decl_kind = decl_ctx->getDeclKind();
- if (DeclKindIsCXXClass (containing_decl_kind))
- accessibility = default_accessibility;
- }
-
- if (type_name_cstr && strchr (type_name_cstr, '<'))
- {
- ClangASTContext::TemplateParameterInfos template_param_infos;
- if (ParseTemplateParameterInfos (dwarf_cu, die, template_param_infos))
- {
- clang::ClassTemplateDecl *class_template_decl = ParseClassTemplateDecl (decl_ctx,
- accessibility,
- type_name_cstr,
- tag_decl_kind,
- template_param_infos);
-
- clang::ClassTemplateSpecializationDecl *class_specialization_decl = ast.CreateClassTemplateSpecializationDecl (decl_ctx,
- class_template_decl,
- tag_decl_kind,
- template_param_infos);
- clang_type = ast.CreateClassTemplateSpecializationType (class_specialization_decl);
- clang_type_was_created = true;
-
- GetClangASTContext().SetMetadataAsUserID ((uintptr_t)class_template_decl, MakeUserID(die->GetOffset()));
- GetClangASTContext().SetMetadataAsUserID ((uintptr_t)class_specialization_decl, MakeUserID(die->GetOffset()));
- }
- }
-
- if (!clang_type_was_created)
- {
- clang_type_was_created = true;
- ClangASTMetadata metadata;
- metadata.SetUserID(MakeUserID(die->GetOffset()));
- clang_type = ast.CreateRecordType (decl_ctx,
- accessibility,
- type_name_cstr,
- tag_decl_kind,
- class_language,
- &metadata);
- }
- }
-
- // Store a forward declaration to this class type in case any
- // parameters in any class methods need it for the clang
- // types for function prototypes.
- LinkDeclContextToDIE(ClangASTContext::GetDeclContextForType(clang_type), die);
- type_sp.reset (new Type (MakeUserID(die->GetOffset()),
- this,
- type_name_const_str,
- byte_size,
- NULL,
- LLDB_INVALID_UID,
- Type::eEncodingIsUID,
- &decl,
- clang_type,
- Type::eResolveStateForward));
-
- type_sp->SetIsCompleteObjCClass(is_complete_objc_class);
-
-
- // Add our type to the unique type map so we don't
- // end up creating many copies of the same type over
- // and over in the ASTContext for our module
- unique_ast_entry.m_type_sp = type_sp;
- unique_ast_entry.m_symfile = this;
- unique_ast_entry.m_cu = dwarf_cu;
- unique_ast_entry.m_die = die;
- unique_ast_entry.m_declaration = decl;
- unique_ast_entry.m_byte_size = byte_size;
- GetUniqueDWARFASTTypeMap().Insert (type_name_const_str,
- unique_ast_entry);
-
- if (!is_forward_declaration)
- {
- // Always start the definition for a class type so that
- // if the class has child classes or types that require
- // the class to be created for use as their decl contexts
- // the class will be ready to accept these child definitions.
- if (die->HasChildren() == false)
- {
- // No children for this struct/union/class, lets finish it
- ast.StartTagDeclarationDefinition (clang_type);
- ast.CompleteTagDeclarationDefinition (clang_type);
-
- if (tag == DW_TAG_structure_type) // this only applies in C
- {
- clang::QualType qual_type = clang::QualType::getFromOpaquePtr (clang_type);
- const clang::RecordType *record_type = qual_type->getAs<clang::RecordType> ();
-
- if (record_type)
- {
- clang::RecordDecl *record_decl = record_type->getDecl();
-
- if (record_decl)
- {
- LayoutInfo layout_info;
-
- layout_info.alignment = 0;
- layout_info.bit_size = 0;
-
- m_record_decl_to_layout_map.insert(std::make_pair(record_decl, layout_info));
- }
- }
- }
- }
- else if (clang_type_was_created)
- {
- // Start the definition if the class is not objective C since
- // the underlying decls respond to isCompleteDefinition(). Objective
- // C decls dont' respond to isCompleteDefinition() so we can't
- // start the declaration definition right away. For C++ classs/union/structs
- // we want to start the definition in case the class is needed as the
- // declaration context for a contained class or type without the need
- // to complete that type..
-
- if (class_language != eLanguageTypeObjC &&
- class_language != eLanguageTypeObjC_plus_plus)
- ast.StartTagDeclarationDefinition (clang_type);
-
- // Leave this as a forward declaration until we need
- // to know the details of the type. lldb_private::Type
- // will automatically call the SymbolFile virtual function
- // "SymbolFileDWARF::ResolveClangOpaqueTypeDefinition(Type *)"
- // When the definition needs to be defined.
- m_forward_decl_die_to_clang_type[die] = clang_type;
- m_forward_decl_clang_type_to_die[ClangASTType::RemoveFastQualifiers (clang_type)] = die;
- ClangASTContext::SetHasExternalStorage (clang_type, true);
- }
- }
-
- }
- break;
-
- case DW_TAG_enumeration_type:
- {
- // Set a bit that lets us know that we are currently parsing this
- m_die_to_type[die] = DIE_IS_BEING_PARSED;
-
- lldb::user_id_t encoding_uid = DW_INVALID_OFFSET;
-
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, NULL, attributes);
- if (num_attributes > 0)
- {
- uint32_t i;
-
- for (i=0; i<num_attributes; ++i)
- {
- attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_name:
- type_name_cstr = form_value.AsCString(&get_debug_str_data());
- type_name_const_str.SetCString(type_name_cstr);
- break;
- case DW_AT_type: encoding_uid = form_value.Reference(dwarf_cu); break;
- case DW_AT_byte_size: byte_size = form_value.Unsigned(); break;
- case DW_AT_accessibility: break; //accessibility = DW_ACCESS_to_AccessType(form_value.Unsigned()); break;
- case DW_AT_declaration: break; //is_forward_declaration = form_value.Unsigned() != 0; break;
- case DW_AT_allocated:
- case DW_AT_associated:
- case DW_AT_bit_stride:
- case DW_AT_byte_stride:
- case DW_AT_data_location:
- case DW_AT_description:
- case DW_AT_start_scope:
- case DW_AT_visibility:
- case DW_AT_specification:
- case DW_AT_abstract_origin:
- case DW_AT_sibling:
- break;
- }
- }
- }
-
- DEBUG_PRINTF ("0x%8.8llx: %s (\"%s\")\n", MakeUserID(die->GetOffset()), DW_TAG_value_to_name(tag), type_name_cstr);
-
- clang_type_t enumerator_clang_type = NULL;
- clang_type = m_forward_decl_die_to_clang_type.lookup (die);
- if (clang_type == NULL)
- {
- enumerator_clang_type = ast.GetBuiltinTypeForDWARFEncodingAndBitSize (NULL,
- DW_ATE_signed,
- byte_size * 8);
- clang_type = ast.CreateEnumerationType (type_name_cstr,
- GetClangDeclContextContainingDIE (dwarf_cu, die, NULL),
- decl,
- enumerator_clang_type);
- }
- else
- {
- enumerator_clang_type = ClangASTContext::GetEnumerationIntegerType (clang_type);
- assert (enumerator_clang_type != NULL);
- }
-
- LinkDeclContextToDIE(ClangASTContext::GetDeclContextForType(clang_type), die);
-
- type_sp.reset( new Type (MakeUserID(die->GetOffset()),
- this,
- type_name_const_str,
- byte_size,
- NULL,
- encoding_uid,
- Type::eEncodingIsUID,
- &decl,
- clang_type,
- Type::eResolveStateForward));
-
- ast.StartTagDeclarationDefinition (clang_type);
- if (die->HasChildren())
- {
- SymbolContext cu_sc(GetCompUnitForDWARFCompUnit(dwarf_cu));
- ParseChildEnumerators(cu_sc, clang_type, type_sp->GetByteSize(), dwarf_cu, die);
- }
- ast.CompleteTagDeclarationDefinition (clang_type);
- }
- }
- break;
-
- case DW_TAG_inlined_subroutine:
- case DW_TAG_subprogram:
- case DW_TAG_subroutine_type:
- {
- // Set a bit that lets us know that we are currently parsing this
- m_die_to_type[die] = DIE_IS_BEING_PARSED;
-
- //const char *mangled = NULL;
- dw_offset_t type_die_offset = DW_INVALID_OFFSET;
- bool is_variadic = false;
- bool is_inline = false;
- bool is_static = false;
- bool is_virtual = false;
- bool is_explicit = false;
- bool is_artificial = false;
- dw_offset_t specification_die_offset = DW_INVALID_OFFSET;
- dw_offset_t abstract_origin_die_offset = DW_INVALID_OFFSET;
- dw_offset_t object_pointer_die_offset = DW_INVALID_OFFSET;
-
- unsigned type_quals = 0;
- clang::StorageClass storage = clang::SC_None;//, Extern, Static, PrivateExtern
-
-
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, NULL, attributes);
- if (num_attributes > 0)
- {
- uint32_t i;
- for (i=0; i<num_attributes; ++i)
- {
- attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_name:
- type_name_cstr = form_value.AsCString(&get_debug_str_data());
- type_name_const_str.SetCString(type_name_cstr);
- break;
-
- case DW_AT_MIPS_linkage_name: break; // mangled = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_type: type_die_offset = form_value.Reference(dwarf_cu); break;
- case DW_AT_accessibility: accessibility = DW_ACCESS_to_AccessType(form_value.Unsigned()); break;
- case DW_AT_declaration: break; // is_forward_declaration = form_value.Unsigned() != 0; break;
- case DW_AT_inline: is_inline = form_value.Unsigned() != 0; break;
- case DW_AT_virtuality: is_virtual = form_value.Unsigned() != 0; break;
- case DW_AT_explicit: is_explicit = form_value.Unsigned() != 0; break;
- case DW_AT_artificial: is_artificial = form_value.Unsigned() != 0; break;
-
-
- case DW_AT_external:
- if (form_value.Unsigned())
- {
- if (storage == clang::SC_None)
- storage = clang::SC_Extern;
- else
- storage = clang::SC_PrivateExtern;
- }
- break;
-
- case DW_AT_specification:
- specification_die_offset = form_value.Reference(dwarf_cu);
- break;
-
- case DW_AT_abstract_origin:
- abstract_origin_die_offset = form_value.Reference(dwarf_cu);
- break;
-
- case DW_AT_object_pointer:
- object_pointer_die_offset = form_value.Reference(dwarf_cu);
- break;
-
- case DW_AT_allocated:
- case DW_AT_associated:
- case DW_AT_address_class:
- case DW_AT_calling_convention:
- case DW_AT_data_location:
- case DW_AT_elemental:
- case DW_AT_entry_pc:
- case DW_AT_frame_base:
- case DW_AT_high_pc:
- case DW_AT_low_pc:
- case DW_AT_prototyped:
- case DW_AT_pure:
- case DW_AT_ranges:
- case DW_AT_recursive:
- case DW_AT_return_addr:
- case DW_AT_segment:
- case DW_AT_start_scope:
- case DW_AT_static_link:
- case DW_AT_trampoline:
- case DW_AT_visibility:
- case DW_AT_vtable_elem_location:
- case DW_AT_description:
- case DW_AT_sibling:
- break;
- }
- }
- }
- }
-
- std::string object_pointer_name;
- if (object_pointer_die_offset != DW_INVALID_OFFSET)
- {
- // Get the name from the object pointer die
- StreamString s;
- if (DWARFDebugInfoEntry::GetName (this, dwarf_cu, object_pointer_die_offset, s))
- {
- object_pointer_name.assign(s.GetData());
- }
- }
-
- DEBUG_PRINTF ("0x%8.8llx: %s (\"%s\")\n", MakeUserID(die->GetOffset()), DW_TAG_value_to_name(tag), type_name_cstr);
-
- clang_type_t return_clang_type = NULL;
- Type *func_type = NULL;
-
- if (type_die_offset != DW_INVALID_OFFSET)
- func_type = ResolveTypeUID(type_die_offset);
-
- if (func_type)
- return_clang_type = func_type->GetClangForwardType();
- else
- return_clang_type = ast.GetBuiltInType_void();
-
-
- std::vector<clang_type_t> function_param_types;
- std::vector<clang::ParmVarDecl*> function_param_decls;
-
- // Parse the function children for the parameters
-
- const DWARFDebugInfoEntry *decl_ctx_die = NULL;
- clang::DeclContext *containing_decl_ctx = GetClangDeclContextContainingDIE (dwarf_cu, die, &decl_ctx_die);
- const clang::Decl::Kind containing_decl_kind = containing_decl_ctx->getDeclKind();
-
- const bool is_cxx_method = DeclKindIsCXXClass (containing_decl_kind);
- // Start off static. This will be set to false in ParseChildParameters(...)
- // if we find a "this" paramters as the first parameter
- if (is_cxx_method)
- is_static = true;
- ClangASTContext::TemplateParameterInfos template_param_infos;
-
- if (die->HasChildren())
- {
- bool skip_artificial = true;
- ParseChildParameters (sc,
- containing_decl_ctx,
- dwarf_cu,
- die,
- skip_artificial,
- is_static,
- type_list,
- function_param_types,
- function_param_decls,
- type_quals,
- template_param_infos);
- }
-
- // clang_type will get the function prototype clang type after this call
- clang_type = ast.CreateFunctionType (return_clang_type,
-<<<<<<< .working
- function_param_types.size() == 0 ? NULL : &function_param_types[0],
-=======
- function_param_types.data(),
->>>>>>> .merge-right.r167119
- function_param_types.size(),
- is_variadic,
- type_quals);
-
- if (type_name_cstr)
- {
- bool type_handled = false;
- if (tag == DW_TAG_subprogram)
- {
- ConstString class_name;
- ConstString class_name_no_category;
- if (ObjCLanguageRuntime::ParseMethodName (type_name_cstr, &class_name, NULL, NULL, &class_name_no_category))
- {
- // Use the class name with no category if there is one
- if (class_name_no_category)
- class_name = class_name_no_category;
-
- SymbolContext empty_sc;
- clang_type_t class_opaque_type = NULL;
- if (class_name)
- {
- TypeList types;
- TypeSP complete_objc_class_type_sp (FindCompleteObjCDefinitionTypeForDIE (NULL, class_name, false));
-
- if (complete_objc_class_type_sp)
- {
- clang_type_t type_clang_forward_type = complete_objc_class_type_sp->GetClangForwardType();
- if (ClangASTContext::IsObjCClassType (type_clang_forward_type))
- class_opaque_type = type_clang_forward_type;
- }
- }
-
- if (class_opaque_type)
- {
- // If accessibility isn't set to anything valid, assume public for
- // now...
- if (accessibility == eAccessNone)
- accessibility = eAccessPublic;
-
- clang::ObjCMethodDecl *objc_method_decl = ast.AddMethodToObjCObjectType (class_opaque_type,
- type_name_cstr,
- clang_type,
- accessibility);
- type_handled = objc_method_decl != NULL;
- if (type_handled)
- {
- LinkDeclContextToDIE(ClangASTContext::GetAsDeclContext(objc_method_decl), die);
- GetClangASTContext().SetMetadataAsUserID ((uintptr_t)objc_method_decl, MakeUserID(die->GetOffset()));
- }
- }
- }
- else if (is_cxx_method)
- {
- // Look at the parent of this DIE and see if is is
- // a class or struct and see if this is actually a
- // C++ method
- Type *class_type = ResolveType (dwarf_cu, decl_ctx_die);
- if (class_type)
- {
- if (class_type->GetID() != MakeUserID(decl_ctx_die->GetOffset()))
- {
- // We uniqued the parent class of this function to another class
- // so we now need to associate all dies under "decl_ctx_die" to
- // DIEs in the DIE for "class_type"...
- DWARFCompileUnitSP class_type_cu_sp;
- const DWARFDebugInfoEntry *class_type_die = DebugInfo()->GetDIEPtr(class_type->GetID(), &class_type_cu_sp);
- if (class_type_die)
- {
- if (CopyUniqueClassMethodTypes (class_type,
- class_type_cu_sp.get(),
- class_type_die,
- dwarf_cu,
- decl_ctx_die))
- {
- type_ptr = m_die_to_type[die];
- if (type_ptr && type_ptr != DIE_IS_BEING_PARSED)
- {
- type_sp = type_ptr->shared_from_this();
- break;
- }
- }
- }
- }
-
- if (specification_die_offset != DW_INVALID_OFFSET)
- {
- // We have a specification which we are going to base our function
- // prototype off of, so we need this type to be completed so that the
- // m_die_to_decl_ctx for the method in the specification has a valid
- // clang decl context.
- class_type->GetClangForwardType();
- // If we have a specification, then the function type should have been
- // made with the specification and not with this die.
- DWARFCompileUnitSP spec_cu_sp;
- const DWARFDebugInfoEntry* spec_die = DebugInfo()->GetDIEPtr(specification_die_offset, &spec_cu_sp);
- clang::DeclContext *spec_clang_decl_ctx = GetClangDeclContextForDIE (sc, dwarf_cu, spec_die);
- if (spec_clang_decl_ctx)
- {
- LinkDeclContextToDIE(spec_clang_decl_ctx, die);
- }
- else
- {
- GetObjectFile()->GetModule()->ReportWarning ("0x%8.8llx: DW_AT_specification(0x%8.8x) has no decl\n",
- MakeUserID(die->GetOffset()),
- specification_die_offset);
- }
- type_handled = true;
- }
- else if (abstract_origin_die_offset != DW_INVALID_OFFSET)
- {
- // We have a specification which we are going to base our function
- // prototype off of, so we need this type to be completed so that the
- // m_die_to_decl_ctx for the method in the abstract origin has a valid
- // clang decl context.
- class_type->GetClangForwardType();
-
- DWARFCompileUnitSP abs_cu_sp;
- const DWARFDebugInfoEntry* abs_die = DebugInfo()->GetDIEPtr(abstract_origin_die_offset, &abs_cu_sp);
- clang::DeclContext *abs_clang_decl_ctx = GetClangDeclContextForDIE (sc, dwarf_cu, abs_die);
- if (abs_clang_decl_ctx)
- {
- LinkDeclContextToDIE (abs_clang_decl_ctx, die);
- }
- else
- {
- GetObjectFile()->GetModule()->ReportWarning ("0x%8.8llx: DW_AT_abstract_origin(0x%8.8x) has no decl\n",
- MakeUserID(die->GetOffset()),
- abstract_origin_die_offset);
- }
- type_handled = true;
- }
- else
- {
- clang_type_t class_opaque_type = class_type->GetClangForwardType();
- if (ClangASTContext::IsCXXClassType (class_opaque_type))
- {
- if (ClangASTContext::IsBeingDefined (class_opaque_type))
- {
- // Neither GCC 4.2 nor clang++ currently set a valid accessibility
- // in the DWARF for C++ methods... Default to public for now...
- if (accessibility == eAccessNone)
- accessibility = eAccessPublic;
-
- if (!is_static && !die->HasChildren())
- {
- // We have a C++ member function with no children (this pointer!)
- // and clang will get mad if we try and make a function that isn't
- // well formed in the DWARF, so we will just skip it...
- type_handled = true;
- }
- else
- {
- clang::CXXMethodDecl *cxx_method_decl;
- // REMOVE THE CRASH DESCRIPTION BELOW
- Host::SetCrashDescriptionWithFormat ("SymbolFileDWARF::ParseType() is adding a method %s to class %s in DIE 0x%8.8llx from %s/%s",
- type_name_cstr,
- class_type->GetName().GetCString(),
- MakeUserID(die->GetOffset()),
- m_obj_file->GetFileSpec().GetDirectory().GetCString(),
- m_obj_file->GetFileSpec().GetFilename().GetCString());
-
- const bool is_attr_used = false;
-
- cxx_method_decl = ast.AddMethodToCXXRecordType (class_opaque_type,
- type_name_cstr,
- clang_type,
- accessibility,
- is_virtual,
- is_static,
- is_inline,
- is_explicit,
- is_attr_used,
- is_artificial);
-
- type_handled = cxx_method_decl != NULL;
-
- if (type_handled)
- {
- LinkDeclContextToDIE(ClangASTContext::GetAsDeclContext(cxx_method_decl), die);
-
- Host::SetCrashDescription (NULL);
-
-
- ClangASTMetadata metadata;
- metadata.SetUserID(MakeUserID(die->GetOffset()));
-
- if (!object_pointer_name.empty())
- {
- metadata.SetObjectPtrName(object_pointer_name.c_str());
- if (log)
- log->Printf ("Setting object pointer name: %s on method object 0x%ld.\n",
- object_pointer_name.c_str(),
- (uintptr_t) cxx_method_decl);
- }
- GetClangASTContext().SetMetadata ((uintptr_t)cxx_method_decl, metadata);
- }
- }
- }
- else
- {
- // We were asked to parse the type for a method in a class, yet the
- // class hasn't been asked to complete itself through the
- // clang::ExternalASTSource protocol, so we need to just have the
- // class complete itself and do things the right way, then our
- // DIE should then have an entry in the m_die_to_type map. First
- // we need to modify the m_die_to_type so it doesn't think we are
- // trying to parse this DIE anymore...
- m_die_to_type[die] = NULL;
-
- // Now we get the full type to force our class type to complete itself
- // using the clang::ExternalASTSource protocol which will parse all
- // base classes and all methods (including the method for this DIE).
- class_type->GetClangFullType();
-
- // The type for this DIE should have been filled in the function call above
- type_ptr = m_die_to_type[die];
- if (type_ptr && type_ptr != DIE_IS_BEING_PARSED)
- {
- type_sp = type_ptr->shared_from_this();
- break;
- }
-
- // FIXME This is fixing some even uglier behavior but we really need to
- // uniq the methods of each class as well as the class itself.
- // <rdar://problem/11240464>
- type_handled = true;
- }
- }
- }
- }
- }
- }
-
- if (!type_handled)
- {
- // We just have a function that isn't part of a class
- clang::FunctionDecl *function_decl = ast.CreateFunctionDeclaration (containing_decl_ctx,
- type_name_cstr,
- clang_type,
- storage,
- is_inline);
-
-// if (template_param_infos.GetSize() > 0)
-// {
-// clang::FunctionTemplateDecl *func_template_decl = ast.CreateFunctionTemplateDecl (containing_decl_ctx,
-// function_decl,
-// type_name_cstr,
-// template_param_infos);
-//
-// ast.CreateFunctionTemplateSpecializationInfo (function_decl,
-// func_template_decl,
-// template_param_infos);
-// }
- // Add the decl to our DIE to decl context map
- assert (function_decl);
- LinkDeclContextToDIE(function_decl, die);
- if (!function_param_decls.empty())
- ast.SetFunctionParameters (function_decl,
- &function_param_decls.front(),
- function_param_decls.size());
-
- ClangASTMetadata metadata;
- metadata.SetUserID(MakeUserID(die->GetOffset()));
-
- if (!object_pointer_name.empty())
- {
- metadata.SetObjectPtrName(object_pointer_name.c_str());
- if (log)
- log->Printf ("Setting object pointer name: %s on function object 0x%ld.\n",
- object_pointer_name.c_str(),
- (uintptr_t) function_decl);
- }
- GetClangASTContext().SetMetadata ((uintptr_t)function_decl, metadata);
- }
- }
- type_sp.reset( new Type (MakeUserID(die->GetOffset()),
- this,
- type_name_const_str,
- 0,
- NULL,
- LLDB_INVALID_UID,
- Type::eEncodingIsUID,
- &decl,
- clang_type,
- Type::eResolveStateFull));
- assert(type_sp.get());
- }
- break;
-
- case DW_TAG_array_type:
- {
- // Set a bit that lets us know that we are currently parsing this
- m_die_to_type[die] = DIE_IS_BEING_PARSED;
-
- lldb::user_id_t type_die_offset = DW_INVALID_OFFSET;
- int64_t first_index = 0;
- uint32_t byte_stride = 0;
- uint32_t bit_stride = 0;
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, NULL, attributes);
-
- if (num_attributes > 0)
- {
- uint32_t i;
- for (i=0; i<num_attributes; ++i)
- {
- attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_name:
- type_name_cstr = form_value.AsCString(&get_debug_str_data());
- type_name_const_str.SetCString(type_name_cstr);
- break;
-
- case DW_AT_type: type_die_offset = form_value.Reference(dwarf_cu); break;
- case DW_AT_byte_size: break; // byte_size = form_value.Unsigned(); break;
- case DW_AT_byte_stride: byte_stride = form_value.Unsigned(); break;
- case DW_AT_bit_stride: bit_stride = form_value.Unsigned(); break;
- case DW_AT_accessibility: break; // accessibility = DW_ACCESS_to_AccessType(form_value.Unsigned()); break;
- case DW_AT_declaration: break; // is_forward_declaration = form_value.Unsigned() != 0; break;
- case DW_AT_allocated:
- case DW_AT_associated:
- case DW_AT_data_location:
- case DW_AT_description:
- case DW_AT_ordering:
- case DW_AT_start_scope:
- case DW_AT_visibility:
- case DW_AT_specification:
- case DW_AT_abstract_origin:
- case DW_AT_sibling:
- break;
- }
- }
- }
-
- DEBUG_PRINTF ("0x%8.8llx: %s (\"%s\")\n", MakeUserID(die->GetOffset()), DW_TAG_value_to_name(tag), type_name_cstr);
-
- Type *element_type = ResolveTypeUID(type_die_offset);
-
- if (element_type)
- {
- std::vector<uint64_t> element_orders;
- ParseChildArrayInfo(sc, dwarf_cu, die, first_index, element_orders, byte_stride, bit_stride);
- if (byte_stride == 0 && bit_stride == 0)
- byte_stride = element_type->GetByteSize();
- clang_type_t array_element_type = element_type->GetClangForwardType();
- uint64_t array_element_bit_stride = byte_stride * 8 + bit_stride;
- uint64_t num_elements = 0;
- std::vector<uint64_t>::const_reverse_iterator pos;
- std::vector<uint64_t>::const_reverse_iterator end = element_orders.rend();
- for (pos = element_orders.rbegin(); pos != end; ++pos)
- {
- num_elements = *pos;
- clang_type = ast.CreateArrayType (array_element_type,
- num_elements,
- num_elements * array_element_bit_stride);
- array_element_type = clang_type;
- array_element_bit_stride = array_element_bit_stride * num_elements;
- }
- ConstString empty_name;
- type_sp.reset( new Type (MakeUserID(die->GetOffset()),
- this,
- empty_name,
- array_element_bit_stride / 8,
- NULL,
- type_die_offset,
- Type::eEncodingIsUID,
- &decl,
- clang_type,
- Type::eResolveStateFull));
- type_sp->SetEncodingType (element_type);
- }
- }
- }
- break;
-
- case DW_TAG_ptr_to_member_type:
- {
- dw_offset_t type_die_offset = DW_INVALID_OFFSET;
- dw_offset_t containing_type_die_offset = DW_INVALID_OFFSET;
-
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, NULL, attributes);
-
- if (num_attributes > 0) {
- uint32_t i;
- for (i=0; i<num_attributes; ++i)
- {
- attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_type:
- type_die_offset = form_value.Reference(dwarf_cu); break;
- case DW_AT_containing_type:
- containing_type_die_offset = form_value.Reference(dwarf_cu); break;
- }
- }
- }
-
- Type *pointee_type = ResolveTypeUID(type_die_offset);
- Type *class_type = ResolveTypeUID(containing_type_die_offset);
-
- clang_type_t pointee_clang_type = pointee_type->GetClangForwardType();
- clang_type_t class_clang_type = class_type->GetClangLayoutType();
-
- clang_type = ast.CreateMemberPointerType(pointee_clang_type,
- class_clang_type);
-
- byte_size = ClangASTType::GetClangTypeBitWidth (ast.getASTContext(),
- clang_type) / 8;
-
- type_sp.reset( new Type (MakeUserID(die->GetOffset()),
- this,
- type_name_const_str,
- byte_size,
- NULL,
- LLDB_INVALID_UID,
- Type::eEncodingIsUID,
- NULL,
- clang_type,
- Type::eResolveStateForward));
- }
-
- break;
- }
- default:
- assert(false && "Unhandled type tag!");
- break;
- }
-
- if (type_sp.get())
- {
- const DWARFDebugInfoEntry *sc_parent_die = GetParentSymbolContextDIE(die);
- dw_tag_t sc_parent_tag = sc_parent_die ? sc_parent_die->Tag() : 0;
-
- SymbolContextScope * symbol_context_scope = NULL;
- if (sc_parent_tag == DW_TAG_compile_unit)
- {
- symbol_context_scope = sc.comp_unit;
- }
- else if (sc.function != NULL)
- {
- symbol_context_scope = sc.function->GetBlock(true).FindBlockByID(MakeUserID(sc_parent_die->GetOffset()));
- if (symbol_context_scope == NULL)
- symbol_context_scope = sc.function;
- }
-
- if (symbol_context_scope != NULL)
- {
- type_sp->SetSymbolContextScope(symbol_context_scope);
- }
-
- // We are ready to put this type into the uniqued list up at the module level
- type_list->Insert (type_sp);
-
- m_die_to_type[die] = type_sp.get();
- }
- }
- else if (type_ptr != DIE_IS_BEING_PARSED)
- {
- type_sp = type_ptr->shared_from_this();
- }
- }
- return type_sp;
-}
-
-size_t
-SymbolFileDWARF::ParseTypes
-(
- const SymbolContext& sc,
- DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *die,
- bool parse_siblings,
- bool parse_children
-)
-{
- size_t types_added = 0;
- while (die != NULL)
- {
- bool type_is_new = false;
- if (ParseType(sc, dwarf_cu, die, &type_is_new).get())
- {
- if (type_is_new)
- ++types_added;
- }
-
- if (parse_children && die->HasChildren())
- {
- if (die->Tag() == DW_TAG_subprogram)
- {
- SymbolContext child_sc(sc);
- child_sc.function = sc.comp_unit->FindFunctionByUID(MakeUserID(die->GetOffset())).get();
- types_added += ParseTypes(child_sc, dwarf_cu, die->GetFirstChild(), true, true);
- }
- else
- types_added += ParseTypes(sc, dwarf_cu, die->GetFirstChild(), true, true);
- }
-
- if (parse_siblings)
- die = die->GetSibling();
- else
- die = NULL;
- }
- return types_added;
-}
-
-
-size_t
-SymbolFileDWARF::ParseFunctionBlocks (const SymbolContext &sc)
-{
- assert(sc.comp_unit && sc.function);
- size_t functions_added = 0;
- DWARFCompileUnit* dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
- if (dwarf_cu)
- {
- dw_offset_t function_die_offset = sc.function->GetID();
- const DWARFDebugInfoEntry *function_die = dwarf_cu->GetDIEPtr(function_die_offset);
- if (function_die)
- {
- ParseFunctionBlocks(sc, &sc.function->GetBlock (false), dwarf_cu, function_die, LLDB_INVALID_ADDRESS, 0);
- }
- }
-
- return functions_added;
-}
-
-
-size_t
-SymbolFileDWARF::ParseTypes (const SymbolContext &sc)
-{
- // At least a compile unit must be valid
- assert(sc.comp_unit);
- size_t types_added = 0;
- DWARFCompileUnit* dwarf_cu = GetDWARFCompileUnit(sc.comp_unit);
- if (dwarf_cu)
- {
- if (sc.function)
- {
- dw_offset_t function_die_offset = sc.function->GetID();
- const DWARFDebugInfoEntry *func_die = dwarf_cu->GetDIEPtr(function_die_offset);
- if (func_die && func_die->HasChildren())
- {
- types_added = ParseTypes(sc, dwarf_cu, func_die->GetFirstChild(), true, true);
- }
- }
- else
- {
- const DWARFDebugInfoEntry *dwarf_cu_die = dwarf_cu->DIE();
- if (dwarf_cu_die && dwarf_cu_die->HasChildren())
- {
- types_added = ParseTypes(sc, dwarf_cu, dwarf_cu_die->GetFirstChild(), true, true);
- }
- }
- }
-
- return types_added;
-}
-
-size_t
-SymbolFileDWARF::ParseVariablesForContext (const SymbolContext& sc)
-{
- if (sc.comp_unit != NULL)
- {
- DWARFDebugInfo* info = DebugInfo();
- if (info == NULL)
- return 0;
-
- uint32_t cu_idx = UINT32_MAX;
- DWARFCompileUnit* dwarf_cu = info->GetCompileUnit(sc.comp_unit->GetID(), &cu_idx).get();
-
- if (dwarf_cu == NULL)
- return 0;
-
- if (sc.function)
- {
- const DWARFDebugInfoEntry *function_die = dwarf_cu->GetDIEPtr(sc.function->GetID());
-
- dw_addr_t func_lo_pc = function_die->GetAttributeValueAsUnsigned (this, dwarf_cu, DW_AT_low_pc, DW_INVALID_ADDRESS);
- if (func_lo_pc != DW_INVALID_ADDRESS)
- {
- const size_t num_variables = ParseVariables(sc, dwarf_cu, func_lo_pc, function_die->GetFirstChild(), true, true);
-
- // Let all blocks know they have parse all their variables
- sc.function->GetBlock (false).SetDidParseVariables (true, true);
- return num_variables;
- }
- }
- else if (sc.comp_unit)
- {
- uint32_t vars_added = 0;
- VariableListSP variables (sc.comp_unit->GetVariableList(false));
-
- if (variables.get() == NULL)
- {
- variables.reset(new VariableList());
- sc.comp_unit->SetVariableList(variables);
-
- DWARFCompileUnit* match_dwarf_cu = NULL;
- const DWARFDebugInfoEntry* die = NULL;
- DIEArray die_offsets;
- if (m_using_apple_tables)
- {
- if (m_apple_names_ap.get())
- {
- DWARFMappedHash::DIEInfoArray hash_data_array;
- if (m_apple_names_ap->AppendAllDIEsInRange (dwarf_cu->GetOffset(),
- dwarf_cu->GetNextCompileUnitOffset(),
- hash_data_array))
- {
- DWARFMappedHash::ExtractDIEArray (hash_data_array, die_offsets);
- }
- }
- }
- else
- {
- // Index if we already haven't to make sure the compile units
- // get indexed and make their global DIE index list
- if (!m_indexed)
- Index ();
-
- m_global_index.FindAllEntriesForCompileUnit (dwarf_cu->GetOffset(),
- dwarf_cu->GetNextCompileUnitOffset(),
- die_offsets);
- }
-
- const size_t num_matches = die_offsets.size();
- if (num_matches)
- {
- DWARFDebugInfo* debug_info = DebugInfo();
- for (size_t i=0; i<num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- die = debug_info->GetDIEPtrWithCompileUnitHint (die_offset, &match_dwarf_cu);
- if (die)
- {
- VariableSP var_sp (ParseVariableDIE(sc, dwarf_cu, die, LLDB_INVALID_ADDRESS));
- if (var_sp)
- {
- variables->AddVariableIfUnique (var_sp);
- ++vars_added;
- }
- }
- else
- {
- if (m_using_apple_tables)
- {
- GetObjectFile()->GetModule()->ReportErrorIfModifyDetected ("the DWARF debug information has been modified (.apple_names accelerator table had bad die 0x%8.8x)\n", die_offset);
- }
- }
-
- }
- }
- }
- return vars_added;
- }
- }
- return 0;
-}
-
-
-VariableSP
-SymbolFileDWARF::ParseVariableDIE
-(
- const SymbolContext& sc,
- DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *die,
- const lldb::addr_t func_low_pc
-)
-{
-
- VariableSP var_sp (m_die_to_variable_sp[die]);
- if (var_sp)
- return var_sp; // Already been parsed!
-
- const dw_tag_t tag = die->Tag();
-
- if ((tag == DW_TAG_variable) ||
- (tag == DW_TAG_constant) ||
- (tag == DW_TAG_formal_parameter && sc.function))
- {
- DWARFDebugInfoEntry::Attributes attributes;
- const size_t num_attributes = die->GetAttributes(this, dwarf_cu, NULL, attributes);
- if (num_attributes > 0)
- {
- const char *name = NULL;
- const char *mangled = NULL;
- Declaration decl;
- uint32_t i;
- lldb::user_id_t type_uid = LLDB_INVALID_UID;
- DWARFExpression location;
- bool is_external = false;
- bool is_artificial = false;
- bool location_is_const_value_data = false;
- //AccessType accessibility = eAccessNone;
-
- for (i=0; i<num_attributes; ++i)
- {
- dw_attr_t attr = attributes.AttributeAtIndex(i);
- DWARFFormValue form_value;
- if (attributes.ExtractFormValueAtIndex(this, i, form_value))
- {
- switch (attr)
- {
- case DW_AT_decl_file: decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(form_value.Unsigned())); break;
- case DW_AT_decl_line: decl.SetLine(form_value.Unsigned()); break;
- case DW_AT_decl_column: decl.SetColumn(form_value.Unsigned()); break;
- case DW_AT_name: name = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_MIPS_linkage_name: mangled = form_value.AsCString(&get_debug_str_data()); break;
- case DW_AT_type: type_uid = form_value.Reference(dwarf_cu); break;
- case DW_AT_external: is_external = form_value.Unsigned() != 0; break;
- case DW_AT_const_value:
- location_is_const_value_data = true;
- // Fall through...
- case DW_AT_location:
- {
- if (form_value.BlockData())
- {
- const DataExtractor& debug_info_data = get_debug_info_data();
-
- uint32_t block_offset = form_value.BlockData() - debug_info_data.GetDataStart();
- uint32_t block_length = form_value.Unsigned();
- location.CopyOpcodeData(get_debug_info_data(), block_offset, block_length);
- }
- else
- {
- const DataExtractor& debug_loc_data = get_debug_loc_data();
- const dw_offset_t debug_loc_offset = form_value.Unsigned();
-
- size_t loc_list_length = DWARFLocationList::Size(debug_loc_data, debug_loc_offset);
- if (loc_list_length > 0)
- {
- location.CopyOpcodeData(debug_loc_data, debug_loc_offset, loc_list_length);
- assert (func_low_pc != LLDB_INVALID_ADDRESS);
- location.SetLocationListSlide (func_low_pc - dwarf_cu->GetBaseAddress());
- }
- }
- }
- break;
-
- case DW_AT_artificial: is_artificial = form_value.Unsigned() != 0; break;
- case DW_AT_accessibility: break; //accessibility = DW_ACCESS_to_AccessType(form_value.Unsigned()); break;
- case DW_AT_declaration:
- case DW_AT_description:
- case DW_AT_endianity:
- case DW_AT_segment:
- case DW_AT_start_scope:
- case DW_AT_visibility:
- default:
- case DW_AT_abstract_origin:
- case DW_AT_sibling:
- case DW_AT_specification:
- break;
- }
- }
- }
-
- if (location.IsValid())
- {
- ValueType scope = eValueTypeInvalid;
-
- const DWARFDebugInfoEntry *sc_parent_die = GetParentSymbolContextDIE(die);
- dw_tag_t parent_tag = sc_parent_die ? sc_parent_die->Tag() : 0;
- SymbolContextScope * symbol_context_scope = NULL;
-
- // DWARF doesn't specify if a DW_TAG_variable is a local, global
- // or static variable, so we have to do a little digging by
- // looking at the location of a varaible to see if it contains
- // a DW_OP_addr opcode _somewhere_ in the definition. I say
- // somewhere because clang likes to combine small global variables
- // into the same symbol and have locations like:
- // DW_OP_addr(0x1000), DW_OP_constu(2), DW_OP_plus
- // So if we don't have a DW_TAG_formal_parameter, we can look at
- // the location to see if it contains a DW_OP_addr opcode, and
- // then we can correctly classify our variables.
- if (tag == DW_TAG_formal_parameter)
- scope = eValueTypeVariableArgument;
- else
- {
- bool op_error = false;
- // Check if the location has a DW_OP_addr with any address value...
- addr_t location_has_op_addr = false;
- if (!location_is_const_value_data)
- {
- location_has_op_addr = location.LocationContains_DW_OP_addr (LLDB_INVALID_ADDRESS, op_error);
- if (op_error)
- {
- StreamString strm;
- location.DumpLocationForAddress (&strm, eDescriptionLevelFull, 0, 0, NULL);
- GetObjectFile()->GetModule()->ReportError ("0x%8.8x: %s has an invalid location: %s", die->GetOffset(), DW_TAG_value_to_name(die->Tag()), strm.GetString().c_str());
- }
- }
-
- if (location_has_op_addr)
- {
- if (is_external)
- {
- scope = eValueTypeVariableGlobal;
-
- if (GetDebugMapSymfile ())
- {
- // When leaving the DWARF in the .o files on darwin,
- // when we have a global variable that wasn't initialized,
- // the .o file might not have allocated a virtual
- // address for the global variable. In this case it will
- // have created a symbol for the global variable
- // that is undefined and external and the value will
- // be the byte size of the variable. When we do the
- // address map in SymbolFileDWARFDebugMap we rely on
- // having an address, we need to do some magic here
- // so we can get the correct address for our global
- // variable. The address for all of these entries
- // will be zero, and there will be an undefined symbol
- // in this object file, and the executable will have
- // a matching symbol with a good address. So here we
- // dig up the correct address and replace it in the
- // location for the variable, and set the variable's
- // symbol context scope to be that of the main executable
- // so the file address will resolve correctly.
- if (location.LocationContains_DW_OP_addr (0, op_error))
- {
-
- // we have a possible uninitialized extern global
- Symtab *symtab = m_obj_file->GetSymtab();
- if (symtab)
- {
- ConstString const_name(name);
- Symbol *undefined_symbol = symtab->FindFirstSymbolWithNameAndType (const_name,
- eSymbolTypeUndefined,
- Symtab::eDebugNo,
- Symtab::eVisibilityExtern);
-
- if (undefined_symbol)
- {
- ObjectFile *debug_map_objfile = m_debug_map_symfile->GetObjectFile();
- if (debug_map_objfile)
- {
- Symtab *debug_map_symtab = debug_map_objfile->GetSymtab();
- Symbol *defined_symbol = debug_map_symtab->FindFirstSymbolWithNameAndType (const_name,
- eSymbolTypeData,
- Symtab::eDebugYes,
- Symtab::eVisibilityExtern);
- if (defined_symbol)
- {
- if (defined_symbol->ValueIsAddress())
- {
- const addr_t defined_addr = defined_symbol->GetAddress().GetFileAddress();
- if (defined_addr != LLDB_INVALID_ADDRESS)
- {
- if (location.Update_DW_OP_addr (defined_addr))
- {
- symbol_context_scope = defined_symbol;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- else
- {
- scope = eValueTypeVariableStatic;
- }
- }
- else
- {
- scope = eValueTypeVariableLocal;
- }
- }
-
- if (symbol_context_scope == NULL)
- {
- switch (parent_tag)
- {
- case DW_TAG_subprogram:
- case DW_TAG_inlined_subroutine:
- case DW_TAG_lexical_block:
- if (sc.function)
- {
- symbol_context_scope = sc.function->GetBlock(true).FindBlockByID(MakeUserID(sc_parent_die->GetOffset()));
- if (symbol_context_scope == NULL)
- symbol_context_scope = sc.function;
- }
- break;
-
- default:
- symbol_context_scope = sc.comp_unit;
- break;
- }
- }
-
- if (symbol_context_scope)
- {
- var_sp.reset (new Variable (MakeUserID(die->GetOffset()),
- name,
- mangled,
- SymbolFileTypeSP (new SymbolFileType(*this, type_uid)),
- scope,
- symbol_context_scope,
- &decl,
- location,
- is_external,
- is_artificial));
-
- var_sp->SetLocationIsConstantValueData (location_is_const_value_data);
- }
- else
- {
- // Not ready to parse this variable yet. It might be a global
- // or static variable that is in a function scope and the function
- // in the symbol context wasn't filled in yet
- return var_sp;
- }
- }
- }
- // Cache var_sp even if NULL (the variable was just a specification or
- // was missing vital information to be able to be displayed in the debugger
- // (missing location due to optimization, etc)) so we don't re-parse
- // this DIE over and over later...
- m_die_to_variable_sp[die] = var_sp;
- }
- return var_sp;
-}
-
-
-const DWARFDebugInfoEntry *
-SymbolFileDWARF::FindBlockContainingSpecification (dw_offset_t func_die_offset,
- dw_offset_t spec_block_die_offset,
- DWARFCompileUnit **result_die_cu_handle)
-{
- // Give the concrete function die specified by "func_die_offset", find the
- // concrete block whose DW_AT_specification or DW_AT_abstract_origin points
- // to "spec_block_die_offset"
- DWARFDebugInfo* info = DebugInfo();
-
- const DWARFDebugInfoEntry *die = info->GetDIEPtrWithCompileUnitHint(func_die_offset, result_die_cu_handle);
- if (die)
- {
- assert (*result_die_cu_handle);
- return FindBlockContainingSpecification (*result_die_cu_handle, die, spec_block_die_offset, result_die_cu_handle);
- }
- return NULL;
-}
-
-
-const DWARFDebugInfoEntry *
-SymbolFileDWARF::FindBlockContainingSpecification(DWARFCompileUnit* dwarf_cu,
- const DWARFDebugInfoEntry *die,
- dw_offset_t spec_block_die_offset,
- DWARFCompileUnit **result_die_cu_handle)
-{
- if (die)
- {
- switch (die->Tag())
- {
- case DW_TAG_subprogram:
- case DW_TAG_inlined_subroutine:
- case DW_TAG_lexical_block:
- {
- if (die->GetAttributeValueAsReference (this, dwarf_cu, DW_AT_specification, DW_INVALID_OFFSET) == spec_block_die_offset)
- {
- *result_die_cu_handle = dwarf_cu;
- return die;
- }
-
- if (die->GetAttributeValueAsReference (this, dwarf_cu, DW_AT_abstract_origin, DW_INVALID_OFFSET) == spec_block_die_offset)
- {
- *result_die_cu_handle = dwarf_cu;
- return die;
- }
- }
- break;
- }
-
- // Give the concrete function die specified by "func_die_offset", find the
- // concrete block whose DW_AT_specification or DW_AT_abstract_origin points
- // to "spec_block_die_offset"
- for (const DWARFDebugInfoEntry *child_die = die->GetFirstChild(); child_die != NULL; child_die = child_die->GetSibling())
- {
- const DWARFDebugInfoEntry *result_die = FindBlockContainingSpecification (dwarf_cu,
- child_die,
- spec_block_die_offset,
- result_die_cu_handle);
- if (result_die)
- return result_die;
- }
- }
-
- *result_die_cu_handle = NULL;
- return NULL;
-}
-
-size_t
-SymbolFileDWARF::ParseVariables
-(
- const SymbolContext& sc,
- DWARFCompileUnit* dwarf_cu,
- const lldb::addr_t func_low_pc,
- const DWARFDebugInfoEntry *orig_die,
- bool parse_siblings,
- bool parse_children,
- VariableList* cc_variable_list
-)
-{
- if (orig_die == NULL)
- return 0;
-
- VariableListSP variable_list_sp;
-
- size_t vars_added = 0;
- const DWARFDebugInfoEntry *die = orig_die;
- while (die != NULL)
- {
- dw_tag_t tag = die->Tag();
-
- // Check to see if we have already parsed this variable or constant?
- if (m_die_to_variable_sp[die])
- {
- if (cc_variable_list)
- cc_variable_list->AddVariableIfUnique (m_die_to_variable_sp[die]);
- }
- else
- {
- // We haven't already parsed it, lets do that now.
- if ((tag == DW_TAG_variable) ||
- (tag == DW_TAG_constant) ||
- (tag == DW_TAG_formal_parameter && sc.function))
- {
- if (variable_list_sp.get() == NULL)
- {
- const DWARFDebugInfoEntry *sc_parent_die = GetParentSymbolContextDIE(orig_die);
- dw_tag_t parent_tag = sc_parent_die ? sc_parent_die->Tag() : 0;
- switch (parent_tag)
- {
- case DW_TAG_compile_unit:
- if (sc.comp_unit != NULL)
- {
- variable_list_sp = sc.comp_unit->GetVariableList(false);
- if (variable_list_sp.get() == NULL)
- {
- variable_list_sp.reset(new VariableList());
- sc.comp_unit->SetVariableList(variable_list_sp);
- }
- }
- else
- {
- GetObjectFile()->GetModule()->ReportError ("parent 0x%8.8llx %s with no valid compile unit in symbol context for 0x%8.8llx %s.\n",
- MakeUserID(sc_parent_die->GetOffset()),
- DW_TAG_value_to_name (parent_tag),
- MakeUserID(orig_die->GetOffset()),
- DW_TAG_value_to_name (orig_die->Tag()));
- }
- break;
-
- case DW_TAG_subprogram:
- case DW_TAG_inlined_subroutine:
- case DW_TAG_lexical_block:
- if (sc.function != NULL)
- {
- // Check to see if we already have parsed the variables for the given scope
-
- Block *block = sc.function->GetBlock(true).FindBlockByID(MakeUserID(sc_parent_die->GetOffset()));
- if (block == NULL)
- {
- // This must be a specification or abstract origin with
- // a concrete block couterpart in the current function. We need
- // to find the concrete block so we can correctly add the
- // variable to it
- DWARFCompileUnit *concrete_block_die_cu = dwarf_cu;
- const DWARFDebugInfoEntry *concrete_block_die = FindBlockContainingSpecification (sc.function->GetID(),
- sc_parent_die->GetOffset(),
- &concrete_block_die_cu);
- if (concrete_block_die)
- block = sc.function->GetBlock(true).FindBlockByID(MakeUserID(concrete_block_die->GetOffset()));
- }
-
- if (block != NULL)
- {
- const bool can_create = false;
- variable_list_sp = block->GetBlockVariableList (can_create);
- if (variable_list_sp.get() == NULL)
- {
- variable_list_sp.reset(new VariableList());
- block->SetVariableList(variable_list_sp);
- }
- }
- }
- break;
-
- default:
- GetObjectFile()->GetModule()->ReportError ("didn't find appropriate parent DIE for variable list for 0x%8.8llx %s.\n",
- MakeUserID(orig_die->GetOffset()),
- DW_TAG_value_to_name (orig_die->Tag()));
- break;
- }
- }
-
- if (variable_list_sp)
- {
- VariableSP var_sp (ParseVariableDIE(sc, dwarf_cu, die, func_low_pc));
- if (var_sp)
- {
- variable_list_sp->AddVariableIfUnique (var_sp);
- if (cc_variable_list)
- cc_variable_list->AddVariableIfUnique (var_sp);
- ++vars_added;
- }
- }
- }
- }
-
- bool skip_children = (sc.function == NULL && tag == DW_TAG_subprogram);
-
- if (!skip_children && parse_children && die->HasChildren())
- {
- vars_added += ParseVariables(sc, dwarf_cu, func_low_pc, die->GetFirstChild(), true, true, cc_variable_list);
- }
-
- if (parse_siblings)
- die = die->GetSibling();
- else
- die = NULL;
- }
- return vars_added;
-}
-
-//------------------------------------------------------------------
-// PluginInterface protocol
-//------------------------------------------------------------------
-const char *
-SymbolFileDWARF::GetPluginName()
-{
- return "SymbolFileDWARF";
-}
-
-const char *
-SymbolFileDWARF::GetShortPluginName()
-{
- return GetPluginNameStatic();
-}
-
-uint32_t
-SymbolFileDWARF::GetPluginVersion()
-{
- return 1;
-}
-
-void
-SymbolFileDWARF::CompleteTagDecl (void *baton, clang::TagDecl *decl)
-{
- SymbolFileDWARF *symbol_file_dwarf = (SymbolFileDWARF *)baton;
- clang_type_t clang_type = symbol_file_dwarf->GetClangASTContext().GetTypeForDecl (decl);
- if (clang_type)
- symbol_file_dwarf->ResolveClangOpaqueTypeDefinition (clang_type);
-}
-
-void
-SymbolFileDWARF::CompleteObjCInterfaceDecl (void *baton, clang::ObjCInterfaceDecl *decl)
-{
- SymbolFileDWARF *symbol_file_dwarf = (SymbolFileDWARF *)baton;
- clang_type_t clang_type = symbol_file_dwarf->GetClangASTContext().GetTypeForDecl (decl);
- if (clang_type)
- symbol_file_dwarf->ResolveClangOpaqueTypeDefinition (clang_type);
-}
-
-void
-SymbolFileDWARF::DumpIndexes ()
-{
- StreamFile s(stdout, false);
-
- s.Printf ("DWARF index for (%s) '%s/%s':",
- GetObjectFile()->GetModule()->GetArchitecture().GetArchitectureName(),
- GetObjectFile()->GetFileSpec().GetDirectory().AsCString(),
- GetObjectFile()->GetFileSpec().GetFilename().AsCString());
- s.Printf("\nFunction basenames:\n"); m_function_basename_index.Dump (&s);
- s.Printf("\nFunction fullnames:\n"); m_function_fullname_index.Dump (&s);
- s.Printf("\nFunction methods:\n"); m_function_method_index.Dump (&s);
- s.Printf("\nFunction selectors:\n"); m_function_selector_index.Dump (&s);
- s.Printf("\nObjective C class selectors:\n"); m_objc_class_selectors_index.Dump (&s);
- s.Printf("\nGlobals and statics:\n"); m_global_index.Dump (&s);
- s.Printf("\nTypes:\n"); m_type_index.Dump (&s);
- s.Printf("\nNamepaces:\n"); m_namespace_index.Dump (&s);
-}
-
-void
-SymbolFileDWARF::SearchDeclContext (const clang::DeclContext *decl_context,
- const char *name,
- llvm::SmallVectorImpl <clang::NamedDecl *> *results)
-{
- DeclContextToDIEMap::iterator iter = m_decl_ctx_to_die.find(decl_context);
-
- if (iter == m_decl_ctx_to_die.end())
- return;
-
- for (DIEPointerSet::iterator pos = iter->second.begin(), end = iter->second.end(); pos != end; ++pos)
- {
- const DWARFDebugInfoEntry *context_die = *pos;
-
- if (!results)
- return;
-
- DWARFDebugInfo* info = DebugInfo();
-
- DIEArray die_offsets;
-
- DWARFCompileUnit* dwarf_cu = NULL;
- const DWARFDebugInfoEntry* die = NULL;
-
- if (m_using_apple_tables)
- {
- if (m_apple_types_ap.get())
- m_apple_types_ap->FindByName (name, die_offsets);
- }
- else
- {
- if (!m_indexed)
- Index ();
-
- m_type_index.Find (ConstString(name), die_offsets);
- }
-
- const size_t num_matches = die_offsets.size();
-
- if (num_matches)
- {
- for (size_t i = 0; i < num_matches; ++i)
- {
- const dw_offset_t die_offset = die_offsets[i];
- die = info->GetDIEPtrWithCompileUnitHint (die_offset, &dwarf_cu);
-
- if (die->GetParent() != context_die)
- continue;
-
- Type *matching_type = ResolveType (dwarf_cu, die);
-
- lldb::clang_type_t type = matching_type->GetClangForwardType();
- clang::QualType qual_type = clang::QualType::getFromOpaquePtr(type);
-
- if (const clang::TagType *tag_type = llvm::dyn_cast<clang::TagType>(qual_type.getTypePtr()))
- {
- clang::TagDecl *tag_decl = tag_type->getDecl();
- results->push_back(tag_decl);
- }
- else if (const clang::TypedefType *typedef_type = llvm::dyn_cast<clang::TypedefType>(qual_type.getTypePtr()))
- {
- clang::TypedefNameDecl *typedef_decl = typedef_type->getDecl();
- results->push_back(typedef_decl);
- }
- }
- }
- }
-}
-
-void
-SymbolFileDWARF::FindExternalVisibleDeclsByName (void *baton,
- const clang::DeclContext *decl_context,
- clang::DeclarationName decl_name,
- llvm::SmallVectorImpl <clang::NamedDecl *> *results)
-{
-
- switch (decl_context->getDeclKind())
- {
- case clang::Decl::Namespace:
- case clang::Decl::TranslationUnit:
- {
- SymbolFileDWARF *symbol_file_dwarf = (SymbolFileDWARF *)baton;
- symbol_file_dwarf->SearchDeclContext (decl_context, decl_name.getAsString().c_str(), results);
- }
- break;
- default:
- break;
- }
-}
-
-bool
-SymbolFileDWARF::LayoutRecordType (void *baton,
- const clang::RecordDecl *record_decl,
- uint64_t &size,
- uint64_t &alignment,
- llvm::DenseMap <const clang::FieldDecl *, uint64_t> &field_offsets,
- llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &base_offsets,
- llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &vbase_offsets)
-{
- SymbolFileDWARF *symbol_file_dwarf = (SymbolFileDWARF *)baton;
- return symbol_file_dwarf->LayoutRecordType (record_decl, size, alignment, field_offsets, base_offsets, vbase_offsets);
-}
-
-
-bool
-SymbolFileDWARF::LayoutRecordType (const clang::RecordDecl *record_decl,
- uint64_t &bit_size,
- uint64_t &alignment,
- llvm::DenseMap <const clang::FieldDecl *, uint64_t> &field_offsets,
- llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &base_offsets,
- llvm::DenseMap <const clang::CXXRecordDecl *, clang::CharUnits> &vbase_offsets)
-{
- LogSP log (LogChannelDWARF::GetLogIfAll(DWARF_LOG_DEBUG_INFO));
- RecordDeclToLayoutMap::iterator pos = m_record_decl_to_layout_map.find (record_decl);
- bool success = false;
- base_offsets.clear();
- vbase_offsets.clear();
- if (pos != m_record_decl_to_layout_map.end())
- {
- bit_size = pos->second.bit_size;
- alignment = pos->second.alignment;
- field_offsets.swap(pos->second.field_offsets);
- m_record_decl_to_layout_map.erase(pos);
- success = true;
- }
- else
- {
- bit_size = 0;
- alignment = 0;
- field_offsets.clear();
- }
-
- if (log)
- GetObjectFile()->GetModule()->LogMessage (log.get(),
- "SymbolFileDWARF::LayoutRecordType (record_decl = %p, bit_size = %llu, alignment = %llu, field_offsets[%u],base_offsets[%u], vbase_offsets[%u]) success = %i",
- record_decl,
- bit_size,
- alignment,
- (uint32_t)field_offsets.size(),
- (uint32_t)base_offsets.size(),
- (uint32_t)vbase_offsets.size(),
- success);
- return success;
-}
-
-
-SymbolFileDWARFDebugMap *
-SymbolFileDWARF::GetDebugMapSymfile ()
-{
- if (m_debug_map_symfile == NULL && !m_debug_map_module_wp.expired())
- {
- lldb::ModuleSP module_sp (m_debug_map_module_wp.lock());
- if (module_sp)
- {
- SymbolVendor *sym_vendor = module_sp->GetSymbolVendor();
- if (sym_vendor)
- m_debug_map_symfile = (SymbolFileDWARFDebugMap *)sym_vendor->GetSymbolFile();
- }
- }
- return m_debug_map_symfile;
-}
-
-
More information about the lldb-commits
mailing list