aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-11-20 17:39:12 +0000
committerDimitry Andric <dim@FreeBSD.org>2022-05-14 11:43:32 +0000
commit5e801ac66d24704442eba426ed13c3effb8a34e7 (patch)
treefbacd59e1bd2f5ae75d5717a1274b95f12ac1c22
parent349cc55c9796c4596a5b9904cd3281af295f878f (diff)
parent846a2208a8ab099f595fe7e8b2e6d54a7b5e67fb (diff)
Merge llvm-project main llvmorg-14-init-10223-g401b76fdf2b3
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-10223-g401b76fdf2b3. PR: 261742 MFC after: 2 weeks
-rw-r--r--ObsoleteFiles.inc301
-rw-r--r--contrib/llvm-project/FREEBSD-Xlist23
-rw-r--r--contrib/llvm-project/clang/include/clang/AST/Redeclarable.h3
-rw-r--r--contrib/llvm-project/clang/include/clang/AST/Type.h6
-rw-r--r--contrib/llvm-project/clang/include/clang/Analysis/CFG.h2
-rw-r--r--contrib/llvm-project/clang/include/clang/Basic/Attr.td1
-rw-r--r--contrib/llvm-project/clang/include/clang/CodeGen/CGFunctionInfo.h2
-rw-r--r--contrib/llvm-project/clang/include/clang/Sema/Lookup.h7
-rw-r--r--contrib/llvm-project/clang/lib/AST/ASTContext.cpp3
-rw-r--r--contrib/llvm-project/clang/lib/Analysis/BodyFarm.cpp5
-rw-r--r--contrib/llvm-project/clang/lib/Analysis/RetainSummaryManager.cpp2
-rw-r--r--contrib/llvm-project/clang/lib/Basic/DiagnosticIDs.cpp2
-rw-r--r--contrib/llvm-project/clang/lib/Basic/SourceManager.cpp11
-rw-r--r--contrib/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp1
-rw-r--r--contrib/llvm-project/clang/lib/Format/Format.cpp2
-rw-r--r--contrib/llvm-project/clang/lib/Frontend/FrontendActions.cpp2
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaChecking.cpp7
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaDecl.cpp8
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp5
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp1
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp5
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaLookup.cpp4
-rw-r--r--contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp6
-rw-r--r--contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp2
-rw-r--r--contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp6
-rw-r--r--contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp5
-rw-r--r--contrib/llvm-project/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp7
-rw-r--r--contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp4
-rw-r--r--contrib/llvm-project/clang/lib/StaticAnalyzer/Core/Store.cpp2
-rw-r--r--contrib/llvm-project/clang/lib/Tooling/Syntax/Tree.cpp2
-rw-r--r--contrib/llvm-project/clang/tools/clang-nvlink-wrapper/ClangNvlinkWrapper.cpp196
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/binary_search.h2
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/is_heap.h4
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/is_heap_until.h21
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/is_sorted.h4
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/is_sorted_until.h19
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/max.h4
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/max_element.h21
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/min.h4
-rw-r--r--contrib/llvm-project/libcxx/include/__algorithm/min_element.h21
-rw-r--r--contrib/llvm-project/libcxx/include/version2
-rw-r--r--contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLinkDylib.h13
-rw-r--r--contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h10
-rw-r--r--contrib/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp8
-rw-r--r--contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp4
-rw-r--r--contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp1
-rw-r--r--contrib/llvm-project/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp2
-rw-r--r--contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp2
-rw-r--r--contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp6
-rw-r--r--contrib/llvm-project/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp2
-rw-r--r--contrib/llvm-project/llvm/lib/Transforms/Utils/CloneModule.cpp72
-rw-r--r--contrib/llvm-project/llvm/lib/Transforms/Utils/Evaluator.cpp5
-rw-r--r--contrib/llvm-project/llvm/lib/Transforms/Utils/LoopSimplify.cpp13
-rw-r--r--contrib/llvm-project/llvm/lib/Transforms/Utils/LoopUtils.cpp12
-rw-r--r--contrib/llvm-project/llvm/lib/Transforms/Utils/MetaRenamer.cpp6
-rw-r--r--contrib/llvm-project/llvm/lib/Transforms/Utils/VNCoercion.cpp14
-rw-r--r--etc/mtree/BSD.debug.dist2
-rw-r--r--etc/mtree/BSD.include.dist12
-rw-r--r--etc/mtree/BSD.usr.dist2
-rw-r--r--lib/clang/freebsd_cc_version.h2
-rw-r--r--lib/clang/headers/Makefile6
-rw-r--r--lib/clang/include/VCSVersion.inc14
-rw-r--r--lib/clang/include/clang/Basic/Version.inc6
-rw-r--r--lib/clang/include/clang/Config/config.h2
-rw-r--r--lib/clang/include/lld/Common/Version.inc2
-rw-r--r--lib/clang/include/lldb/Host/Config.h5
-rw-r--r--lib/clang/include/llvm/Config/TargetMCAs.def7
-rw-r--r--lib/clang/include/llvm/Config/config.h18
-rw-r--r--lib/clang/include/llvm/Config/llvm-config.h15
-rw-r--r--lib/clang/include/llvm/Support/VCSRevision.h4
-rw-r--r--lib/clang/libclang/Makefile4
-rw-r--r--lib/clang/liblldb/LLDBWrapLua.cpp3243
-rw-r--r--lib/clang/liblldb/Makefile9
-rw-r--r--lib/clang/libllvm/Makefile46
-rw-r--r--lib/libc++/Makefile104
-rw-r--r--lib/libc++/__config_site5
-rw-r--r--lib/libclang_rt/asan/Makefile2
-rw-r--r--lib/libclang_rt/asan_dynamic/Makefile2
-rw-r--r--lib/libclang_rt/cfi/Makefile1
-rw-r--r--lib/libclang_rt/cfi_diag/Makefile2
-rw-r--r--lib/libclang_rt/compiler-rt-vars.mk2
-rw-r--r--lib/libclang_rt/dd/Makefile1
-rw-r--r--lib/libclang_rt/msan/Makefile2
-rw-r--r--lib/libclang_rt/stats/Makefile2
-rw-r--r--lib/libclang_rt/tsan/Makefile4
-rw-r--r--lib/libclang_rt/ubsan_standalone/Makefile2
-rw-r--r--lib/libclang_rt/xray/Makefile1
-rw-r--r--lib/libomp/kmp_config.h15
-rw-r--r--lib/libomp/kmp_i18n_default.inc8
-rw-r--r--lib/libomp/kmp_i18n_id.inc6
-rw-r--r--lib/libomp/omp.h11
-rw-r--r--tools/build/mk/OptionalObsoleteFiles.inc666
-rw-r--r--usr.bin/clang/llvm-diff/Makefile6
-rw-r--r--usr.bin/clang/llvm-mca/Makefile1
-rw-r--r--usr.bin/clang/llvm-tblgen/Makefile2
95 files changed, 3048 insertions, 2101 deletions
diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
index c75e6f14c90d..9139ae81a948 100644
--- a/ObsoleteFiles.inc
+++ b/ObsoleteFiles.inc
@@ -52,6 +52,307 @@
# xargs -n1 | sort | uniq -d;
# done
+# 20220514: new clang import which bumps version from 13.0.0 to 14.0.0
+OLD_FILES+=usr/lib/clang/13.0.0/include/cuda_wrappers/algorithm
+OLD_FILES+=usr/lib/clang/13.0.0/include/cuda_wrappers/complex
+OLD_FILES+=usr/lib/clang/13.0.0/include/cuda_wrappers/new
+OLD_DIRS+=usr/lib/clang/13.0.0/include/cuda_wrappers
+OLD_FILES+=usr/lib/clang/13.0.0/include/fuzzer/FuzzedDataProvider.h
+OLD_DIRS+=usr/lib/clang/13.0.0/include/fuzzer
+OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/__clang_openmp_device_functions.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/cmath
+OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/complex
+OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/complex.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/complex_cmath.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/math.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/new
+OLD_DIRS+=usr/lib/clang/13.0.0/include/openmp_wrappers
+OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/emmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/mm_malloc.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/mmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/pmmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/smmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/tmmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/xmmintrin.h
+OLD_DIRS+=usr/lib/clang/13.0.0/include/ppc_wrappers
+OLD_FILES+=usr/lib/clang/13.0.0/include/profile/InstrProfData.inc
+OLD_DIRS+=usr/lib/clang/13.0.0/include/profile
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/allocator_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/asan_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/common_interface_defs.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/coverage_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/dfsan_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/hwasan_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/linux_syscall_hooks.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/lsan_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/msan_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/netbsd_syscall_hooks.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/scudo_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/tsan_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/tsan_interface_atomic.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/ubsan_interface.h
+OLD_DIRS+=usr/lib/clang/13.0.0/include/sanitizer
+OLD_FILES+=usr/lib/clang/13.0.0/include/xray/xray_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xray/xray_log_interface.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xray/xray_records.h
+OLD_DIRS+=usr/lib/clang/13.0.0/include/xray
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_builtin_vars.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_cmath.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_complex_builtins.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_device_functions.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_intrinsics.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_libdevice_declares.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_math.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_math_forward_declares.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_runtime_wrapper.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_cmath.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_libdevice_declares.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_math.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_runtime_wrapper.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__stddef_max_align_t.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__wmmintrin_aes.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/__wmmintrin_pclmul.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/adxintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/altivec.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ammintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/amxintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm64intr.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_acle.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_bf16.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_cde.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_cmse.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_fp16.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_mve.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_neon.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/arm_sve.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/armintr.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx2intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512bf16intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512bitalgintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512bwintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512cdintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512dqintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512erintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512fintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512ifmaintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512ifmavlintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512pfintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vbmi2intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vbmiintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vbmivlintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlbf16intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlbitalgintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlbwintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlcdintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vldqintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlvbmi2intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlvnniintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlvp2intersectintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vnniintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vp2intersectintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vpopcntdqintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vpopcntdqvlintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avxintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/avxvnniintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/bmi2intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/bmiintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/builtins.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/cet.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/cetintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/cldemoteintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/clflushoptintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/clwbintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/clzerointrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/cpuid.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/emmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/enqcmdintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/f16cintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/float.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/fma4intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/fmaintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/fxsrintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/gfniintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/hexagon_circ_brev_intrinsics.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/hexagon_protos.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/hexagon_types.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/hresetintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/htmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/htmxlintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/hvx_hexagon_protos.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ia32intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/immintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/inttypes.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/invpcidintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/iso646.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/keylockerintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/limits.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/lwpintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/lzcntintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/mm3dnow.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/mm_malloc.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/mmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/module.modulemap
+OLD_FILES+=usr/lib/clang/13.0.0/include/movdirintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/msa.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/mwaitxintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/nmmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/omp-tools.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/omp.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ompt.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/opencl-c-base.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/opencl-c.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/pconfigintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/pkuintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/pmmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/popcntintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/prfchwintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/ptwriteintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/rdseedintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/riscv_vector.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/rtmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/s390intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/serializeintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/sgxintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/shaintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/smmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/stdalign.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/stdarg.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/stdatomic.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/stdbool.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/stddef.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/stdint.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/stdnoreturn.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/tbmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/tgmath.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/tmmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/tsxldtrkintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/uintrintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/unwind.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/vadefs.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/vaesintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/varargs.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/vecintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/vpclmulqdqintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/waitpkgintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/wasm_simd128.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/wbnoinvdintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/wmmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/x86gprintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/x86intrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xmmintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xopintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xsavecintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xsaveintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xsaveoptintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xsavesintrin.h
+OLD_FILES+=usr/lib/clang/13.0.0/include/xtestintrin.h
+OLD_DIRS+=usr/lib/clang/13.0.0/include
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-aarch64.so
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-arm.so
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-armhf.so
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-i386.so
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-x86_64.so
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.dd-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.dd-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer_no_main-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer_no_main-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-powerpc.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-powerpc64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-powerpc64le.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.safestack-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.safestack-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.safestack-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-i386.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-aarch64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-arm.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-armhf.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-x86_64.a
+OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-x86_64.a
+OLD_DIRS+=usr/lib/clang/13.0.0/lib/freebsd
+OLD_DIRS+=usr/lib/clang/13.0.0/lib
+OLD_DIRS+=usr/lib/clang/13.0.0
+
+# 20220514: new libc++ import which bumps version from 13.0.0 to 14.0.0
+OLD_FILES+=usr/include/c++/v1/__memory/pointer_safety.h
+OLD_FILES+=usr/include/c++/v1/__utility/__decay_copy.h
+
# 20220418: uudecode merged into uuencode and renamed to bintrans
OLD_FILES+=usr/lib/debug/usr/bin/uuencode.debug
OLD_FILES+=usr/lib/debug/usr/bin/uudecode.debug
diff --git a/contrib/llvm-project/FREEBSD-Xlist b/contrib/llvm-project/FREEBSD-Xlist
index 83ef7e63ffec..a1b16e75a5b8 100644
--- a/contrib/llvm-project/FREEBSD-Xlist
+++ b/contrib/llvm-project/FREEBSD-Xlist
@@ -105,6 +105,7 @@ clang/tools/clang-format/git-clang-format
clang/tools/clang-format-vs/
clang/tools/clang-fuzzer/
clang/tools/clang-import-test/
+clang/tools/clang-nvlink-wrapper/
clang/tools/clang-offload-bundler/
clang/tools/clang-offload-wrapper/
clang/tools/clang-refactor/
@@ -149,6 +150,7 @@ clang/utils/token-delta.py
clang/utils/valgrind/
clang/www/
clang-tools-extra/
+cmake/
compiler-rt/.gitignore
compiler-rt/CMakeLists.txt
compiler-rt/CODE_OWNERS.TXT
@@ -187,6 +189,7 @@ compiler-rt/lib/interception/tests/
compiler-rt/lib/lsan/.clang-format
compiler-rt/lib/lsan/CMakeLists.txt
compiler-rt/lib/memprof/CMakeLists.txt
+compiler-rt/lib/memprof/tests/CMakeLists.txt
compiler-rt/lib/msan/.clang-format
compiler-rt/lib/msan/CMakeLists.txt
compiler-rt/lib/msan/tests/
@@ -229,6 +232,7 @@ flang/
libc/
libclc/
libcxx/.clang-format
+libcxx/.clang-tidy
libcxx/.gitignore
libcxx/CMakeLists.txt
libcxx/TODO.TXT
@@ -280,6 +284,7 @@ lldb/CODE_OWNERS.txt
lldb/bindings/CMakeLists.txt
lldb/bindings/lua/CMakeLists.txt
lldb/bindings/python/CMakeLists.txt
+lldb/bindings/python/get-python-config.py
lldb/cmake/
lldb/docs/.htaccess
lldb/docs/CMakeLists.txt
@@ -379,6 +384,7 @@ lldb/source/Plugins/ObjectFile/CMakeLists.txt
lldb/source/Plugins/ObjectFile/ELF/CMakeLists.txt
lldb/source/Plugins/ObjectFile/JIT/CMakeLists.txt
lldb/source/Plugins/ObjectFile/Mach-O/
+lldb/source/Plugins/ObjectFile/Minidump/CMakeLists.txt
lldb/source/Plugins/ObjectFile/PDB/CMakeLists.txt
lldb/source/Plugins/ObjectFile/PECOFF/
lldb/source/Plugins/ObjectFile/wasm/CMakeLists.txt
@@ -407,6 +413,8 @@ lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
lldb/source/Plugins/Process/mach-core/
lldb/source/Plugins/Process/minidump/CMakeLists.txt
lldb/source/Plugins/Process/scripted/CMakeLists.txt
+lldb/source/Plugins/REPL/CMakeLists.txt
+lldb/source/Plugins/REPL/Clang/CMakeLists.txt
lldb/source/Plugins/ScriptInterpreter/CMakeLists.txt
lldb/source/Plugins/ScriptInterpreter/Lua/CMakeLists.txt
lldb/source/Plugins/ScriptInterpreter/None/CMakeLists.txt
@@ -428,6 +436,7 @@ lldb/source/Plugins/Trace/CMakeLists.txt
lldb/source/Plugins/Trace/common/CMakeLists.txt
lldb/source/Plugins/Trace/intel-pt/CMakeLists.txt
lldb/source/Plugins/TraceExporter/CMakeLists.txt
+lldb/source/Plugins/TraceExporter/common/CMakeLists.txt
lldb/source/Plugins/TraceExporter/ctf/CMakeLists.txt
lldb/source/Plugins/TypeSystem/CMakeLists.txt
lldb/source/Plugins/TypeSystem/Clang/CMakeLists.txt
@@ -555,6 +564,7 @@ llvm/lib/Target/AArch64/Utils/CMakeLists.txt
llvm/lib/Target/AMDGPU/AsmParser/CMakeLists.txt
llvm/lib/Target/AMDGPU/CMakeLists.txt
llvm/lib/Target/AMDGPU/Disassembler/CMakeLists.txt
+llvm/lib/Target/AMDGPU/MCA/CMakeLists.txt
llvm/lib/Target/AMDGPU/MCTargetDesc/CMakeLists.txt
llvm/lib/Target/AMDGPU/TargetInfo/CMakeLists.txt
llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
@@ -711,7 +721,9 @@ llvm/tools/llvm-cxxdump/CMakeLists.txt
llvm/tools/llvm-cxxfilt/CMakeLists.txt
llvm/tools/llvm-cxxmap/CMakeLists.txt
llvm/tools/llvm-diff/CMakeLists.txt
+llvm/tools/llvm-diff/lib/CMakeLists.txt
llvm/tools/llvm-dis/CMakeLists.txt
+llvm/tools/llvm-dlang-demangle-fuzzer/
llvm/tools/llvm-dwarfdump/CMakeLists.txt
llvm/tools/llvm-dwarfdump/fuzzer/
llvm/tools/llvm-dwp/CMakeLists.txt
@@ -733,8 +745,6 @@ llvm/tools/llvm-mc/CMakeLists.txt
llvm/tools/llvm-mc-assemble-fuzzer/
llvm/tools/llvm-mc-disassemble-fuzzer/
llvm/tools/llvm-mca/CMakeLists.txt
-llvm/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt
-llvm/tools/llvm-mca/lib/CMakeLists.txt
llvm/tools/llvm-microsoft-demangle-fuzzer/
llvm/tools/llvm-ml/
llvm/tools/llvm-modextract/CMakeLists.txt
@@ -761,6 +771,7 @@ llvm/tools/llvm-stress/CMakeLists.txt
llvm/tools/llvm-strings/CMakeLists.txt
llvm/tools/llvm-symbolizer/CMakeLists.txt
llvm/tools/llvm-tapi-diff/CMakeLists.txt
+llvm/tools/llvm-tli-checker/CMakeLists.txt
llvm/tools/llvm-undname/
llvm/tools/llvm-xray/CMakeLists.txt
llvm/tools/llvm-yaml-numeric-parser-fuzzer/
@@ -844,11 +855,16 @@ llvm/utils/llvmdo
llvm/utils/llvmgrep
llvm/utils/merge-stats.py
llvm/utils/not/
+llvm/utils/pipeline.py
llvm/utils/prepare-code-coverage-artifact.py
+llvm/utils/reduce_pipeline.py
+llvm/utils/reduce_pipeline_test/
llvm/utils/release/
llvm/utils/remote-exec.py
llvm/utils/revert_checker.py
llvm/utils/revert_checker_test.py
+llvm/utils/rsp_bisect.py
+llvm/utils/rsp_bisect_test/
llvm/utils/sanitizers/
llvm/utils/schedcover.py
llvm/utils/shuffle_fuzz.py
@@ -877,6 +893,7 @@ openmp/CMakeLists.txt
openmp/README.rst
openmp/cmake/
openmp/docs/
+openmp/libompd/
openmp/libomptarget/
openmp/runtime/.clang-format
openmp/runtime/.clang-tidy
@@ -888,8 +905,6 @@ openmp/runtime/src/CMakeLists.txt
openmp/runtime/test/
openmp/runtime/tools/
openmp/tools/
-openmp/www/
-parallel-libs/
polly/
pstl/
runtimes/
diff --git a/contrib/llvm-project/clang/include/clang/AST/Redeclarable.h b/contrib/llvm-project/clang/include/clang/AST/Redeclarable.h
index 77b827c52bfb..58ec07973920 100644
--- a/contrib/llvm-project/clang/include/clang/AST/Redeclarable.h
+++ b/contrib/llvm-project/clang/include/clang/AST/Redeclarable.h
@@ -258,7 +258,8 @@ public:
redecl_iterator& operator++() {
assert(Current && "Advancing while iterator has reached end");
- // Sanity check to avoid infinite loop on invalid redecl chain.
+ // Make sure we don't infinitely loop on an invalid redecl chain. This
+ // should never happen.
if (Current->isFirstDecl()) {
if (PassedFirst) {
assert(0 && "Passed first decl twice, invalid redecl chain!");
diff --git a/contrib/llvm-project/clang/include/clang/AST/Type.h b/contrib/llvm-project/clang/include/clang/AST/Type.h
index fd25ec25d4f2..4c89c297bf34 100644
--- a/contrib/llvm-project/clang/include/clang/AST/Type.h
+++ b/contrib/llvm-project/clang/include/clang/AST/Type.h
@@ -5073,8 +5073,10 @@ public:
static void Profile(llvm::FoldingSetNodeID &ID, TemplateName Template,
QualType Deduced, bool IsDependent) {
Template.Profile(ID);
- ID.AddPointer(Deduced.getAsOpaquePtr());
- ID.AddBoolean(IsDependent);
+ QualType CanonicalType =
+ Deduced.isNull() ? Deduced : Deduced.getCanonicalType();
+ ID.AddPointer(CanonicalType.getAsOpaquePtr());
+ ID.AddBoolean(IsDependent || Template.isDependent());
}
static bool classof(const Type *T) {
diff --git a/contrib/llvm-project/clang/include/clang/Analysis/CFG.h b/contrib/llvm-project/clang/include/clang/Analysis/CFG.h
index f9223fe58a27..3b9b22e87f35 100644
--- a/contrib/llvm-project/clang/include/clang/Analysis/CFG.h
+++ b/contrib/llvm-project/clang/include/clang/Analysis/CFG.h
@@ -515,7 +515,7 @@ public:
/// of the most derived class while we're in the base class.
VirtualBaseBranch,
- /// Number of different kinds, for sanity checks. We subtract 1 so that
+ /// Number of different kinds, for validity checks. We subtract 1 so that
/// to keep receiving compiler warnings when we don't cover all enum values
/// in a switch.
NumKindsMinusOne = VirtualBaseBranch
diff --git a/contrib/llvm-project/clang/include/clang/Basic/Attr.td b/contrib/llvm-project/clang/include/clang/Basic/Attr.td
index d8f0fcd56550..39588d94cf09 100644
--- a/contrib/llvm-project/clang/include/clang/Basic/Attr.td
+++ b/contrib/llvm-project/clang/include/clang/Basic/Attr.td
@@ -2310,6 +2310,7 @@ def SwiftAttr : InheritableAttr {
let Spellings = [GNU<"swift_attr">];
let Args = [StringArgument<"Attribute">];
let Documentation = [SwiftAttrDocs];
+ let PragmaAttributeSupport = 1;
}
def SwiftBridge : InheritableAttr {
diff --git a/contrib/llvm-project/clang/include/clang/CodeGen/CGFunctionInfo.h b/contrib/llvm-project/clang/include/clang/CodeGen/CGFunctionInfo.h
index 4899c9deda6a..cd6c7e2e3128 100644
--- a/contrib/llvm-project/clang/include/clang/CodeGen/CGFunctionInfo.h
+++ b/contrib/llvm-project/clang/include/clang/CodeGen/CGFunctionInfo.h
@@ -250,7 +250,7 @@ public:
static ABIArgInfo getCoerceAndExpand(llvm::StructType *coerceToType,
llvm::Type *unpaddedCoerceToType) {
#ifndef NDEBUG
- // Sanity checks on unpaddedCoerceToType.
+ // Check that unpaddedCoerceToType has roughly the right shape.
// Assert that we only have a struct type if there are multiple elements.
auto unpaddedStruct = dyn_cast<llvm::StructType>(unpaddedCoerceToType);
diff --git a/contrib/llvm-project/clang/include/clang/Sema/Lookup.h b/contrib/llvm-project/clang/include/clang/Sema/Lookup.h
index c6edc2df5b9f..54fe7081b710 100644
--- a/contrib/llvm-project/clang/include/clang/Sema/Lookup.h
+++ b/contrib/llvm-project/clang/include/clang/Sema/Lookup.h
@@ -319,7 +319,7 @@ public:
}
LookupResultKind getResultKind() const {
- assert(sanity());
+ assert(checkDebugAssumptions());
return ResultKind;
}
@@ -706,10 +706,9 @@ private:
void addDeclsFromBasePaths(const CXXBasePaths &P);
void configure();
- // Sanity checks.
- bool sanity() const;
+ bool checkDebugAssumptions() const;
- bool sanityCheckUnresolved() const {
+ bool checkUnresolved() const {
for (iterator I = begin(), E = end(); I != E; ++I)
if (isa<UnresolvedUsingValueDecl>((*I)->getUnderlyingDecl()))
return true;
diff --git a/contrib/llvm-project/clang/lib/AST/ASTContext.cpp b/contrib/llvm-project/clang/lib/AST/ASTContext.cpp
index 415fa728b623..221986d8dbab 100644
--- a/contrib/llvm-project/clang/lib/AST/ASTContext.cpp
+++ b/contrib/llvm-project/clang/lib/AST/ASTContext.cpp
@@ -5676,6 +5676,9 @@ QualType ASTContext::getDeducedTemplateSpecializationType(
auto *DTST = new (*this, TypeAlignment)
DeducedTemplateSpecializationType(Template, DeducedType, IsDependent);
+ llvm::FoldingSetNodeID TempID;
+ DTST->Profile(TempID);
+ assert(ID == TempID && "ID does not match");
Types.push_back(DTST);
DeducedTemplateSpecializationTypes.InsertNode(DTST, InsertPos);
return QualType(DTST, 0);
diff --git a/contrib/llvm-project/clang/lib/Analysis/BodyFarm.cpp b/contrib/llvm-project/clang/lib/Analysis/BodyFarm.cpp
index 49ac74c233bd..92c236ed9080 100644
--- a/contrib/llvm-project/clang/lib/Analysis/BodyFarm.cpp
+++ b/contrib/llvm-project/clang/lib/Analysis/BodyFarm.cpp
@@ -790,9 +790,8 @@ static Stmt *createObjCPropertyGetter(ASTContext &Ctx,
}
}
- // Sanity check that the property is the same type as the ivar, or a
- // reference to it, and that it is either an object pointer or trivially
- // copyable.
+ // We expect that the property is the same type as the ivar, or a reference to
+ // it, and that it is either an object pointer or trivially copyable.
if (!Ctx.hasSameUnqualifiedType(IVar->getType(),
Prop->getType().getNonReferenceType()))
return nullptr;
diff --git a/contrib/llvm-project/clang/lib/Analysis/RetainSummaryManager.cpp b/contrib/llvm-project/clang/lib/Analysis/RetainSummaryManager.cpp
index 1d7b968e994f..836e369758d3 100644
--- a/contrib/llvm-project/clang/lib/Analysis/RetainSummaryManager.cpp
+++ b/contrib/llvm-project/clang/lib/Analysis/RetainSummaryManager.cpp
@@ -791,7 +791,7 @@ RetainSummaryManager::getUnarySummary(const FunctionType* FT,
// Unary functions have no arg effects by definition.
ArgEffects ScratchArgs(AF.getEmptyMap());
- // Sanity check that this is *really* a unary function. This can
+ // Verify that this is *really* a unary function. This can
// happen if people do weird things.
const FunctionProtoType* FTP = dyn_cast<FunctionProtoType>(FT);
if (!FTP || FTP->getNumParams() != 1)
diff --git a/contrib/llvm-project/clang/lib/Basic/DiagnosticIDs.cpp b/contrib/llvm-project/clang/lib/Basic/DiagnosticIDs.cpp
index 88801c683e8d..a9f2d09924cd 100644
--- a/contrib/llvm-project/clang/lib/Basic/DiagnosticIDs.cpp
+++ b/contrib/llvm-project/clang/lib/Basic/DiagnosticIDs.cpp
@@ -692,7 +692,7 @@ void DiagnosticIDs::getAllDiagnostics(diag::Flavor Flavor,
StringRef DiagnosticIDs::getNearestOption(diag::Flavor Flavor,
StringRef Group) {
StringRef Best;
- unsigned BestDistance = Group.size() + 1; // Sanity threshold.
+ unsigned BestDistance = Group.size() + 1; // Maximum threshold.
for (const WarningOption &O : OptionTable) {
// Don't suggest ignored warning flags.
if (!O.Members && !O.SubGroups)
diff --git a/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp b/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp
index c2e7b684cfd8..ec3e35595bb7 100644
--- a/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp
+++ b/contrib/llvm-project/clang/lib/Basic/SourceManager.cpp
@@ -59,12 +59,10 @@ unsigned ContentCache::getSizeBytesMapped() const {
/// Returns the kind of memory used to back the memory buffer for
/// this content cache. This is used for performance analysis.
llvm::MemoryBuffer::BufferKind ContentCache::getMemoryBufferKind() const {
- assert(Buffer);
-
- // Should be unreachable, but keep for sanity.
- if (!Buffer)
+ if (Buffer == nullptr) {
+ assert(0 && "Buffer should never be null");
return llvm::MemoryBuffer::MemoryBuffer_Malloc;
-
+ }
return Buffer->getBufferKind();
}
@@ -864,7 +862,6 @@ FileID SourceManager::getFileIDLocal(SourceLocation::UIntTy SLocOffset) const {
/// This function knows that the SourceLocation is in a loaded buffer, not a
/// local one.
FileID SourceManager::getFileIDLoaded(SourceLocation::UIntTy SLocOffset) const {
- // Sanity checking, otherwise a bug may lead to hanging in release build.
if (SLocOffset < CurrentLoadedOffset) {
assert(0 && "Invalid SLocOffset or bad function choice");
return FileID();
@@ -909,7 +906,6 @@ FileID SourceManager::getFileIDLoaded(SourceLocation::UIntTy SLocOffset) const {
++NumProbes;
if (E.getOffset() > SLocOffset) {
- // Sanity checking, otherwise a bug may lead to hanging in release build.
if (GreaterIndex == MiddleIndex) {
assert(0 && "binary search missed the entry");
return FileID();
@@ -925,7 +921,6 @@ FileID SourceManager::getFileIDLoaded(SourceLocation::UIntTy SLocOffset) const {
return Res;
}
- // Sanity checking, otherwise a bug may lead to hanging in release build.
if (LessIndex == MiddleIndex) {
assert(0 && "binary search missed the entry");
return FileID();
diff --git a/contrib/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp b/contrib/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp
index e5476e07a5cc..55518cd7926f 100644
--- a/contrib/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/contrib/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp
@@ -4303,7 +4303,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
const Driver &D = TC.getDriver();
ArgStringList CmdArgs;
- // Check number of inputs for sanity. We need at least one input.
assert(Inputs.size() >= 1 && "Must have at least one input.");
// CUDA/HIP compilation may have multiple inputs (source file + results of
// device-side compilations). OpenMP device jobs also take the host IR as a
diff --git a/contrib/llvm-project/clang/lib/Format/Format.cpp b/contrib/llvm-project/clang/lib/Format/Format.cpp
index 085cca8853e6..8ae29c54a762 100644
--- a/contrib/llvm-project/clang/lib/Format/Format.cpp
+++ b/contrib/llvm-project/clang/lib/Format/Format.cpp
@@ -2579,7 +2579,7 @@ tooling::Replacements sortCppIncludes(const FormatStyle &Style, StringRef Code,
// doesn't have hidden dependencies
// (http://llvm.org/docs/CodingStandards.html#include-style).
//
- // FIXME: Do some sanity checking, e.g. edit distance of the base name, to fix
+ // FIXME: Do some validation, e.g. edit distance of the base name, to fix
// cases where the first #include is unlikely to be the main header.
tooling::IncludeCategoryManager Categories(Style.IncludeStyle, FileName);
bool FirstIncludeBlock = true;
diff --git a/contrib/llvm-project/clang/lib/Frontend/FrontendActions.cpp b/contrib/llvm-project/clang/lib/Frontend/FrontendActions.cpp
index b5544afa9f24..fb8132a5e40a 100644
--- a/contrib/llvm-project/clang/lib/Frontend/FrontendActions.cpp
+++ b/contrib/llvm-project/clang/lib/Frontend/FrontendActions.cpp
@@ -842,7 +842,7 @@ void PrintPreprocessedAction::ExecuteAction() {
const char *next = (cur != end) ? cur + 1 : end;
// Limit ourselves to only scanning 256 characters into the source
- // file. This is mostly a sanity check in case the file has no
+ // file. This is mostly a check in case the file has no
// newlines whatsoever.
if (end - cur > 256)
end = cur + 256;
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaChecking.cpp b/contrib/llvm-project/clang/lib/Sema/SemaChecking.cpp
index 6ffd2096cbc5..a0f6702a5f82 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaChecking.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaChecking.cpp
@@ -5532,8 +5532,8 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange, SourceRange ExprRange,
// For an arithmetic operation, the implied arithmetic must be well-formed.
if (Form == Arithmetic) {
- // gcc does not enforce these rules for GNU atomics, but we do so for
- // sanity.
+ // GCC does not enforce these rules for GNU atomics, but we do, because if
+ // we didn't it would be very confusing. FIXME: For whom? How so?
auto IsAllowedValueType = [&](QualType ValType) {
if (ValType->isIntegerType())
return true;
@@ -5574,7 +5574,8 @@ ExprResult Sema::BuildAtomicExpr(SourceRange CallRange, SourceRange ExprRange,
if (!IsC11 && !AtomTy.isTriviallyCopyableType(Context) &&
!AtomTy->isScalarType()) {
// For GNU atomics, require a trivially-copyable type. This is not part of
- // the GNU atomics specification, but we enforce it for sanity.
+ // the GNU atomics specification, but we enforce it, because if we didn't it
+ // would be very confusing. FIXME: For whom? How so?
Diag(ExprRange.getBegin(), diag::err_atomic_op_needs_trivial_copy)
<< Ptr->getType() << Ptr->getSourceRange();
return ExprError();
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaDecl.cpp b/contrib/llvm-project/clang/lib/Sema/SemaDecl.cpp
index 4fcc01012d44..af174ac1ca1a 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaDecl.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaDecl.cpp
@@ -12621,8 +12621,9 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) {
}
/// ActOnInitializerError - Given that there was an error parsing an
-/// initializer for the given declaration, try to return to some form
-/// of sanity.
+/// initializer for the given declaration, try to at least re-establish
+/// invariants such as whether a variable's type is either dependent or
+/// complete.
void Sema::ActOnInitializerError(Decl *D) {
// Our main concern here is re-establishing invariants like "a
// variable's type is either dependent or complete".
@@ -15997,8 +15998,7 @@ Decl *Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK,
// It's okay to have a tag decl in the same scope as a typedef
// which hides a tag decl in the same scope. Finding this
- // insanity with a redeclaration lookup can only actually happen
- // in C++.
+ // with a redeclaration lookup can only actually happen in C++.
//
// This is also okay for elaborated-type-specifiers, which is
// technically forbidden by the current standard but which is
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp b/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp
index 20410a959cd0..2658e9698688 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaDeclCXX.cpp
@@ -9172,7 +9172,8 @@ bool SpecialMemberDeletionInfo::shouldDeleteForField(FieldDecl *FD) {
}
// Don't check the implicit member of the anonymous union type.
- // This is technically non-conformant, but sanity demands it.
+ // This is technically non-conformant but supported, and we have a
+ // diagnostic for this elsewhere.
return false;
}
@@ -12256,7 +12257,7 @@ NamedDecl *Sema::BuildUsingDeclaration(
// Unlike most lookups, we don't always want to hide tag
// declarations: tag names are visible through the using declaration
// even if hidden by ordinary names, *except* in a dependent context
- // where it's important for the sanity of two-phase lookup.
+ // where they may be used by two-phase lookup.
if (!IsInstantiation)
R.setHideTags(false);
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp b/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
index 97f2062d4485..8592335e20d3 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
@@ -11185,7 +11185,6 @@ QualType Sema::CheckShiftOperands(ExprResult &LHS, ExprResult &RHS,
isScopedEnumerationType(RHSType)) {
return InvalidOperands(Loc, LHS, RHS);
}
- // Sanity-check shift operands
DiagnoseBadShiftValues(*this, LHS, RHS, Loc, Opc, LHSType);
// "The type of the result is that of the promoted left operand."
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp b/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp
index 891909c443cc..635252584562 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaExprCXX.cpp
@@ -1507,8 +1507,9 @@ Sema::BuildCXXTypeConstructExpr(TypeSourceInfo *TInfo,
ElemTy = Context.getBaseElementType(Ty);
}
- // There doesn't seem to be an explicit rule against this but sanity demands
- // we only construct objects with object types.
+ // Only construct objects with object types.
+ // There doesn't seem to be an explicit rule for this but functions are
+ // not objects, so they cannot take initializers.
if (Ty->isFunctionType())
return ExprError(Diag(TyBeginLoc, diag::err_init_for_function_type)
<< Ty << FullRange);
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaLookup.cpp b/contrib/llvm-project/clang/lib/Sema/SemaLookup.cpp
index 05529d055621..0711e6d89383 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaLookup.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaLookup.cpp
@@ -324,14 +324,14 @@ void LookupResult::configure() {
}
}
-bool LookupResult::sanity() const {
+bool LookupResult::checkDebugAssumptions() const {
// This function is never called by NDEBUG builds.
assert(ResultKind != NotFound || Decls.size() == 0);
assert(ResultKind != Found || Decls.size() == 1);
assert(ResultKind != FoundOverloaded || Decls.size() > 1 ||
(Decls.size() == 1 &&
isa<FunctionTemplateDecl>((*begin())->getUnderlyingDecl())));
- assert(ResultKind != FoundUnresolvedValue || sanityCheckUnresolved());
+ assert(ResultKind != FoundUnresolvedValue || checkUnresolved());
assert(ResultKind != Ambiguous || Decls.size() > 1 ||
(Decls.size() == 1 && (Ambiguity == AmbiguousBaseSubobjects ||
Ambiguity == AmbiguousBaseSubobjectTypes)));
diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
index 475cee9ce04b..6955efe8e6c2 100644
--- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
+++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
@@ -1517,7 +1517,7 @@ void CStringChecker::evalStrcat(CheckerContext &C, const CallExpr *CE) const {
}
void CStringChecker::evalStrncat(CheckerContext &C, const CallExpr *CE) const {
- //char *strncat(char *restrict s1, const char *restrict s2, size_t n);
+ // char *strncat(char *restrict s1, const char *restrict s2, size_t n);
evalStrcpyCommon(C, CE,
/* ReturnEnd = */ false,
/* IsBounded = */ true,
@@ -2069,8 +2069,8 @@ void CStringChecker::evalStrcmpCommon(CheckerContext &C, const CallExpr *CE,
}
void CStringChecker::evalStrsep(CheckerContext &C, const CallExpr *CE) const {
- //char *strsep(char **stringp, const char *delim);
- // Sanity: does the search string parameter match the return type?
+ // char *strsep(char **stringp, const char *delim);
+ // Verify whether the search string parameter matches the return type.
SourceArgExpr SearchStrPtr = {CE->getArg(0), 0};
QualType CharPtrTy = SearchStrPtr.Expression->getType()->getPointeeType();
diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
index 5bf96acc0462..139bc0e99d78 100644
--- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
+++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
@@ -160,7 +160,7 @@ static bool isInMIGCall(CheckerContext &C) {
if (Optional<AnyCall> AC = AnyCall::forDecl(D)) {
// Even though there's a Sema warning when the return type of an annotated
// function is not a kern_return_t, this warning isn't an error, so we need
- // an extra sanity check here.
+ // an extra check here.
// FIXME: AnyCall doesn't support blocks yet, so they remain unchecked
// for now.
if (!AC->getReturnType(C.getASTContext())
diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
index e8b963a535d8..5a8edcabda71 100644
--- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
+++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
@@ -155,7 +155,7 @@ class StdLibraryFunctionsChecker
protected:
ArgNo ArgN; // Argument to which we apply the constraint.
- /// Do polymorphic sanity check on the constraint.
+ /// Do polymorphic validation check on the constraint.
virtual bool checkSpecificValidity(const FunctionDecl *FD) const {
return true;
}
@@ -527,8 +527,8 @@ class StdLibraryFunctionsChecker
}
private:
- // Once we know the exact type of the function then do sanity check on all
- // the given constraints.
+ // Once we know the exact type of the function then do validation check on
+ // all the given constraints.
bool validateByConstraints(const FunctionDecl *FD) const {
for (const ConstraintSet &Case : CaseConstraints)
for (const ValueConstraintPtr &Constraint : Case)
diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
index 2244cdb96d4f..41adc36b021a 100644
--- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
+++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UnixAPIChecker.cpp
@@ -182,8 +182,7 @@ void UnixAPIMisuseChecker::CheckOpenVariant(CheckerContext &C,
ProgramStateRef state = C.getState();
if (CE->getNumArgs() < MinArgCount) {
- // The frontend should issue a warning for this case, so this is a sanity
- // check.
+ // The frontend should issue a warning for this case. Just return.
return;
} else if (CE->getNumArgs() == MaxArgCount) {
const Expr *Arg = CE->getArg(CreateModeArgIndex);
@@ -366,7 +365,7 @@ void UnixAPIPortabilityChecker::BasicAllocationCheck(CheckerContext &C,
const unsigned numArgs,
const unsigned sizeArg,
const char *fn) const {
- // Sanity check for the correct number of arguments
+ // Check for the correct number of arguments.
if (CE->getNumArgs() != numArgs)
return;
diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
index 8774dc3323ab..b957bec7493e 100644
--- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
+++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
@@ -1670,9 +1670,10 @@ PathDiagnosticPieceRef TrackConstraintBRVisitor::VisitNode(
if (isUnderconstrained(PrevN)) {
IsSatisfied = true;
- // As a sanity check, make sure that the negation of the constraint
- // was infeasible in the current state. If it is feasible, we somehow
- // missed the transition point.
+ // At this point, the negation of the constraint should be infeasible. If it
+ // is feasible, make sure that the negation of the constrainti was
+ // infeasible in the current state. If it is feasible, we somehow missed
+ // the transition point.
assert(!isUnderconstrained(N));
// We found the transition point for the constraint. We now need to
diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 12b005d43c55..a170ef3885b2 100644
--- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -326,8 +326,8 @@ ProgramStateRef ExprEngine::createTemporaryRegionIfNeeded(
}
Result = InitWithAdjustments;
} else {
- // We need to create a region no matter what. For sanity, make sure we don't
- // try to stuff a Loc into a non-pointer temporary region.
+ // We need to create a region no matter what. Make sure we don't try to
+ // stuff a Loc into a non-pointer temporary region.
assert(!InitValWithAdjustments.getAs<Loc>() ||
Loc::isLocType(Result->getType()) ||
Result->getType()->isMemberPointerType());
diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/Store.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/Store.cpp
index 3cc0cd224d7a..05feb1325c93 100644
--- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/Store.cpp
+++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/Store.cpp
@@ -249,7 +249,7 @@ static bool regionMatchesCXXRecordType(SVal V, QualType Ty) {
}
SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) {
- // Sanity check to avoid doing the wrong thing in the face of
+ // Early return to avoid doing the wrong thing in the face of
// reinterpret_cast.
if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType()))
return UnknownVal();
diff --git a/contrib/llvm-project/clang/lib/Tooling/Syntax/Tree.cpp b/contrib/llvm-project/clang/lib/Tooling/Syntax/Tree.cpp
index 07ee13e313f5..1e3a90f3a316 100644
--- a/contrib/llvm-project/clang/lib/Tooling/Syntax/Tree.cpp
+++ b/contrib/llvm-project/clang/lib/Tooling/Syntax/Tree.cpp
@@ -126,7 +126,7 @@ void syntax::Tree::replaceChildRangeLowLevel(Node *Begin, Node *End,
for (auto *N = New; N; N = N->NextSibling) {
assert(N->Parent == nullptr);
assert(N->getRole() != NodeRole::Detached && "Roles must be set");
- // FIXME: sanity-check the role.
+ // FIXME: validate the role.
}
auto Reachable = [](Node *From, Node *N) {
diff --git a/contrib/llvm-project/clang/tools/clang-nvlink-wrapper/ClangNvlinkWrapper.cpp b/contrib/llvm-project/clang/tools/clang-nvlink-wrapper/ClangNvlinkWrapper.cpp
deleted file mode 100644
index bc5b9a9f1fde..000000000000
--- a/contrib/llvm-project/clang/tools/clang-nvlink-wrapper/ClangNvlinkWrapper.cpp
+++ /dev/null
@@ -1,196 +0,0 @@
-//===-- clang-nvlink-wrapper/ClangNvlinkWrapper.cpp - wrapper over nvlink-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===---------------------------------------------------------------------===//
-///
-/// \file
-/// This tool works as a wrapper over nvlink program. It transparently passes
-/// every input option and objects to nvlink except archive files. It reads
-/// each input archive file to extract archived cubin files as temporary files.
-/// These temp (*.cubin) files are passed to nvlink, because nvlink does not
-/// support linking of archive files implicitly.
-///
-/// During linking of heterogeneous device archive libraries, the
-/// clang-offload-bundler creates a device specific archive of cubin files.
-/// Such an archive is then passed to this tool to extract cubin files before
-/// passing to nvlink.
-///
-/// Example:
-/// clang-nvlink-wrapper -o a.out-openmp-nvptx64 /tmp/libTest-nvptx-sm_50.a
-///
-/// 1. Extract (libTest-nvptx-sm_50.a) => /tmp/a.cubin /tmp/b.cubin
-/// 2. nvlink -o a.out-openmp-nvptx64 /tmp/a.cubin /tmp/b.cubin
-//===---------------------------------------------------------------------===//
-
-#include "clang/Basic/Version.h"
-#include "llvm/Object/Archive.h"
-#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/Errc.h"
-#include "llvm/Support/FileSystem.h"
-#include "llvm/Support/MemoryBuffer.h"
-#include "llvm/Support/Path.h"
-#include "llvm/Support/Program.h"
-#include "llvm/Support/Signals.h"
-#include "llvm/Support/StringSaver.h"
-#include "llvm/Support/WithColor.h"
-#include "llvm/Support/raw_ostream.h"
-
-using namespace llvm;
-
-static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden);
-
-// Mark all our options with this category, everything else (except for -help)
-// will be hidden.
-static cl::OptionCategory
- ClangNvlinkWrapperCategory("clang-nvlink-wrapper options");
-
-static cl::opt<std::string> NvlinkUserPath("nvlink-path",
- cl::desc("Path of nvlink binary"),
- cl::cat(ClangNvlinkWrapperCategory));
-
-// Do not parse nvlink options
-static cl::list<std::string>
- NVArgs(cl::Sink, cl::desc("<options to be passed to nvlink>..."));
-
-static Error runNVLink(std::string NVLinkPath,
- SmallVectorImpl<std::string> &Args) {
- std::vector<StringRef> NVLArgs;
- NVLArgs.push_back(NVLinkPath);
- for (auto &Arg : Args) {
- NVLArgs.push_back(Arg);
- }
-
- if (sys::ExecuteAndWait(NVLinkPath.c_str(), NVLArgs))
- return createStringError(inconvertibleErrorCode(), "'nvlink' failed");
- return Error::success();
-}
-
-static Error extractArchiveFiles(StringRef Filename,
- SmallVectorImpl<std::string> &Args,
- SmallVectorImpl<std::string> &TmpFiles) {
- std::vector<std::unique_ptr<MemoryBuffer>> ArchiveBuffers;
-
- ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
- MemoryBuffer::getFileOrSTDIN(Filename, false, false);
- if (std::error_code EC = BufOrErr.getError())
- return createFileError(Filename, EC);
-
- ArchiveBuffers.push_back(std::move(*BufOrErr));
- Expected<std::unique_ptr<llvm::object::Archive>> LibOrErr =
- object::Archive::create(ArchiveBuffers.back()->getMemBufferRef());
- if (!LibOrErr)
- return LibOrErr.takeError();
-
- auto Archive = std::move(*LibOrErr);
-
- Error Err = Error::success();
- auto ChildEnd = Archive->child_end();
- for (auto ChildIter = Archive->child_begin(Err); ChildIter != ChildEnd;
- ++ChildIter) {
- if (Err)
- return Err;
- auto ChildNameOrErr = (*ChildIter).getName();
- if (!ChildNameOrErr)
- return ChildNameOrErr.takeError();
-
- StringRef ChildName = sys::path::filename(ChildNameOrErr.get());
-
- auto ChildBufferRefOrErr = (*ChildIter).getMemoryBufferRef();
- if (!ChildBufferRefOrErr)
- return ChildBufferRefOrErr.takeError();
-
- auto ChildBuffer =
- MemoryBuffer::getMemBuffer(ChildBufferRefOrErr.get(), false);
- auto ChildNameSplit = ChildName.split('.');
-
- SmallString<16> Path;
- int FileDesc;
- if (std::error_code EC = sys::fs::createTemporaryFile(
- (ChildNameSplit.first), (ChildNameSplit.second), FileDesc, Path))
- return createFileError(ChildName, EC);
-
- std::string TmpFileName(Path.str());
- Args.push_back(TmpFileName);
- TmpFiles.push_back(TmpFileName);
- std::error_code EC;
- raw_fd_ostream OS(Path.c_str(), EC, sys::fs::OF_None);
- if (EC)
- return createFileError(TmpFileName, errc::io_error);
- OS << ChildBuffer->getBuffer();
- OS.close();
- }
- return Err;
-}
-
-static Error cleanupTmpFiles(SmallVectorImpl<std::string> &TmpFiles) {
- for (auto &TmpFile : TmpFiles) {
- if (std::error_code EC = sys::fs::remove(TmpFile))
- return createFileError(TmpFile, errc::no_such_file_or_directory);
- }
- return Error::success();
-}
-
-static void PrintVersion(raw_ostream &OS) {
- OS << clang::getClangToolFullVersion("clang-nvlink-wrapper") << '\n';
-}
-
-int main(int argc, const char **argv) {
- sys::PrintStackTraceOnErrorSignal(argv[0]);
- cl::SetVersionPrinter(PrintVersion);
- cl::HideUnrelatedOptions(ClangNvlinkWrapperCategory);
- cl::ParseCommandLineOptions(
- argc, argv,
- "A wrapper tool over nvlink program. It transparently passes every \n"
- "input option and objects to nvlink except archive files and path of \n"
- "nvlink binary. It reads each input archive file to extract archived \n"
- "cubin files as temporary files.\n");
-
- if (Help) {
- cl::PrintHelpMessage();
- return 0;
- }
-
- auto reportError = [argv](Error E) {
- logAllUnhandledErrors(std::move(E), WithColor::error(errs(), argv[0]));
- exit(1);
- };
-
- std::string NvlinkPath;
- SmallVector<const char *, 0> Argv(argv, argv + argc);
- SmallVector<std::string, 0> ArgvSubst;
- SmallVector<std::string, 0> TmpFiles;
- BumpPtrAllocator Alloc;
- StringSaver Saver(Alloc);
- cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Argv);
-
- for (const std::string &Arg : NVArgs) {
- if (sys::path::extension(Arg) == ".a") {
- if (Error Err = extractArchiveFiles(Arg, ArgvSubst, TmpFiles))
- reportError(std::move(Err));
- } else {
- ArgvSubst.push_back(Arg);
- }
- }
-
- NvlinkPath = NvlinkUserPath;
-
- // If user hasn't specified nvlink binary then search it in PATH
- if (NvlinkPath.empty()) {
- ErrorOr<std::string> NvlinkPathErr = sys::findProgramByName("nvlink");
- if (!NvlinkPathErr) {
- reportError(createStringError(NvlinkPathErr.getError(),
- "unable to find 'nvlink' in path"));
- }
- NvlinkPath = NvlinkPathErr.get();
- }
-
- if (Error Err = runNVLink(NvlinkPath, ArgvSubst))
- reportError(std::move(Err));
- if (Error Err = cleanupTmpFiles(TmpFiles))
- reportError(std::move(Err));
-
- return 0;
-}
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/binary_search.h b/contrib/llvm-project/libcxx/include/__algorithm/binary_search.h
index cd1d7b1a752d..8fc55b9becb1 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/binary_search.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/binary_search.h
@@ -11,8 +11,8 @@
#include <__config>
#include <__algorithm/comp.h>
-#include <__algorithm/lower_bound.h>
#include <__algorithm/comp_ref_type.h>
+#include <__algorithm/lower_bound.h>
#include <__iterator/iterator_traits.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h b/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h
index 7fd5d6ff9a00..22c27a66d129 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/is_heap.h
@@ -11,6 +11,7 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__algorithm/is_heap_until.h>
#include <__iterator/iterator_traits.h>
@@ -26,7 +27,8 @@ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
bool
is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp)
{
- return _VSTD::is_heap_until(__first, __last, __comp) == __last;
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return _VSTD::__is_heap_until<_Comp_ref>(__first, __last, __comp) == __last;
}
template<class _RandomAccessIterator>
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/is_heap_until.h b/contrib/llvm-project/libcxx/include/__algorithm/is_heap_until.h
index 99291c102bfc..dd8a62f07fd3 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/is_heap_until.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/is_heap_until.h
@@ -11,6 +11,7 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__iterator/iterator_traits.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -19,9 +20,9 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _RandomAccessIterator, class _Compare>
-_LIBCPP_NODISCARD_EXT _LIBCPP_CONSTEXPR_AFTER_CXX17 _RandomAccessIterator
-is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp)
+template <class _Compare, class _RandomAccessIterator>
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 _RandomAccessIterator
+__is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp)
{
typedef typename iterator_traits<_RandomAccessIterator>::difference_type difference_type;
difference_type __len = __last - __first;
@@ -46,13 +47,19 @@ is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, _Comp
return __last;
}
+template <class _RandomAccessIterator, class _Compare>
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 _RandomAccessIterator
+is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp)
+{
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return _VSTD::__is_heap_until<_Comp_ref>(__first, __last, __comp);
+}
+
template<class _RandomAccessIterator>
-_LIBCPP_NODISCARD_EXT inline
-_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
-_RandomAccessIterator
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 _RandomAccessIterator
is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last)
{
- return _VSTD::is_heap_until(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>());
+ return _VSTD::__is_heap_until(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>());
}
_LIBCPP_END_NAMESPACE_STD
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/is_sorted.h b/contrib/llvm-project/libcxx/include/__algorithm/is_sorted.h
index c6954934e8c0..57953295a888 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/is_sorted.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/is_sorted.h
@@ -10,6 +10,7 @@
#define _LIBCPP___ALGORITHM_IS_SORTED_H
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__algorithm/is_sorted_until.h>
#include <__config>
#include <__iterator/iterator_traits.h>
@@ -26,7 +27,8 @@ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
bool
is_sorted(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
{
- return _VSTD::is_sorted_until(__first, __last, __comp) == __last;
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return _VSTD::__is_sorted_until<_Comp_ref>(__first, __last, __comp) == __last;
}
template<class _ForwardIterator>
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/is_sorted_until.h b/contrib/llvm-project/libcxx/include/__algorithm/is_sorted_until.h
index 5b6385991a74..9a7f275c5400 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/is_sorted_until.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/is_sorted_until.h
@@ -11,6 +11,7 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__iterator/iterator_traits.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -19,9 +20,9 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _ForwardIterator, class _Compare>
-_LIBCPP_NODISCARD_EXT _LIBCPP_CONSTEXPR_AFTER_CXX17 _ForwardIterator
-is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
+template <class _Compare, class _ForwardIterator>
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 _ForwardIterator
+__is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
{
if (__first != __last)
{
@@ -36,10 +37,16 @@ is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, _Compare __co
return __last;
}
+template <class _ForwardIterator, class _Compare>
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 _ForwardIterator
+is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
+{
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return _VSTD::__is_sorted_until<_Comp_ref>(__first, __last, __comp);
+}
+
template<class _ForwardIterator>
-_LIBCPP_NODISCARD_EXT inline
-_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17
-_ForwardIterator
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX17 _ForwardIterator
is_sorted_until(_ForwardIterator __first, _ForwardIterator __last)
{
return _VSTD::is_sorted_until(__first, __last, __less<typename iterator_traits<_ForwardIterator>::value_type>());
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/max.h b/contrib/llvm-project/libcxx/include/__algorithm/max.h
index 2fa97cad87f6..79cbd2be86b6 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/max.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/max.h
@@ -11,6 +11,7 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__algorithm/max_element.h>
#include <initializer_list>
@@ -49,7 +50,8 @@ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
_Tp
max(initializer_list<_Tp> __t, _Compare __comp)
{
- return *_VSTD::max_element(__t.begin(), __t.end(), __comp);
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return *_VSTD::__max_element<_Comp_ref>(__t.begin(), __t.end(), __comp);
}
template<class _Tp>
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/max_element.h b/contrib/llvm-project/libcxx/include/__algorithm/max_element.h
index c51519605af9..f932ca7049fa 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/max_element.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/max_element.h
@@ -11,6 +11,7 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__iterator/iterator_traits.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -19,11 +20,9 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _ForwardIterator, class _Compare>
-_LIBCPP_NODISCARD_EXT inline
-_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
-_ForwardIterator
-max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
+template <class _Compare, class _ForwardIterator>
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 _ForwardIterator
+__max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
{
static_assert(__is_cpp17_forward_iterator<_ForwardIterator>::value,
"std::max_element requires a ForwardIterator");
@@ -37,11 +36,17 @@ max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
return __first;
}
+template <class _ForwardIterator, class _Compare>
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 _ForwardIterator
+max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
+{
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return _VSTD::__max_element<_Comp_ref>(__first, __last, __comp);
+}
+
template <class _ForwardIterator>
-_LIBCPP_NODISCARD_EXT inline
-_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
-_ForwardIterator
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 _ForwardIterator
max_element(_ForwardIterator __first, _ForwardIterator __last)
{
return _VSTD::max_element(__first, __last,
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/min.h b/contrib/llvm-project/libcxx/include/__algorithm/min.h
index 9fea7f70a2bb..5cacb2f28e7e 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/min.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/min.h
@@ -11,6 +11,7 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__algorithm/min_element.h>
#include <initializer_list>
@@ -49,7 +50,8 @@ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
_Tp
min(initializer_list<_Tp> __t, _Compare __comp)
{
- return *_VSTD::min_element(__t.begin(), __t.end(), __comp);
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return *_VSTD::__min_element<_Comp_ref>(__t.begin(), __t.end(), __comp);
}
template<class _Tp>
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/min_element.h b/contrib/llvm-project/libcxx/include/__algorithm/min_element.h
index 9bfd0793c69d..3aebebca91ab 100644
--- a/contrib/llvm-project/libcxx/include/__algorithm/min_element.h
+++ b/contrib/llvm-project/libcxx/include/__algorithm/min_element.h
@@ -11,6 +11,7 @@
#include <__config>
#include <__algorithm/comp.h>
+#include <__algorithm/comp_ref_type.h>
#include <__iterator/iterator_traits.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -19,11 +20,9 @@
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _ForwardIterator, class _Compare>
-_LIBCPP_NODISCARD_EXT inline
-_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
-_ForwardIterator
-min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
+template <class _Compare, class _ForwardIterator>
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 _ForwardIterator
+__min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
{
static_assert(__is_cpp17_forward_iterator<_ForwardIterator>::value,
"std::min_element requires a ForwardIterator");
@@ -37,10 +36,16 @@ min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
return __first;
}
+template <class _ForwardIterator, class _Compare>
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 _ForwardIterator
+min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp)
+{
+ typedef typename __comp_ref_type<_Compare>::type _Comp_ref;
+ return _VSTD::__min_element<_Comp_ref>(__first, __last, __comp);
+}
+
template <class _ForwardIterator>
-_LIBCPP_NODISCARD_EXT inline
-_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11
-_ForwardIterator
+_LIBCPP_NODISCARD_EXT inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_AFTER_CXX11 _ForwardIterator
min_element(_ForwardIterator __first, _ForwardIterator __last)
{
return _VSTD::min_element(__first, __last,
diff --git a/contrib/llvm-project/libcxx/include/version b/contrib/llvm-project/libcxx/include/version
index d2286f5e8207..7c16ac85e430 100644
--- a/contrib/llvm-project/libcxx/include/version
+++ b/contrib/llvm-project/libcxx/include/version
@@ -149,7 +149,7 @@ __cpp_lib_syncbuf 201803L <syncstream>
__cpp_lib_three_way_comparison 201907L <compare>
__cpp_lib_to_address 201711L <memory>
__cpp_lib_to_array 201907L <array>
-__cpp_lib_to_chars 201611L <utility>
+__cpp_lib_to_chars 201611L <charconv>
__cpp_lib_to_underlying 202102L <utility>
__cpp_lib_transformation_trait_aliases 201304L <type_traits>
__cpp_lib_transparent_operators 201510L <functional> <memory>
diff --git a/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLinkDylib.h b/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLinkDylib.h
index 2aa88cb50074..6bb1b5a285b1 100644
--- a/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLinkDylib.h
+++ b/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/JITLinkDylib.h
@@ -13,10 +13,21 @@
#ifndef LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H
#define LLVM_EXECUTIONENGINE_JITLINK_JITLINKDYLIB_H
+#include <string>
+
namespace llvm {
namespace jitlink {
-class JITLinkDylib {};
+class JITLinkDylib {
+public:
+ JITLinkDylib(std::string Name) : Name(std::move(Name)) {}
+
+ /// Get the name for this JITLinkDylib.
+ const std::string &getName() const { return Name; }
+
+private:
+ std::string Name;
+};
} // end namespace jitlink
} // end namespace llvm
diff --git a/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h b/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h
index 5cac65b49a05..362e8ab8e296 100644
--- a/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h
+++ b/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Core.h
@@ -927,17 +927,11 @@ class JITDylib : public ThreadSafeRefCountedBase<JITDylib>,
friend class MaterializationResponsibility;
public:
- using AsynchronousSymbolQuerySet =
- std::set<std::shared_ptr<AsynchronousSymbolQuery>>;
-
JITDylib(const JITDylib &) = delete;
JITDylib &operator=(const JITDylib &) = delete;
JITDylib(JITDylib &&) = delete;
JITDylib &operator=(JITDylib &&) = delete;
- /// Get the name for this JITDylib.
- const std::string &getName() const { return JITDylibName; }
-
/// Get a reference to the ExecutionSession for this JITDylib.
ExecutionSession &getExecutionSession() const { return ES; }
@@ -1070,6 +1064,9 @@ public:
std::vector<JITDylibSP> getReverseDFSLinkOrder();
private:
+ using AsynchronousSymbolQuerySet =
+ std::set<std::shared_ptr<AsynchronousSymbolQuery>>;
+
using AsynchronousSymbolQueryList =
std::vector<std::shared_ptr<AsynchronousSymbolQuery>>;
@@ -1200,7 +1197,6 @@ private:
failSymbols(FailedSymbolsWorklist);
ExecutionSession &ES;
- std::string JITDylibName;
std::mutex GeneratorsMutex;
bool Open = true;
SymbolTable Symbols;
diff --git a/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
index dcabefb9896e..fb0798f204e1 100644
--- a/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+++ b/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -1289,16 +1289,14 @@ DWARFVerifier::verifyNameIndexAbbrevs(const DWARFDebugNames::NameIndex &NI) {
static SmallVector<StringRef, 2> getNames(const DWARFDie &DIE,
bool IncludeLinkageName = true) {
SmallVector<StringRef, 2> Result;
- if (const char *Str = DIE.getName(DINameKind::ShortName))
+ if (const char *Str = DIE.getShortName())
Result.emplace_back(Str);
else if (DIE.getTag() == dwarf::DW_TAG_namespace)
Result.emplace_back("(anonymous namespace)");
if (IncludeLinkageName) {
- if (const char *Str = DIE.getName(DINameKind::LinkageName)) {
- if (Result.empty() || Result[0] != Str)
- Result.emplace_back(Str);
- }
+ if (const char *Str = DIE.getLinkageName())
+ Result.emplace_back(Str);
}
return Result;
diff --git a/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp b/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp
index 64e5090e4c53..6b24d6461b63 100644
--- a/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -1364,7 +1364,7 @@ Error JITDylib::remove(const SymbolNameSet &Names) {
void JITDylib::dump(raw_ostream &OS) {
ES.runSessionLocked([&, this]() {
- OS << "JITDylib \"" << JITDylibName << "\" (ES: "
+ OS << "JITDylib \"" << getName() << "\" (ES: "
<< format("0x%016" PRIx64, reinterpret_cast<uintptr_t>(&ES)) << "):\n"
<< "Link order: " << LinkOrder << "\n"
<< "Symbol table:\n";
@@ -1450,7 +1450,7 @@ JITDylib::MaterializingInfo::takeQueriesMeeting(SymbolState RequiredState) {
}
JITDylib::JITDylib(ExecutionSession &ES, std::string Name)
- : ES(ES), JITDylibName(std::move(Name)) {
+ : JITLinkDylib(std::move(Name)), ES(ES) {
LinkOrder.push_back({this, JITDylibLookupFlags::MatchAllSymbols});
}
diff --git a/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp b/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
index 5c728bd86817..7708579a4491 100644
--- a/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
+++ b/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
@@ -28,7 +28,6 @@ AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT,
MaxInstLength = (TT.getArch() == Triple::amdgcn) ? 20 : 16;
SeparatorString = "\n";
CommentString = ";";
- PrivateLabelPrefix = "";
InlineAsmStart = ";#ASMSTART";
InlineAsmEnd = ";#ASMEND";
diff --git a/contrib/llvm-project/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp b/contrib/llvm-project/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
index 0f7e19038673..132516694f4e 100644
--- a/contrib/llvm-project/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
+++ b/contrib/llvm-project/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp
@@ -718,7 +718,7 @@ Thumb2SizeReduce::ReduceSpecial(MachineBasicBlock &MBB, MachineInstr *MI,
case ARM::t2CMPrr: {
// Try to reduce to the lo-reg only version first. Why there are two
// versions of the instruction is a mystery.
- // It would be nice to just have two entries in the master table that
+ // It would be nice to just have two entries in the main table that
// are prioritized, but the table assumes a unique entry for each
// source insn opcode. So for now, we hack a local entry record to use.
static const ReduceEntry NarrowEntry =
diff --git a/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp b/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
index 47bebf77b31b..60d58f421bbb 100644
--- a/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
+++ b/contrib/llvm-project/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
@@ -121,7 +121,7 @@ bool VLIWResourceModel::isResourceAvailable(SUnit *SU, bool IsTop) {
const auto &QII = *QST.getInstrInfo();
// Now see if there are no other dependencies to instructions already
- // in the packet.
+ // in the packet.
if (IsTop) {
for (unsigned i = 0, e = Packet.size(); i != e; ++i)
if (hasDependence(Packet[i], SU, QII))
diff --git a/contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp b/contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp
index dba0321d9431..17d14053d804 100644
--- a/contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/contrib/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -44004,7 +44004,11 @@ static SDValue combineSetCCMOVMSK(SDValue EFLAGS, X86::CondCode &CC,
// signbits extend down to all the sub-elements as well.
// Calling MOVMSK with the wider type, avoiding the bitcast, helps expose
// potential SimplifyDemandedBits/Elts cases.
- if (Vec.getOpcode() == ISD::BITCAST) {
+ // If we looked through a truncate that discard bits, we can't do this
+ // transform.
+ // FIXME: We could do this transform for truncates that discarded bits by
+ // inserting an AND mask between the new MOVMSK and the CMP.
+ if (Vec.getOpcode() == ISD::BITCAST && NumElts <= CmpBits) {
SDValue BC = peekThroughBitcasts(Vec);
MVT BCVT = BC.getSimpleValueType();
unsigned BCNumElts = BCVT.getVectorNumElements();
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index ad21fec269ec..36a66e096382 100644
--- a/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -692,7 +692,7 @@ void InstrProfiling::lowerIncrement(InstrProfIncrementInst *Inc) {
IRBuilder<> Builder(Inc);
uint64_t Index = Inc->getIndex()->getZExtValue();
- Value *Addr = Builder.CreateConstInBoundsGEP2_64(Counters->getValueType(),
+ Value *Addr = Builder.CreateConstInBoundsGEP2_32(Counters->getValueType(),
Counters, 0, Index);
if (isRuntimeCounterRelocationEnabled()) {
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/CloneModule.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/CloneModule.cpp
index eb226b9b246d..200deca4b317 100644
--- a/contrib/llvm-project/llvm/lib/Transforms/Utils/CloneModule.cpp
+++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/CloneModule.cpp
@@ -58,17 +58,13 @@ std::unique_ptr<Module> llvm::CloneModule(
// new module. Here we add them to the VMap and to the new Module. We
// don't worry about attributes or initializers, they will come later.
//
- for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
- I != E; ++I) {
- GlobalVariable *GV = new GlobalVariable(*New,
- I->getValueType(),
- I->isConstant(), I->getLinkage(),
- (Constant*) nullptr, I->getName(),
- (GlobalVariable*) nullptr,
- I->getThreadLocalMode(),
- I->getType()->getAddressSpace());
- GV->copyAttributesFrom(&*I);
- VMap[&*I] = GV;
+ for (const GlobalVariable &I : M.globals()) {
+ GlobalVariable *NewGV = new GlobalVariable(
+ *New, I.getValueType(), I.isConstant(), I.getLinkage(),
+ (Constant *)nullptr, I.getName(), (GlobalVariable *)nullptr,
+ I.getThreadLocalMode(), I.getType()->getAddressSpace());
+ NewGV->copyAttributesFrom(&I);
+ VMap[&I] = NewGV;
}
// Loop over the functions in the module, making external functions as before
@@ -81,34 +77,33 @@ std::unique_ptr<Module> llvm::CloneModule(
}
// Loop over the aliases in the module
- for (Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end();
- I != E; ++I) {
- if (!ShouldCloneDefinition(&*I)) {
+ for (const GlobalAlias &I : M.aliases()) {
+ if (!ShouldCloneDefinition(&I)) {
// An alias cannot act as an external reference, so we need to create
// either a function or a global variable depending on the value type.
// FIXME: Once pointee types are gone we can probably pick one or the
// other.
GlobalValue *GV;
- if (I->getValueType()->isFunctionTy())
- GV = Function::Create(cast<FunctionType>(I->getValueType()),
- GlobalValue::ExternalLinkage,
- I->getAddressSpace(), I->getName(), New.get());
+ if (I.getValueType()->isFunctionTy())
+ GV = Function::Create(cast<FunctionType>(I.getValueType()),
+ GlobalValue::ExternalLinkage, I.getAddressSpace(),
+ I.getName(), New.get());
else
- GV = new GlobalVariable(
- *New, I->getValueType(), false, GlobalValue::ExternalLinkage,
- nullptr, I->getName(), nullptr,
- I->getThreadLocalMode(), I->getType()->getAddressSpace());
- VMap[&*I] = GV;
+ GV = new GlobalVariable(*New, I.getValueType(), false,
+ GlobalValue::ExternalLinkage, nullptr,
+ I.getName(), nullptr, I.getThreadLocalMode(),
+ I.getType()->getAddressSpace());
+ VMap[&I] = GV;
// We do not copy attributes (mainly because copying between different
// kinds of globals is forbidden), but this is generally not required for
// correctness.
continue;
}
- auto *GA = GlobalAlias::create(I->getValueType(),
- I->getType()->getPointerAddressSpace(),
- I->getLinkage(), I->getName(), New.get());
- GA->copyAttributesFrom(&*I);
- VMap[&*I] = GA;
+ auto *GA = GlobalAlias::create(I.getValueType(),
+ I.getType()->getPointerAddressSpace(),
+ I.getLinkage(), I.getName(), New.get());
+ GA->copyAttributesFrom(&I);
+ VMap[&I] = GA;
}
// Now that all of the things that global variable initializer can refer to
@@ -153,10 +148,9 @@ std::unique_ptr<Module> llvm::CloneModule(
}
Function::arg_iterator DestI = F->arg_begin();
- for (Function::const_arg_iterator J = I.arg_begin(); J != I.arg_end();
- ++J) {
- DestI->setName(J->getName());
- VMap[&*J] = &*DestI++;
+ for (const Argument &J : I.args()) {
+ DestI->setName(J.getName());
+ VMap[&J] = &*DestI++;
}
SmallVector<ReturnInst *, 8> Returns; // Ignore returns cloned.
@@ -170,21 +164,17 @@ std::unique_ptr<Module> llvm::CloneModule(
}
// And aliases
- for (Module::const_alias_iterator I = M.alias_begin(), E = M.alias_end();
- I != E; ++I) {
+ for (const GlobalAlias &I : M.aliases()) {
// We already dealt with undefined aliases above.
- if (!ShouldCloneDefinition(&*I))
+ if (!ShouldCloneDefinition(&I))
continue;
- GlobalAlias *GA = cast<GlobalAlias>(VMap[&*I]);
- if (const Constant *C = I->getAliasee())
+ GlobalAlias *GA = cast<GlobalAlias>(VMap[&I]);
+ if (const Constant *C = I.getAliasee())
GA->setAliasee(MapValue(C, VMap));
}
// And named metadata....
- for (Module::const_named_metadata_iterator I = M.named_metadata_begin(),
- E = M.named_metadata_end();
- I != E; ++I) {
- const NamedMDNode &NMD = *I;
+ for (const NamedMDNode &NMD : M.named_metadata()) {
NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName());
for (unsigned i = 0, e = NMD.getNumOperands(); i != e; ++i)
NewNMD->addOperand(MapMetadata(NMD.getOperand(i), VMap));
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/Evaluator.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/Evaluator.cpp
index 9c8aed94708e..91630d876fc8 100644
--- a/contrib/llvm-project/llvm/lib/Transforms/Utils/Evaluator.cpp
+++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/Evaluator.cpp
@@ -285,9 +285,8 @@ bool Evaluator::getFormalParams(CallBase &CB, Function *F,
}
auto ArgI = CB.arg_begin();
- for (auto ParI = FTy->param_begin(), ParE = FTy->param_end(); ParI != ParE;
- ++ParI) {
- auto *ArgC = ConstantFoldLoadThroughBitcast(getVal(*ArgI), *ParI, DL);
+ for (Type *PTy : FTy->params()) {
+ auto *ArgC = ConstantFoldLoadThroughBitcast(getVal(*ArgI), PTy, DL);
if (!ArgC) {
LLVM_DEBUG(dbgs() << "Can not convert function argument.\n");
return false;
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopSimplify.cpp
index d14c006c8032..67311ab4cd02 100644
--- a/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -293,9 +293,8 @@ static Loop *separateNestedLoop(Loop *L, BasicBlock *Preheader,
// L is now a subloop of our outer loop.
NewOuter->addChildLoop(L);
- for (Loop::block_iterator I = L->block_begin(), E = L->block_end();
- I != E; ++I)
- NewOuter->addBlockEntry(*I);
+ for (BasicBlock *BB : L->blocks())
+ NewOuter->addBlockEntry(BB);
// Now reset the header in L, which had been moved by
// SplitBlockPredecessors for the outer loop.
@@ -496,12 +495,12 @@ ReprocessLoop:
// predecessors that are not in the loop. This is not valid for natural
// loops, but can occur if the blocks are unreachable. Since they are
// unreachable we can just shamelessly delete those CFG edges!
- for (Loop::block_iterator BB = L->block_begin(), E = L->block_end();
- BB != E; ++BB) {
- if (*BB == L->getHeader()) continue;
+ for (BasicBlock *BB : L->blocks()) {
+ if (BB == L->getHeader())
+ continue;
SmallPtrSet<BasicBlock*, 4> BadPreds;
- for (BasicBlock *P : predecessors(*BB))
+ for (BasicBlock *P : predecessors(BB))
if (!L->contains(P))
BadPreds.insert(P);
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopUtils.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopUtils.cpp
index f0f079335683..68572d479742 100644
--- a/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -663,9 +663,8 @@ void llvm::deleteDeadLoop(Loop *L, DominatorTree *DT, ScalarEvolution *SE,
// about ordering because we already dropped the references.
// NOTE: This iteration is safe because erasing the block does not remove
// its entry from the loop's block list. We do that in the next section.
- for (Loop::block_iterator LpI = L->block_begin(), LpE = L->block_end();
- LpI != LpE; ++LpI)
- (*LpI)->eraseFromParent();
+ for (BasicBlock *BB : L->blocks())
+ BB->eraseFromParent();
// Finally, the blocks from loopinfo. This has to happen late because
// otherwise our loop iterators won't work.
@@ -1501,10 +1500,9 @@ Loop *llvm::cloneLoop(Loop *L, Loop *PL, ValueToValueMapTy &VM,
LPM->addLoop(New);
// Add all of the blocks in L to the new loop.
- for (Loop::block_iterator I = L->block_begin(), E = L->block_end();
- I != E; ++I)
- if (LI->getLoopFor(*I) == L)
- New.addBasicBlockToLoop(cast<BasicBlock>(VM[*I]), *LI);
+ for (BasicBlock *BB : L->blocks())
+ if (LI->getLoopFor(BB) == L)
+ New.addBasicBlockToLoop(cast<BasicBlock>(VM[BB]), *LI);
// Add all of the subloops to the new loop.
for (Loop *I : *L)
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/MetaRenamer.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/MetaRenamer.cpp
index b1965cf2becb..3ce10535d45f 100644
--- a/contrib/llvm-project/llvm/lib/Transforms/Utils/MetaRenamer.cpp
+++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/MetaRenamer.cpp
@@ -92,12 +92,12 @@ void MetaRename(Module &M,
Renamer renamer(randSeed);
// Rename all aliases
- for (auto AI = M.alias_begin(), AE = M.alias_end(); AI != AE; ++AI) {
- StringRef Name = AI->getName();
+ for (GlobalAlias &GA : M.aliases()) {
+ StringRef Name = GA.getName();
if (Name.startswith("llvm.") || (!Name.empty() && Name[0] == 1))
continue;
- AI->setName("alias");
+ GA.setName("alias");
}
// Rename all global variables
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Utils/VNCoercion.cpp b/contrib/llvm-project/llvm/lib/Transforms/Utils/VNCoercion.cpp
index dbe3cc93e72b..bbe6b3dc23b3 100644
--- a/contrib/llvm-project/llvm/lib/Transforms/Utils/VNCoercion.cpp
+++ b/contrib/llvm-project/llvm/lib/Transforms/Utils/VNCoercion.cpp
@@ -201,19 +201,7 @@ static int analyzeLoadFromClobberingWrite(Type *LoadTy, Value *LoadPtr,
// (issue a smaller load then merge the bits in) but this seems unlikely to be
// valuable.
if (StoreOffset > LoadOffset ||
- StoreOffset + StoreSize < LoadOffset + LoadSize)
- return -1;
-
- // If the load and store are to the exact same address, they should have been
- // a must alias. AA must have gotten confused.
- // FIXME: Study to see if/when this happens. One case is forwarding a memset
- // to a load from the base of the memset.
-
- // If the load and store don't overlap at all, the store doesn't provide
- // anything to the load. In this case, they really don't alias at all, AA
- // must have gotten confused. The if statement above ensure the condition
- // that StoreOffset <= LoadOffset.
- if (StoreOffset + int64_t(StoreSize) <= LoadOffset)
+ StoreOffset + int64_t(StoreSize) < LoadOffset + int64_t(LoadSize))
return -1;
// Okay, we can do this transformation. Return the number of bytes into the
diff --git a/etc/mtree/BSD.debug.dist b/etc/mtree/BSD.debug.dist
index 270d672b336e..061a488a0abd 100644
--- a/etc/mtree/BSD.debug.dist
+++ b/etc/mtree/BSD.debug.dist
@@ -31,7 +31,7 @@
..
lib
clang
- 13.0.0
+ 14.0.0
lib
freebsd
..
diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist
index 3c7c8a407890..daa03c42d65e 100644
--- a/etc/mtree/BSD.include.dist
+++ b/etc/mtree/BSD.include.dist
@@ -19,6 +19,16 @@
v1
__algorithm
..
+ __bit
+ ..
+ __charconv
+ ..
+ __compare
+ ..
+ __concepts
+ ..
+ __coroutine
+ ..
__format
..
__functional
@@ -31,6 +41,8 @@
..
__ranges
..
+ __thread
+ ..
__utility
..
__variant
diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
index 9237620ce420..bb92174197bf 100644
--- a/etc/mtree/BSD.usr.dist
+++ b/etc/mtree/BSD.usr.dist
@@ -37,7 +37,7 @@
..
lib
clang
- 13.0.0
+ 14.0.0
include
cuda_wrappers
..
diff --git a/lib/clang/freebsd_cc_version.h b/lib/clang/freebsd_cc_version.h
index 21c675d28e2c..8b0fa43dece6 100644
--- a/lib/clang/freebsd_cc_version.h
+++ b/lib/clang/freebsd_cc_version.h
@@ -1,3 +1,3 @@
/* $FreeBSD$ */
-#define FREEBSD_CC_VERSION 1400002
+#define FREEBSD_CC_VERSION 1400003
diff --git a/lib/clang/headers/Makefile b/lib/clang/headers/Makefile
index d4a31b767523..013c972190e8 100644
--- a/lib/clang/headers/Makefile
+++ b/lib/clang/headers/Makefile
@@ -5,7 +5,7 @@
.PATH: ${CLANG_SRCS}/lib/Headers
INCSGROUPS= INCS CUDA OMP PPC
-INCSDIR= ${LIBDIR}/clang/13.0.0/include
+INCSDIR= ${LIBDIR}/clang/14.0.0/include
CUDADIR= ${INCSDIR}/cuda_wrappers
OMPDIR= ${INCSDIR}/openmp_wrappers
PPCDIR= ${INCSDIR}/ppc_wrappers
@@ -19,6 +19,7 @@ INCS+= __clang_cuda_libdevice_declares.h
INCS+= __clang_cuda_math.h
INCS+= __clang_cuda_math_forward_declares.h
INCS+= __clang_cuda_runtime_wrapper.h
+INCS+= __clang_cuda_texture_intrinsics.h
INCS+= __clang_hip_cmath.h
INCS+= __clang_hip_libdevice_declares.h
INCS+= __clang_hip_math.h
@@ -42,6 +43,7 @@ INCS+= avx512cdintrin.h
INCS+= avx512dqintrin.h
INCS+= avx512erintrin.h
INCS+= avx512fintrin.h
+INCS+= avx512fp16intrin.h
INCS+= avx512ifmaintrin.h
INCS+= avx512ifmavlintrin.h
INCS+= avx512pfintrin.h
@@ -53,6 +55,7 @@ INCS+= avx512vlbitalgintrin.h
INCS+= avx512vlbwintrin.h
INCS+= avx512vlcdintrin.h
INCS+= avx512vldqintrin.h
+INCS+= avx512vlfp16intrin.h
INCS+= avx512vlintrin.h
INCS+= avx512vlvbmi2intrin.h
INCS+= avx512vlvnniintrin.h
@@ -73,6 +76,7 @@ INCS+= clflushoptintrin.h
INCS+= clwbintrin.h
INCS+= clzerointrin.h
INCS+= cpuid.h
+INCS+= crc32intrin.h
INCS+= emmintrin.h
INCS+= enqcmdintrin.h
INCS+= f16cintrin.h
diff --git a/lib/clang/include/VCSVersion.inc b/lib/clang/include/VCSVersion.inc
index 98c0198a4aaf..e6e1d5eb3af8 100644
--- a/lib/clang/include/VCSVersion.inc
+++ b/lib/clang/include/VCSVersion.inc
@@ -1,14 +1,14 @@
// $FreeBSD$
-#define LLVM_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
-#define LLVM_REPOSITORY "git@github.com:llvm/llvm-project.git"
+#define LLVM_REVISION "llvmorg-14-init-10223-g401b76fdf2b3"
+#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git"
-#define CLANG_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
-#define CLANG_REPOSITORY "git@github.com:llvm/llvm-project.git"
+#define CLANG_REVISION "llvmorg-14-init-10223-g401b76fdf2b3"
+#define CLANG_REPOSITORY "https://github.com/llvm/llvm-project.git"
// <Upstream revision at import>-<Local identifier in __FreeBSD_version style>
-#define LLD_REVISION "llvmorg-13.0.0-0-gd7b669b3a303-1400002"
+#define LLD_REVISION "llvmorg-14-init-10223-g401b76fdf2b3-1400003"
#define LLD_REPOSITORY "FreeBSD"
-#define LLDB_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
-#define LLDB_REPOSITORY "git@github.com:llvm/llvm-project.git"
+#define LLDB_REVISION "llvmorg-14-init-10223-g401b76fdf2b3"
+#define LLDB_REPOSITORY "https://github.com/llvm/llvm-project.git"
diff --git a/lib/clang/include/clang/Basic/Version.inc b/lib/clang/include/clang/Basic/Version.inc
index 74977f61929b..5cfdd07b8386 100644
--- a/lib/clang/include/clang/Basic/Version.inc
+++ b/lib/clang/include/clang/Basic/Version.inc
@@ -1,8 +1,8 @@
/* $FreeBSD$ */
-#define CLANG_VERSION 13.0.0
-#define CLANG_VERSION_STRING "13.0.0"
-#define CLANG_VERSION_MAJOR 13
+#define CLANG_VERSION 14.0.0
+#define CLANG_VERSION_STRING "14.0.0"
+#define CLANG_VERSION_MAJOR 14
#define CLANG_VERSION_MINOR 0
#define CLANG_VERSION_PATCHLEVEL 0
diff --git a/lib/clang/include/clang/Config/config.h b/lib/clang/include/clang/Config/config.h
index 0882737f125b..48f69c957903 100644
--- a/lib/clang/include/clang/Config/config.h
+++ b/lib/clang/include/clang/Config/config.h
@@ -65,7 +65,7 @@
#define CLANG_HAVE_RLIMITS 1
/* The LLVM product name and version */
-#define BACKEND_PACKAGE_STRING "LLVM 13.0.0"
+#define BACKEND_PACKAGE_STRING "LLVM 14.0.0git"
/* Linker version detected at compile time. */
/* #undef HOST_LINK_VERSION */
diff --git a/lib/clang/include/lld/Common/Version.inc b/lib/clang/include/lld/Common/Version.inc
index 3de8405e7c35..4aef2b1a92c3 100644
--- a/lib/clang/include/lld/Common/Version.inc
+++ b/lib/clang/include/lld/Common/Version.inc
@@ -1,3 +1,3 @@
// $FreeBSD$
-#define LLD_VERSION_STRING "13.0.0"
+#define LLD_VERSION_STRING "14.0.0"
diff --git a/lib/clang/include/lldb/Host/Config.h b/lib/clang/include/lldb/Host/Config.h
index a9a33dde6667..3b511be52030 100644
--- a/lib/clang/include/lldb/Host/Config.h
+++ b/lib/clang/include/lldb/Host/Config.h
@@ -14,17 +14,12 @@
#define LLDB_HAVE_EL_RFUNC_T 1
-
-#define HAVE_SYS_TYPES_H 1
-
#define HAVE_SYS_EVENT_H 1
#define HAVE_PPOLL 1
#define HAVE_PTSNAME_R 1
-#define HAVE_SIGACTION 1
-
#define HAVE_PROCESS_VM_READV 0
#define HAVE_NR_PROCESS_VM_READV 0
diff --git a/lib/clang/include/llvm/Config/TargetMCAs.def b/lib/clang/include/llvm/Config/TargetMCAs.def
new file mode 100644
index 000000000000..b67a5ce8bbf7
--- /dev/null
+++ b/lib/clang/include/llvm/Config/TargetMCAs.def
@@ -0,0 +1,7 @@
+/* $FreeBSD$ */
+
+#ifndef LLVM_TARGETMCA
+# error Please define the macro LLVM_TARGETMCA(TargetName)
+#endif
+
+#undef LLVM_TARGETMCA
diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h
index d02d06c088de..9cedda25c7b4 100644
--- a/lib/clang/include/llvm/Config/config.h
+++ b/lib/clang/include/llvm/Config/config.h
@@ -20,6 +20,10 @@
/* Define to 1 to enable crash memory dumps, and to 0 otherwise. */
#define LLVM_ENABLE_CRASH_DUMPS 0
+/* Define to 1 to prefer forward slashes on Windows, and to 0 prefer
+ backslashes. */
+#define LLVM_WINDOWS_PREFER_FORWARD_SLASH 0
+
/* Define to 1 if you have the `backtrace' function. */
#define HAVE_BACKTRACE TRUE
@@ -71,6 +75,9 @@
#define HAVE_DEREGISTER_FRAME 1
#endif // !arm || USING_SJLJ_EXCEPTIONS || ARM_DWARF_EH_
+/* Define if __unw_add_dynamic_fde() is available on this platform. */
+/* #undef HAVE_UNW_ADD_DYNAMIC_FDE */
+
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
@@ -369,10 +376,10 @@
#define PACKAGE_NAME "LLVM"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "LLVM 13.0.0"
+#define PACKAGE_STRING "LLVM 14.0.0git"
/* Define to the version of this package. */
-#define PACKAGE_VERSION "13.0.0"
+#define PACKAGE_VERSION "14.0.0git"
/* Define to the vendor of this package. */
/* #undef PACKAGE_VENDOR */
@@ -395,6 +402,13 @@
/* Define to the default GlobalISel coverage file prefix */
/* #undef LLVM_GISEL_COV_PREFIX */
+/* Whether Timers signpost passes in Xcode Instruments */
+#if defined(__APPLE__)
+#define LLVM_SUPPORT_XCODE_SIGNPOSTS 1
+#else
+#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0
+#endif
+
/* #undef HAVE_PROC_PID_RUSAGE */
#endif
diff --git a/lib/clang/include/llvm/Config/llvm-config.h b/lib/clang/include/llvm/Config/llvm-config.h
index 7932c7d9435a..ddab70599579 100644
--- a/lib/clang/include/llvm/Config/llvm-config.h
+++ b/lib/clang/include/llvm/Config/llvm-config.h
@@ -51,6 +51,9 @@
/* LLVM name for the native target MC init function, if available */
/* #undef LLVM_NATIVE_TARGETMC */
+/* LLVM name for the native target MCA init function, if available */
+/* #undef LLVM_NATIVE_TARGETMCA */
+
/* Define if this is Unixish platform */
#define LLVM_ON_UNIX 1
@@ -64,7 +67,7 @@
#define LLVM_USE_PERF 0
/* Major version of the LLVM API */
-#define LLVM_VERSION_MAJOR 13
+#define LLVM_VERSION_MAJOR 14
/* Minor version of the LLVM API */
#define LLVM_VERSION_MINOR 0
@@ -73,7 +76,7 @@
#define LLVM_VERSION_PATCH 0
/* LLVM version string */
-#define LLVM_VERSION_STRING "13.0.0"
+#define LLVM_VERSION_STRING "14.0.0git"
/* Whether LLVM records statistics for use with GetStatistics(),
* PrintStatistics() or PrintStatisticsJSON()
@@ -100,12 +103,4 @@
#define LLVM_HAVE_LIBXAR 1
#endif
-/* Whether Timers signpost passes in Xcode Instruments */
-#if defined(__APPLE__)
-#define LLVM_SUPPORT_XCODE_SIGNPOSTS 1
-#else
-#define LLVM_SUPPORT_XCODE_SIGNPOSTS 0
-#endif
-
-
#endif
diff --git a/lib/clang/include/llvm/Support/VCSRevision.h b/lib/clang/include/llvm/Support/VCSRevision.h
index 76c4f00a938c..bd8610a53e54 100644
--- a/lib/clang/include/llvm/Support/VCSRevision.h
+++ b/lib/clang/include/llvm/Support/VCSRevision.h
@@ -1,3 +1,3 @@
/* $FreeBSD$ */
-#define LLVM_REVISION "llvmorg-13.0.0-0-gd7b669b3a303"
-#define LLVM_REPOSITORY "git@github.com:llvm/llvm-project.git"
+#define LLVM_REVISION "llvmorg-14-init-10223-g401b76fdf2b3"
+#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git"
diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile
index 217417811846..f903328045e0 100644
--- a/lib/clang/libclang/Makefile
+++ b/lib/clang/libclang/Makefile
@@ -176,6 +176,7 @@ SRCS_MIN+= Analysis/ThreadSafetyTIL.cpp
SRCS_MIN+= Analysis/UninitializedValues.cpp
SRCS_MIN+= Basic/Attributes.cpp
SRCS_MIN+= Basic/Builtins.cpp
+SRCS_MIN+= Basic/CLWarnings.cpp
SRCS_MIN+= Basic/CharInfo.cpp
SRCS_MIN+= Basic/CodeGenOptions.cpp
SRCS_MIN+= Basic/Cuda.cpp
@@ -267,9 +268,7 @@ SRCS_MIN+= CodeGen/CGObjCMac.cpp
SRCS_MIN+= CodeGen/CGObjCRuntime.cpp
SRCS_MIN+= CodeGen/CGOpenCLRuntime.cpp
SRCS_MIN+= CodeGen/CGOpenMPRuntime.cpp
-SRCS_MIN+= CodeGen/CGOpenMPRuntimeAMDGCN.cpp
SRCS_MIN+= CodeGen/CGOpenMPRuntimeGPU.cpp
-SRCS_MIN+= CodeGen/CGOpenMPRuntimeNVPTX.cpp
SRCS_MIN+= CodeGen/CGRecordLayoutBuilder.cpp
SRCS_MIN+= CodeGen/CGStmt.cpp
SRCS_MIN+= CodeGen/CGStmtOpenMP.cpp
@@ -370,6 +369,7 @@ SRCS_EXT+= Format/Format.cpp
SRCS_EXT+= Format/FormatToken.cpp
SRCS_EXT+= Format/FormatTokenLexer.cpp
SRCS_EXT+= Format/NamespaceEndCommentsFixer.cpp
+SRCS_EXT+= Format/QualifierAlignmentFixer.cpp
SRCS_EXT+= Format/SortJavaScriptImports.cpp
SRCS_EXT+= Format/TokenAnalyzer.cpp
SRCS_EXT+= Format/TokenAnnotator.cpp
diff --git a/lib/clang/liblldb/LLDBWrapLua.cpp b/lib/clang/liblldb/LLDBWrapLua.cpp
index 2db9ba035173..6784163a41d4 100644
--- a/lib/clang/liblldb/LLDBWrapLua.cpp
+++ b/lib/clang/liblldb/LLDBWrapLua.cpp
@@ -2695,6 +2695,18 @@ SWIG_Lua_dostring(lua_State *L, const char *str) {
/* ------------------------------ end luarun.swg ------------------------------ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void LLDBSwigLuaCallLuaLogOutputCallback(const char *str, void *baton);
+int LLDBSwigLuaCloseFileHandle(lua_State *L);
+
+#ifdef __cplusplus
+}
+#endif
+
+
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_bool swig_types[0]
@@ -2783,183 +2795,151 @@ SWIG_Lua_dostring(lua_State *L, const char *str) {
#define SWIGTYPE_p_lldb__SBWatchpoint swig_types[83]
#define SWIGTYPE_p_long_double swig_types[84]
#define SWIGTYPE_p_long_long swig_types[85]
-#define SWIGTYPE_p_p_char swig_types[86]
-#define SWIGTYPE_p_p_void swig_types[87]
-#define SWIGTYPE_p_pthread_rwlock_t swig_types[88]
-#define SWIGTYPE_p_pthread_t swig_types[89]
-#define SWIGTYPE_p_short swig_types[90]
-#define SWIGTYPE_p_signed_char swig_types[91]
-#define SWIGTYPE_p_size_t swig_types[92]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ABI_t swig_types[93]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Baton_t swig_types[94]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Block_t swig_types[95]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointLocation_t swig_types[96]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointPrecondition_t swig_types[97]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointResolver_t swig_types[98]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointSite_t swig_types[99]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Breakpoint_t swig_types[100]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BroadcasterManager_t swig_types[101]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Broadcaster_t swig_types[102]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CommandObject_t swig_types[103]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Communication_t swig_types[104]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CompileUnit_t swig_types[105]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Connection_t swig_types[106]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataBuffer_t swig_types[107]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataExtractor_t swig_types[108]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Debugger_t swig_types[109]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Disassembler_t swig_types[110]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DynamicLoader_t swig_types[111]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventDataStructuredData_t swig_types[112]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventData_t swig_types[113]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Event_t swig_types[114]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExecutionContextRef_t swig_types[115]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExpressionVariable_t swig_types[116]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t swig_types[117]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FuncUnwinders_t swig_types[118]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FunctionCaller_t swig_types[119]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Function_t swig_types[120]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOHandler_t swig_types[121]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOObject_t swig_types[122]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IRExecutionUnit_t swig_types[123]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InlineFunctionInfo_t swig_types[124]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Instruction_t swig_types[125]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t swig_types[126]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__JITLoader_t swig_types[127]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LanguageRuntime_t swig_types[128]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LineTable_t swig_types[129]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Listener_t swig_types[130]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryHistory_t swig_types[131]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t swig_types[132]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Module_t swig_types[133]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t swig_types[134]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFile_t swig_types[135]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArch_t swig_types[136]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArgs_t swig_types[137]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArray_t swig_types[138]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueBoolean_t swig_types[139]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueDictionary_t swig_types[140]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_t swig_types[141]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpec_t swig_types[142]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFormat_t swig_types[143]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValuePathMappings_t swig_types[144]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueProperties_t swig_types[145]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueRegex_t swig_types[146]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueSInt64_t swig_types[147]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueString_t swig_types[148]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUInt64_t swig_types[149]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUUID_t swig_types[150]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValue_t swig_types[151]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Platform_t swig_types[152]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t swig_types[153]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_t swig_types[154]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Process_t swig_types[155]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Property_t swig_types[156]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__QueueItem_t swig_types[157]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_t swig_types[158]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__REPL_t swig_types[159]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RecognizedStackFrame_t swig_types[160]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterCheckpoint_t swig_types[161]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterContext_t swig_types[162]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegularExpression_t swig_types[163]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptInterpreter_t swig_types[164]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t swig_types[165]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t swig_types[166]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SearchFilter_t swig_types[167]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SectionLoadList_t swig_types[168]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Section_t swig_types[169]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Settings_t swig_types[170]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameList_t swig_types[171]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t swig_types[172]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrame_t swig_types[173]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StopInfo_t swig_types[174]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StreamFile_t swig_types[175]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Stream_t swig_types[176]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StringSummaryFormat_t swig_types[177]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t swig_types[178]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t swig_types[179]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFileType_t swig_types[180]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFile_t swig_types[181]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t swig_types[182]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildren_t swig_types[183]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SystemRuntime_t swig_types[184]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TargetProperties_t swig_types[185]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Target_t swig_types[186]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadCollection_t swig_types[187]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t swig_types[188]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlan_t swig_types[189]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPostMortemTrace_t swig_types[190]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Thread_t swig_types[191]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Trace_t swig_types[192]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeCategoryImpl_t swig_types[193]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeEnumMemberImpl_t swig_types[194]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFilterImpl_t swig_types[195]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFormatImpl_t swig_types[196]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeImpl_t swig_types[197]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeMemberFunctionImpl_t swig_types[198]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeNameSpecifierImpl_t swig_types[199]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryImpl_t swig_types[200]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryOptions_t swig_types[201]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSystem_t swig_types[202]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Type_t swig_types[203]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnixSignals_t swig_types[204]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindAssembly_t swig_types[205]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindPlan_t swig_types[206]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UserExpression_t swig_types[207]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UtilityFunction_t swig_types[208]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueList_t swig_types[209]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObjectList_t swig_types[210]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObject_t swig_types[211]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Value_t swig_types[212]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__VariableList_t swig_types[213]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Variable_t swig_types[214]
-#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Watchpoint_t swig_types[215]
-#define SWIGTYPE_p_std__string swig_types[216]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicCheckerFunctions_t swig_types[217]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicLoader_t swig_types[218]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__File_t swig_types[219]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__JITLoaderList_t swig_types[220]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t swig_types[221]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__OperatingSystem_t swig_types[222]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ScriptInterpreter_t swig_types[223]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t swig_types[224]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SectionList_t swig_types[225]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SourceManager_t swig_types[226]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t swig_types[227]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StackFrame_t swig_types[228]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StructuredDataImpl_t swig_types[229]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SymbolVendor_t swig_types[230]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SystemRuntime_t swig_types[231]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__TraceCursor_t swig_types[232]
-#define SWIGTYPE_p_std__unique_ptrT_lldb_private__TraceExporter_t swig_types[233]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointLocation_t swig_types[234]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointSite_t swig_types[235]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Breakpoint_t swig_types[236]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BroadcasterManager_t swig_types[237]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Debugger_t swig_types[238]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Listener_t swig_types[239]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Module_t swig_types[240]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t swig_types[241]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFile_t swig_types[242]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__OptionValue_t swig_types[243]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Process_t swig_types[244]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Queue_t swig_types[245]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Section_t swig_types[246]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StackFrame_t swig_types[247]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Stream_t swig_types[248]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t swig_types[249]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__SymbolFileType_t swig_types[250]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Target_t swig_types[251]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ThreadPlan_t swig_types[252]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Thread_t swig_types[253]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Type_t swig_types[254]
-#define SWIGTYPE_p_std__weak_ptrT_lldb_private__UnixSignals_t swig_types[255]
-#define SWIGTYPE_p_unsigned_char swig_types[256]
-#define SWIGTYPE_p_unsigned_int swig_types[257]
-#define SWIGTYPE_p_unsigned_long_long swig_types[258]
-#define SWIGTYPE_p_unsigned_short swig_types[259]
-#define SWIGTYPE_p_void swig_types[260]
-static swig_type_info *swig_types[262];
-static swig_module_info swig_module = {swig_types, 261, 0, 0, 0, 0};
+#define SWIGTYPE_p_p_void swig_types[86]
+#define SWIGTYPE_p_pthread_rwlock_t swig_types[87]
+#define SWIGTYPE_p_pthread_t swig_types[88]
+#define SWIGTYPE_p_short swig_types[89]
+#define SWIGTYPE_p_signed_char swig_types[90]
+#define SWIGTYPE_p_size_t swig_types[91]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ABI_t swig_types[92]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Baton_t swig_types[93]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Block_t swig_types[94]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointLocation_t swig_types[95]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointPrecondition_t swig_types[96]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointResolver_t swig_types[97]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointSite_t swig_types[98]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Breakpoint_t swig_types[99]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BroadcasterManager_t swig_types[100]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Broadcaster_t swig_types[101]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CommandObject_t swig_types[102]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CompileUnit_t swig_types[103]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Connection_t swig_types[104]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataBuffer_t swig_types[105]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataExtractor_t swig_types[106]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Debugger_t swig_types[107]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Disassembler_t swig_types[108]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventDataStructuredData_t swig_types[109]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventData_t swig_types[110]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Event_t swig_types[111]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExecutionContextRef_t swig_types[112]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExpressionVariable_t swig_types[113]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t swig_types[114]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FuncUnwinders_t swig_types[115]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Function_t swig_types[116]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOHandler_t swig_types[117]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOObject_t swig_types[118]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IRExecutionUnit_t swig_types[119]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InlineFunctionInfo_t swig_types[120]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Instruction_t swig_types[121]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t swig_types[122]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__JITLoader_t swig_types[123]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LanguageRuntime_t swig_types[124]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Listener_t swig_types[125]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryHistory_t swig_types[126]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t swig_types[127]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Module_t swig_types[128]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t swig_types[129]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFile_t swig_types[130]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueProperties_t swig_types[131]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValue_t swig_types[132]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Platform_t swig_types[133]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t swig_types[134]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Process_t swig_types[135]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__QueueItem_t swig_types[136]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_t swig_types[137]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__REPL_t swig_types[138]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RecognizedStackFrame_t swig_types[139]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterCheckpoint_t swig_types[140]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterContext_t swig_types[141]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegularExpression_t swig_types[142]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptInterpreter_t swig_types[143]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t swig_types[144]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t swig_types[145]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptedThreadInterface_t swig_types[146]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SearchFilter_t swig_types[147]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SectionLoadList_t swig_types[148]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Section_t swig_types[149]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameList_t swig_types[150]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t swig_types[151]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrame_t swig_types[152]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StopInfo_t swig_types[153]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StreamFile_t swig_types[154]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Stream_t swig_types[155]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StringSummaryFormat_t swig_types[156]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t swig_types[157]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t swig_types[158]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFileType_t swig_types[159]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t swig_types[160]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildren_t swig_types[161]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Target_t swig_types[162]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadCollection_t swig_types[163]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t swig_types[164]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlan_t swig_types[165]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPostMortemTrace_t swig_types[166]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Thread_t swig_types[167]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Trace_t swig_types[168]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeCategoryImpl_t swig_types[169]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeEnumMemberImpl_t swig_types[170]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFilterImpl_t swig_types[171]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFormatImpl_t swig_types[172]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeImpl_t swig_types[173]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeMemberFunctionImpl_t swig_types[174]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeNameSpecifierImpl_t swig_types[175]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryImpl_t swig_types[176]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryOptions_t swig_types[177]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSystem_t swig_types[178]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Type_t swig_types[179]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnixSignals_t swig_types[180]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindAssembly_t swig_types[181]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindPlan_t swig_types[182]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UserExpression_t swig_types[183]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObjectList_t swig_types[184]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObject_t swig_types[185]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Value_t swig_types[186]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__VariableList_t swig_types[187]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Variable_t swig_types[188]
+#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Watchpoint_t swig_types[189]
+#define SWIGTYPE_p_std__string swig_types[190]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicCheckerFunctions_t swig_types[191]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicLoader_t swig_types[192]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__File_t swig_types[193]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__JITLoaderList_t swig_types[194]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t swig_types[195]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__OperatingSystem_t swig_types[196]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t swig_types[197]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SectionList_t swig_types[198]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SourceManager_t swig_types[199]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t swig_types[200]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StructuredDataImpl_t swig_types[201]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SymbolVendor_t swig_types[202]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SystemRuntime_t swig_types[203]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__TraceCursor_t swig_types[204]
+#define SWIGTYPE_p_std__unique_ptrT_lldb_private__TraceExporter_t swig_types[205]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointLocation_t swig_types[206]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Breakpoint_t swig_types[207]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BroadcasterManager_t swig_types[208]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Debugger_t swig_types[209]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Listener_t swig_types[210]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Module_t swig_types[211]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t swig_types[212]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__OptionValue_t swig_types[213]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Process_t swig_types[214]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Queue_t swig_types[215]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Section_t swig_types[216]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StackFrame_t swig_types[217]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t swig_types[218]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Target_t swig_types[219]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ThreadPlan_t swig_types[220]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Thread_t swig_types[221]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Type_t swig_types[222]
+#define SWIGTYPE_p_std__weak_ptrT_lldb_private__UnixSignals_t swig_types[223]
+#define SWIGTYPE_p_unsigned_char swig_types[224]
+#define SWIGTYPE_p_unsigned_int swig_types[225]
+#define SWIGTYPE_p_unsigned_long_long swig_types[226]
+#define SWIGTYPE_p_unsigned_short swig_types[227]
+#define SWIGTYPE_p_void swig_types[228]
+static swig_type_info *swig_types[230];
+static swig_module_info swig_module = {swig_types, 229, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@@ -3222,6 +3202,10 @@ SWIGINTERN void SWIG_write_ptr_array(lua_State* L,void **array,int size,swig_typ
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "../bindings/lua/lua-swigsafecast.swig"
+
+// required headers for typemaps
+#include "lldb/Host/File.h"
+
using namespace lldb_private;
using namespace lldb;
@@ -4007,7 +3991,7 @@ static int _wrap_new_SBAddress__SWIG_2(lua_State* L) {
}
arg1 = *argp1;
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (lldb::SBAddress *)new lldb::SBAddress(arg1,arg2);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBAddress,1); SWIG_arg++;
return SWIG_arg;
@@ -4029,7 +4013,7 @@ static int _wrap_new_SBAddress__SWIG_3(lua_State* L) {
SWIG_check_num_args("lldb::SBAddress::SBAddress",2,2)
if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBAddress::SBAddress",1,"lldb::addr_t");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBAddress::SBAddress",2,"lldb::SBTarget &");
- arg1 = (unsigned long long)lua_tointeger(L, 1);
+ arg1 = (lldb::addr_t)lua_tointeger(L, 1);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("new_SBAddress",2,SWIGTYPE_p_lldb__SBTarget);
@@ -4237,7 +4221,7 @@ static int _wrap_SBAddress_SetLoadAddress(lua_State* L) {
SWIG_fail_ptr("SBAddress_SetLoadAddress",1,SWIGTYPE_p_lldb__SBAddress);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBAddress_SetLoadAddress",3,SWIGTYPE_p_lldb__SBTarget);
@@ -4269,7 +4253,7 @@ static int _wrap_SBAddress_OffsetAddress(lua_State* L) {
SWIG_fail_ptr("SBAddress_OffsetAddress",1,SWIGTYPE_p_lldb__SBAddress);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (bool)(arg1)->OffsetAddress(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -4386,7 +4370,7 @@ static int _wrap_SBAddress_SetAddress(lua_State* L) {
}
arg2 = *argp2;
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
(arg1)->SetAddress(arg2,arg3);
return SWIG_arg;
@@ -4413,7 +4397,7 @@ static int _wrap_SBAddress_GetSymbolContext(lua_State* L) {
SWIG_fail_ptr("SBAddress_GetSymbolContext",1,SWIGTYPE_p_lldb__SBAddress);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetSymbolContext(arg2);
{
lldb::SBSymbolContext * resultptr = new lldb::SBSymbolContext((const lldb::SBSymbolContext &) result);
@@ -4705,7 +4689,7 @@ static int _wrap_new_SBAttachInfo__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBAttachInfo::SBAttachInfo",1,1)
if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBAttachInfo::SBAttachInfo",1,"lldb::pid_t");
- arg1 = (unsigned long long)lua_tointeger(L, 1);
+ arg1 = (lldb::pid_t)lua_tointeger(L, 1);
result = (lldb::SBAttachInfo *)new lldb::SBAttachInfo(arg1);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBAttachInfo,1); SWIG_arg++;
return SWIG_arg;
@@ -4906,7 +4890,7 @@ static int _wrap_SBAttachInfo_SetProcessID(lua_State* L) {
SWIG_fail_ptr("SBAttachInfo_SetProcessID",1,SWIGTYPE_p_lldb__SBAttachInfo);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::pid_t)lua_tointeger(L, 2);
(arg1)->SetProcessID(arg2);
return SWIG_arg;
@@ -5261,7 +5245,7 @@ static int _wrap_SBAttachInfo_SetResumeCount(lua_State* L) {
SWIG_fail_ptr("SBAttachInfo_SetResumeCount",1,SWIGTYPE_p_lldb__SBAttachInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetResumeCount(arg2);
return SWIG_arg;
@@ -5433,7 +5417,7 @@ static int _wrap_SBAttachInfo_SetUserID(lua_State* L) {
SWIG_fail_ptr("SBAttachInfo_SetUserID",1,SWIGTYPE_p_lldb__SBAttachInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetUserID(arg2);
return SWIG_arg;
@@ -5459,7 +5443,7 @@ static int _wrap_SBAttachInfo_SetGroupID(lua_State* L) {
SWIG_fail_ptr("SBAttachInfo_SetGroupID",1,SWIGTYPE_p_lldb__SBAttachInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetGroupID(arg2);
return SWIG_arg;
@@ -5581,7 +5565,7 @@ static int _wrap_SBAttachInfo_SetEffectiveUserID(lua_State* L) {
SWIG_fail_ptr("SBAttachInfo_SetEffectiveUserID",1,SWIGTYPE_p_lldb__SBAttachInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetEffectiveUserID(arg2);
return SWIG_arg;
@@ -5607,7 +5591,7 @@ static int _wrap_SBAttachInfo_SetEffectiveGroupID(lua_State* L) {
SWIG_fail_ptr("SBAttachInfo_SetEffectiveGroupID",1,SWIGTYPE_p_lldb__SBAttachInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetEffectiveGroupID(arg2);
return SWIG_arg;
@@ -5657,7 +5641,7 @@ static int _wrap_SBAttachInfo_SetParentProcessID(lua_State* L) {
SWIG_fail_ptr("SBAttachInfo_SetParentProcessID",1,SWIGTYPE_p_lldb__SBAttachInfo);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::pid_t)lua_tointeger(L, 2);
(arg1)->SetParentProcessID(arg2);
return SWIG_arg;
@@ -6193,7 +6177,7 @@ static int _wrap_SBBlock_GetRangeStartAddress(lua_State* L) {
SWIG_fail_ptr("SBBlock_GetRangeStartAddress",1,SWIGTYPE_p_lldb__SBBlock);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetRangeStartAddress(arg2);
{
lldb::SBAddress * resultptr = new lldb::SBAddress((const lldb::SBAddress &) result);
@@ -6223,7 +6207,7 @@ static int _wrap_SBBlock_GetRangeEndAddress(lua_State* L) {
SWIG_fail_ptr("SBBlock_GetRangeEndAddress",1,SWIGTYPE_p_lldb__SBBlock);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetRangeEndAddress(arg2);
{
lldb::SBAddress * resultptr = new lldb::SBAddress((const lldb::SBAddress &) result);
@@ -6319,7 +6303,7 @@ static int _wrap_SBBlock_GetVariables__SWIG_0(lua_State* L) {
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBBlock::GetVariables",3,"bool");
if(!lua_isboolean(L,4)) SWIG_fail_arg("lldb::SBBlock::GetVariables",4,"bool");
if(!lua_isboolean(L,5)) SWIG_fail_arg("lldb::SBBlock::GetVariables",5,"bool");
- if(!lua_isnumber(L,6)) SWIG_fail_arg("lldb::SBBlock::GetVariables",6,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,6)) SWIG_fail_arg("lldb::SBBlock::GetVariables",6,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBBlock,0))){
SWIG_fail_ptr("SBBlock_GetVariables",1,SWIGTYPE_p_lldb__SBBlock);
@@ -6333,7 +6317,7 @@ static int _wrap_SBBlock_GetVariables__SWIG_0(lua_State* L) {
arg3 = (lua_toboolean(L, 3)!=0);
arg4 = (lua_toboolean(L, 4)!=0);
arg5 = (lua_toboolean(L, 5)!=0);
- arg6 = (lldb::DynamicValueType)(int)lua_tonumber(L, 6);
+ arg6 = (lldb::DynamicValueType)lua_tointeger(L, 6);
result = (arg1)->GetVariables(*arg2,arg3,arg4,arg5,arg6);
{
lldb::SBValueList * resultptr = new lldb::SBValueList((const lldb::SBValueList &) result);
@@ -6797,7 +6781,7 @@ static int _wrap_SBBreakpoint_FindLocationByAddress(lua_State* L) {
SWIG_fail_ptr("SBBreakpoint_FindLocationByAddress",1,SWIGTYPE_p_lldb__SBBreakpoint);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (arg1)->FindLocationByAddress(arg2);
{
lldb::SBBreakpointLocation * resultptr = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &) result);
@@ -6827,7 +6811,7 @@ static int _wrap_SBBreakpoint_FindLocationIDByAddress(lua_State* L) {
SWIG_fail_ptr("SBBreakpoint_FindLocationIDByAddress",1,SWIGTYPE_p_lldb__SBBreakpoint);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (lldb::break_id_t)(arg1)->FindLocationIDByAddress(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -6854,7 +6838,7 @@ static int _wrap_SBBreakpoint_FindLocationByID(lua_State* L) {
SWIG_fail_ptr("SBBreakpoint_FindLocationByID",1,SWIGTYPE_p_lldb__SBBreakpoint);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (lldb::break_id_t)lua_tointeger(L, 2);
result = (arg1)->FindLocationByID(arg2);
{
lldb::SBBreakpointLocation * resultptr = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &) result);
@@ -6884,7 +6868,7 @@ static int _wrap_SBBreakpoint_GetLocationAtIndex(lua_State* L) {
SWIG_fail_ptr("SBBreakpoint_GetLocationAtIndex",1,SWIGTYPE_p_lldb__SBBreakpoint);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetLocationAtIndex(arg2);
{
lldb::SBBreakpointLocation * resultptr = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &) result);
@@ -7061,7 +7045,7 @@ static int _wrap_SBBreakpoint_SetIgnoreCount(lua_State* L) {
SWIG_fail_ptr("SBBreakpoint_SetIgnoreCount",1,SWIGTYPE_p_lldb__SBBreakpoint);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetIgnoreCount(arg2);
return SWIG_arg;
@@ -7211,7 +7195,7 @@ static int _wrap_SBBreakpoint_SetThreadID(lua_State* L) {
SWIG_fail_ptr("SBBreakpoint_SetThreadID",1,SWIGTYPE_p_lldb__SBBreakpoint);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::tid_t)lua_tointeger(L, 2);
(arg1)->SetThreadID(arg2);
return SWIG_arg;
@@ -7261,7 +7245,7 @@ static int _wrap_SBBreakpoint_SetThreadIndex(lua_State* L) {
SWIG_fail_ptr("SBBreakpoint_SetThreadIndex",1,SWIGTYPE_p_lldb__SBBreakpoint);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetThreadIndex(arg2);
return SWIG_arg;
@@ -8036,7 +8020,7 @@ static int _wrap_SBBreakpoint_GetBreakpointEventTypeFromEvent(lua_State* L) {
}
result = (lldb::BreakpointEventType)lldb::SBBreakpoint::GetBreakpointEventTypeFromEvent((lldb::SBEvent const &)*arg1);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -8088,7 +8072,7 @@ static int _wrap_SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(lua_State* L
SWIG_fail_ptr("SBBreakpoint_GetBreakpointLocationAtIndexFromEvent",1,SWIGTYPE_p_lldb__SBEvent);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = lldb::SBBreakpoint::GetBreakpointLocationAtIndexFromEvent((lldb::SBEvent const &)*arg1,arg2);
{
lldb::SBBreakpointLocation * resultptr = new lldb::SBBreakpointLocation((const lldb::SBBreakpointLocation &) result);
@@ -8337,7 +8321,7 @@ static int _wrap_SBBreakpointList_GetBreakpointAtIndex(lua_State* L) {
SWIG_fail_ptr("SBBreakpointList_GetBreakpointAtIndex",1,SWIGTYPE_p_lldb__SBBreakpointList);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (arg1)->GetBreakpointAtIndex(arg2);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -8367,7 +8351,7 @@ static int _wrap_SBBreakpointList_FindBreakpointByID(lua_State* L) {
SWIG_fail_ptr("SBBreakpointList_FindBreakpointByID",1,SWIGTYPE_p_lldb__SBBreakpointList);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (lldb::break_id_t)lua_tointeger(L, 2);
result = (arg1)->FindBreakpointByID(arg2);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -8457,7 +8441,7 @@ static int _wrap_SBBreakpointList_AppendByID(lua_State* L) {
SWIG_fail_ptr("SBBreakpointList_AppendByID",1,SWIGTYPE_p_lldb__SBBreakpointList);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (lldb::break_id_t)lua_tointeger(L, 2);
(arg1)->AppendByID(arg2);
return SWIG_arg;
@@ -8831,7 +8815,7 @@ static int _wrap_SBBreakpointLocation_SetIgnoreCount(lua_State* L) {
SWIG_fail_ptr("SBBreakpointLocation_SetIgnoreCount",1,SWIGTYPE_p_lldb__SBBreakpointLocation);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetIgnoreCount(arg2);
return SWIG_arg;
@@ -9175,7 +9159,7 @@ static int _wrap_SBBreakpointLocation_SetThreadID(lua_State* L) {
SWIG_fail_ptr("SBBreakpointLocation_SetThreadID",1,SWIGTYPE_p_lldb__SBBreakpointLocation);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::tid_t)lua_tointeger(L, 2);
(arg1)->SetThreadID(arg2);
return SWIG_arg;
@@ -9225,7 +9209,7 @@ static int _wrap_SBBreakpointLocation_SetThreadIndex(lua_State* L) {
SWIG_fail_ptr("SBBreakpointLocation_SetThreadIndex",1,SWIGTYPE_p_lldb__SBBreakpointLocation);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetThreadIndex(arg2);
return SWIG_arg;
@@ -9396,7 +9380,7 @@ static int _wrap_SBBreakpointLocation_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBBreakpointLocation::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBBreakpointLocation::GetDescription",1,"lldb::SBBreakpointLocation *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBBreakpointLocation::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBBreakpointLocation::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBBreakpointLocation::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBBreakpointLocation,0))){
SWIG_fail_ptr("SBBreakpointLocation_GetDescription",1,SWIGTYPE_p_lldb__SBBreakpointLocation);
@@ -9407,7 +9391,7 @@ static int _wrap_SBBreakpointLocation_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBBreakpointLocation_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -9908,7 +9892,7 @@ static int _wrap_SBBreakpointName_SetIgnoreCount(lua_State* L) {
SWIG_fail_ptr("SBBreakpointName_SetIgnoreCount",1,SWIGTYPE_p_lldb__SBBreakpointName);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetIgnoreCount(arg2);
return SWIG_arg;
@@ -10058,7 +10042,7 @@ static int _wrap_SBBreakpointName_SetThreadID(lua_State* L) {
SWIG_fail_ptr("SBBreakpointName_SetThreadID",1,SWIGTYPE_p_lldb__SBBreakpointName);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::tid_t)lua_tointeger(L, 2);
(arg1)->SetThreadID(arg2);
return SWIG_arg;
@@ -10108,7 +10092,7 @@ static int _wrap_SBBreakpointName_SetThreadIndex(lua_State* L) {
SWIG_fail_ptr("SBBreakpointName_SetThreadIndex",1,SWIGTYPE_p_lldb__SBBreakpointName);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetThreadIndex(arg2);
return SWIG_arg;
@@ -10968,7 +10952,7 @@ static int _wrap_SBBroadcaster_BroadcastEventByType__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBBroadcaster_BroadcastEventByType",1,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
(arg1)->BroadcastEventByType(arg2,arg3);
@@ -10995,7 +10979,7 @@ static int _wrap_SBBroadcaster_BroadcastEventByType__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBBroadcaster_BroadcastEventByType",1,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->BroadcastEventByType(arg2);
return SWIG_arg;
@@ -11219,7 +11203,7 @@ static int _wrap_SBBroadcaster_AddInitialEventsToListener(lua_State* L) {
SWIG_fail_ptr("SBBroadcaster_AddInitialEventsToListener",2,SWIGTYPE_p_lldb__SBListener);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
(arg1)->AddInitialEventsToListener((lldb::SBListener const &)*arg2,arg3);
return SWIG_arg;
@@ -11253,7 +11237,7 @@ static int _wrap_SBBroadcaster_AddListener(lua_State* L) {
SWIG_fail_ptr("SBBroadcaster_AddListener",2,SWIGTYPE_p_lldb__SBListener);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (uint32_t)(arg1)->AddListener((lldb::SBListener const &)*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -11304,7 +11288,7 @@ static int _wrap_SBBroadcaster_EventTypeHasListeners(lua_State* L) {
SWIG_fail_ptr("SBBroadcaster_EventTypeHasListeners",1,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (bool)(arg1)->EventTypeHasListeners(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -11338,7 +11322,7 @@ static int _wrap_SBBroadcaster_RemoveListener__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBBroadcaster_RemoveListener",2,SWIGTYPE_p_lldb__SBListener);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (bool)(arg1)->RemoveListener((lldb::SBListener const &)*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -11570,8 +11554,8 @@ static int _wrap_SBCommandInterpreter_GetArgumentTypeAsCString(lua_State* L) {
char *result = 0 ;
SWIG_check_num_args("lldb::SBCommandInterpreter::GetArgumentTypeAsCString",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBCommandInterpreter::GetArgumentTypeAsCString",1,"lldb::CommandArgumentType const");
- arg1 = (lldb::CommandArgumentType const)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBCommandInterpreter::GetArgumentTypeAsCString",1,"lldb::CommandArgumentType const");
+ arg1 = (lldb::CommandArgumentType const)lua_tointeger(L, 1);
result = (char *)lldb::SBCommandInterpreter::GetArgumentTypeAsCString(arg1);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -11590,8 +11574,8 @@ static int _wrap_SBCommandInterpreter_GetArgumentDescriptionAsCString(lua_State*
char *result = 0 ;
SWIG_check_num_args("lldb::SBCommandInterpreter::GetArgumentDescriptionAsCString",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBCommandInterpreter::GetArgumentDescriptionAsCString",1,"lldb::CommandArgumentType const");
- arg1 = (lldb::CommandArgumentType const)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBCommandInterpreter::GetArgumentDescriptionAsCString",1,"lldb::CommandArgumentType const");
+ arg1 = (lldb::CommandArgumentType const)lua_tointeger(L, 1);
result = (char *)lldb::SBCommandInterpreter::GetArgumentDescriptionAsCString(arg1);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -12146,7 +12130,7 @@ static int _wrap_SBCommandInterpreter_HandleCommand__SWIG_0(lua_State* L) {
arg4 = (lua_toboolean(L, 4)!=0);
result = (lldb::ReturnStatus)(arg1)->HandleCommand((char const *)arg2,*arg3,arg4);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -12180,7 +12164,7 @@ static int _wrap_SBCommandInterpreter_HandleCommand__SWIG_1(lua_State* L) {
}
result = (lldb::ReturnStatus)(arg1)->HandleCommand((char const *)arg2,*arg3);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -12224,7 +12208,7 @@ static int _wrap_SBCommandInterpreter_HandleCommand__SWIG_2(lua_State* L) {
arg5 = (lua_toboolean(L, 5)!=0);
result = (lldb::ReturnStatus)(arg1)->HandleCommand((char const *)arg2,*arg3,*arg4,arg5);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -12265,7 +12249,7 @@ static int _wrap_SBCommandInterpreter_HandleCommand__SWIG_3(lua_State* L) {
}
result = (lldb::ReturnStatus)(arg1)->HandleCommand((char const *)arg2,*arg3,*arg4);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -12516,9 +12500,9 @@ static int _wrap_SBCommandInterpreter_HandleCompletion(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (signed int)lua_tointeger(L, 4);
- arg5 = (signed int)lua_tointeger(L, 5);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (int)lua_tointeger(L, 4);
+ arg5 = (int)lua_tointeger(L, 5);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_lldb__SBStringList,0))){
SWIG_fail_ptr("SBCommandInterpreter_HandleCompletion",6,SWIGTYPE_p_lldb__SBStringList);
@@ -12561,9 +12545,9 @@ static int _wrap_SBCommandInterpreter_HandleCompletionWithDescriptions(lua_State
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (signed int)lua_tointeger(L, 4);
- arg5 = (signed int)lua_tointeger(L, 5);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (int)lua_tointeger(L, 4);
+ arg5 = (int)lua_tointeger(L, 5);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_lldb__SBStringList,0))){
SWIG_fail_ptr("SBCommandInterpreter_HandleCompletionWithDescriptions",6,SWIGTYPE_p_lldb__SBStringList);
@@ -13558,23 +13542,23 @@ static int _wrap_SBCommandReturnObject_PutOutput__SWIG_1(lua_State* L) {
int SWIG_arg = 0;
lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
size_t result;
SWIG_check_num_args("lldb::SBCommandReturnObject::PutOutput",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::PutOutput",1,"lldb::SBCommandReturnObject *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::PutOutput",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_PutOutput",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBCommandReturnObject_PutOutput",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
result = (arg1)->PutOutput(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -13630,12 +13614,8 @@ static int _wrap_SBCommandReturnObject_PutOutput(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBCommandReturnObject_PutOutput__SWIG_1(L);
@@ -13655,23 +13635,23 @@ static int _wrap_SBCommandReturnObject_PutError__SWIG_1(lua_State* L) {
int SWIG_arg = 0;
lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
size_t result;
SWIG_check_num_args("lldb::SBCommandReturnObject::PutError",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::PutError",1,"lldb::SBCommandReturnObject *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::PutError",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_PutError",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBCommandReturnObject_PutError",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
result = (arg1)->PutError(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -13727,12 +13707,8 @@ static int _wrap_SBCommandReturnObject_PutError(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBCommandReturnObject_PutError__SWIG_1(L);
@@ -13778,13 +13754,13 @@ static int _wrap_SBCommandReturnObject_SetStatus(lua_State* L) {
SWIG_check_num_args("lldb::SBCommandReturnObject::SetStatus",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetStatus",1,"lldb::SBCommandReturnObject *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetStatus",2,"lldb::ReturnStatus");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetStatus",2,"lldb::ReturnStatus");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_SetStatus",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
- arg2 = (lldb::ReturnStatus)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::ReturnStatus)lua_tointeger(L, 2);
(arg1)->SetStatus(arg2);
return SWIG_arg;
@@ -13988,7 +13964,7 @@ static int _wrap_SBCommandReturnObject_GetStatus(lua_State* L) {
}
result = (lldb::ReturnStatus)(arg1)->GetStatus();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -14198,22 +14174,22 @@ static int _wrap_SBCommandReturnObject_SetImmediateOutputFile__SWIG_1(lua_State*
int SWIG_arg = 0;
lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBCommandReturnObject::SetImmediateOutputFile",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateOutputFile",1,"lldb::SBCommandReturnObject *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateOutputFile",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_SetImmediateOutputFile",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBCommandReturnObject_SetImmediateOutputFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
(arg1)->SetImmediateOutputFile(arg2);
return SWIG_arg;
@@ -14230,22 +14206,22 @@ static int _wrap_SBCommandReturnObject_SetImmediateErrorFile__SWIG_1(lua_State*
int SWIG_arg = 0;
lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBCommandReturnObject::SetImmediateErrorFile",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateErrorFile",1,"lldb::SBCommandReturnObject *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateErrorFile",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_SetImmediateErrorFile",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBCommandReturnObject_SetImmediateErrorFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
(arg1)->SetImmediateErrorFile(arg2);
return SWIG_arg;
@@ -14287,23 +14263,23 @@ static int _wrap_SBCommandReturnObject_SetImmediateOutputFile__SWIG_2(lua_State*
lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
bool arg3 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBCommandReturnObject::SetImmediateOutputFile",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateOutputFile",1,"lldb::SBCommandReturnObject *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateOutputFile",2,"lldb::FileSP");
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateOutputFile",3,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_SetImmediateOutputFile",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBCommandReturnObject_SetImmediateOutputFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
arg3 = (lua_toboolean(L, 3)!=0);
lldb_SBCommandReturnObject_SetImmediateOutputFile__SWIG_2(arg1,arg2,arg3);
@@ -14360,12 +14336,8 @@ static int _wrap_SBCommandReturnObject_SetImmediateOutputFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBCommandReturnObject_SetImmediateOutputFile__SWIG_1(L);
@@ -14384,12 +14356,8 @@ static int _wrap_SBCommandReturnObject_SetImmediateOutputFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
{
@@ -14416,23 +14384,23 @@ static int _wrap_SBCommandReturnObject_SetImmediateErrorFile__SWIG_2(lua_State*
lldb::SBCommandReturnObject *arg1 = (lldb::SBCommandReturnObject *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
bool arg3 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBCommandReturnObject::SetImmediateErrorFile",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateErrorFile",1,"lldb::SBCommandReturnObject *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateErrorFile",2,"lldb::FileSP");
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBCommandReturnObject::SetImmediateErrorFile",3,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_SetImmediateErrorFile",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBCommandReturnObject_SetImmediateErrorFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
arg3 = (lua_toboolean(L, 3)!=0);
lldb_SBCommandReturnObject_SetImmediateErrorFile__SWIG_2(arg1,arg2,arg3);
@@ -14489,12 +14457,8 @@ static int _wrap_SBCommandReturnObject_SetImmediateErrorFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBCommandReturnObject_SetImmediateErrorFile__SWIG_1(L);
@@ -14513,12 +14477,8 @@ static int _wrap_SBCommandReturnObject_SetImmediateErrorFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
{
@@ -14546,17 +14506,22 @@ static int _wrap_SBCommandReturnObject_PutCString(lua_State* L) {
char *arg2 = (char *) 0 ;
int arg3 ;
- SWIG_check_num_args("lldb::SBCommandReturnObject::PutCString",3,3)
+ SWIG_check_num_args("lldb::SBCommandReturnObject::PutCString",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBCommandReturnObject::PutCString",1,"lldb::SBCommandReturnObject *");
- if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBCommandReturnObject::PutCString",2,"char const *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBCommandReturnObject::PutCString",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBCommandReturnObject,0))){
SWIG_fail_ptr("SBCommandReturnObject_PutCString",1,SWIGTYPE_p_lldb__SBCommandReturnObject);
}
- arg2 = (char *)lua_tostring(L, 2);
- arg3 = (signed int)lua_tointeger(L, 3);
+ {
+ if (lua_isnil(L, 2)) {
+ arg2 = NULL;
+ arg3 = 0;
+ }
+ else {
+ arg2 = (char *)luaL_checklstring(L, 2, (size_t *)&arg3);
+ }
+ }
(arg1)->PutCString((char const *)arg2,arg3);
return SWIG_arg;
@@ -14813,10 +14778,10 @@ static int _wrap_SBCommunication_AdoptFileDesriptor(lua_State* L) {
SWIG_fail_ptr("SBCommunication_AdoptFileDesriptor",1,SWIGTYPE_p_lldb__SBCommunication);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
result = (lldb::ConnectionStatus)(arg1)->AdoptFileDesriptor(arg2,arg3);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -14843,7 +14808,7 @@ static int _wrap_SBCommunication_Connect(lua_State* L) {
arg2 = (char *)lua_tostring(L, 2);
result = (lldb::ConnectionStatus)(arg1)->Connect((char const *)arg2);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -14867,7 +14832,7 @@ static int _wrap_SBCommunication_Disconnect(lua_State* L) {
}
result = (lldb::ConnectionStatus)(arg1)->Disconnect();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -14973,8 +14938,8 @@ static int _wrap_SBCommunication_Read(lua_State* L) {
}
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"SBCommunication_Read");
- arg3 = (unsigned long)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
+ arg3 = (size_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__ConnectionStatus,0))){
SWIG_fail_ptr("SBCommunication_Read",5,SWIGTYPE_p_lldb__ConnectionStatus);
@@ -15011,7 +14976,7 @@ static int _wrap_SBCommunication_Write(lua_State* L) {
}
arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"SBCommunication_Write");
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ arg3 = (size_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__ConnectionStatus,0))){
SWIG_fail_ptr("SBCommunication_Write",4,SWIGTYPE_p_lldb__ConnectionStatus);
@@ -15366,7 +15331,7 @@ static int _wrap_SBCompileUnit_GetLineEntryAtIndex(lua_State* L) {
SWIG_fail_ptr("SBCompileUnit_GetLineEntryAtIndex",1,SWIGTYPE_p_lldb__SBCompileUnit);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = ((lldb::SBCompileUnit const *)arg1)->GetLineEntryAtIndex(arg2);
{
lldb::SBLineEntry * resultptr = new lldb::SBLineEntry((const lldb::SBLineEntry &) result);
@@ -15400,8 +15365,8 @@ static int _wrap_SBCompileUnit_FindLineEntryIndex__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBCompileUnit_FindLineEntryIndex",1,SWIGTYPE_p_lldb__SBCompileUnit);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBFileSpec,0))){
SWIG_fail_ptr("SBCompileUnit_FindLineEntryIndex",4,SWIGTYPE_p_lldb__SBFileSpec);
@@ -15439,8 +15404,8 @@ static int _wrap_SBCompileUnit_FindLineEntryIndex__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBCompileUnit_FindLineEntryIndex",1,SWIGTYPE_p_lldb__SBCompileUnit);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBFileSpec,0))){
SWIG_fail_ptr("SBCompileUnit_FindLineEntryIndex",4,SWIGTYPE_p_lldb__SBFileSpec);
@@ -15562,7 +15527,7 @@ static int _wrap_SBCompileUnit_GetSupportFileAtIndex(lua_State* L) {
SWIG_fail_ptr("SBCompileUnit_GetSupportFileAtIndex",1,SWIGTYPE_p_lldb__SBCompileUnit);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = ((lldb::SBCompileUnit const *)arg1)->GetSupportFileAtIndex(arg2);
{
lldb::SBFileSpec * resultptr = new lldb::SBFileSpec((const lldb::SBFileSpec &) result);
@@ -15620,7 +15585,7 @@ static int _wrap_SBCompileUnit_FindSupportFileIndex(lua_State* L) {
SWIG_fail_ptr("SBCompileUnit_FindSupportFileIndex",1,SWIGTYPE_p_lldb__SBCompileUnit);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBFileSpec,0))){
SWIG_fail_ptr("SBCompileUnit_FindSupportFileIndex",3,SWIGTYPE_p_lldb__SBFileSpec);
@@ -15653,7 +15618,7 @@ static int _wrap_SBCompileUnit_GetTypes__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBCompileUnit_GetTypes",1,SWIGTYPE_p_lldb__SBCompileUnit);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypes(arg2);
{
lldb::SBTypeList * resultptr = new lldb::SBTypeList((const lldb::SBTypeList &) result);
@@ -15758,7 +15723,7 @@ static int _wrap_SBCompileUnit_GetLanguage(lua_State* L) {
}
result = (lldb::LanguageType)(arg1)->GetLanguage();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -16028,7 +15993,7 @@ static int _wrap_SBData_SetAddressByteSize(lua_State* L) {
SWIG_fail_ptr("SBData_SetAddressByteSize",1,SWIGTYPE_p_lldb__SBData);
}
- arg2 = (unsigned char)lua_tointeger(L, 2);
+ arg2 = (uint8_t)lua_tointeger(L, 2);
(arg1)->SetAddressByteSize(arg2);
return SWIG_arg;
@@ -16125,7 +16090,7 @@ static int _wrap_SBData_GetByteOrder(lua_State* L) {
}
result = (lldb::ByteOrder)(arg1)->GetByteOrder();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -16143,13 +16108,13 @@ static int _wrap_SBData_SetByteOrder(lua_State* L) {
SWIG_check_num_args("lldb::SBData::SetByteOrder",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetByteOrder",1,"lldb::SBData *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBData::SetByteOrder",2,"lldb::ByteOrder");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBData::SetByteOrder",2,"lldb::ByteOrder");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_SetByteOrder",1,SWIGTYPE_p_lldb__SBData);
}
- arg2 = (lldb::ByteOrder)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::ByteOrder)lua_tointeger(L, 2);
(arg1)->SetByteOrder(arg2);
return SWIG_arg;
@@ -16183,7 +16148,7 @@ static int _wrap_SBData_GetFloat(lua_State* L) {
SWIG_fail_ptr("SBData_GetFloat",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (float)(arg1)->GetFloat(*arg2,arg3);
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
@@ -16217,7 +16182,7 @@ static int _wrap_SBData_GetDouble(lua_State* L) {
SWIG_fail_ptr("SBData_GetDouble",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (double)(arg1)->GetDouble(*arg2,arg3);
lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
return SWIG_arg;
@@ -16251,7 +16216,7 @@ static int _wrap_SBData_GetLongDouble(lua_State* L) {
SWIG_fail_ptr("SBData_GetLongDouble",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (long double)(arg1)->GetLongDouble(*arg2,arg3);
{
long double * resultptr = new long double((const long double &) result);
@@ -16288,7 +16253,7 @@ static int _wrap_SBData_GetAddress(lua_State* L) {
SWIG_fail_ptr("SBData_GetAddress",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (lldb::addr_t)(arg1)->GetAddress(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16322,7 +16287,7 @@ static int _wrap_SBData_GetUnsignedInt8(lua_State* L) {
SWIG_fail_ptr("SBData_GetUnsignedInt8",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (uint8_t)(arg1)->GetUnsignedInt8(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16356,7 +16321,7 @@ static int _wrap_SBData_GetUnsignedInt16(lua_State* L) {
SWIG_fail_ptr("SBData_GetUnsignedInt16",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (uint16_t)(arg1)->GetUnsignedInt16(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16390,7 +16355,7 @@ static int _wrap_SBData_GetUnsignedInt32(lua_State* L) {
SWIG_fail_ptr("SBData_GetUnsignedInt32",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (uint32_t)(arg1)->GetUnsignedInt32(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16424,7 +16389,7 @@ static int _wrap_SBData_GetUnsignedInt64(lua_State* L) {
SWIG_fail_ptr("SBData_GetUnsignedInt64",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (uint64_t)(arg1)->GetUnsignedInt64(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16458,7 +16423,7 @@ static int _wrap_SBData_GetSignedInt8(lua_State* L) {
SWIG_fail_ptr("SBData_GetSignedInt8",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (int8_t)(arg1)->GetSignedInt8(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16492,7 +16457,7 @@ static int _wrap_SBData_GetSignedInt16(lua_State* L) {
SWIG_fail_ptr("SBData_GetSignedInt16",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (int16_t)(arg1)->GetSignedInt16(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16526,7 +16491,7 @@ static int _wrap_SBData_GetSignedInt32(lua_State* L) {
SWIG_fail_ptr("SBData_GetSignedInt32",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (int32_t)(arg1)->GetSignedInt32(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16560,7 +16525,7 @@ static int _wrap_SBData_GetSignedInt64(lua_State* L) {
SWIG_fail_ptr("SBData_GetSignedInt64",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (int64_t)(arg1)->GetSignedInt64(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -16594,7 +16559,7 @@ static int _wrap_SBData_GetString(lua_State* L) {
SWIG_fail_ptr("SBData_GetString",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
result = (char *)(arg1)->GetString(*arg2,arg3);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -16628,7 +16593,7 @@ static int _wrap_SBData_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBData_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -16650,12 +16615,10 @@ static int _wrap_SBData_ReadRawData(lua_State* L) {
size_t arg5 ;
size_t result;
- SWIG_check_num_args("lldb::SBData::ReadRawData",5,5)
+ SWIG_check_num_args("lldb::SBData::ReadRawData",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::ReadRawData",1,"lldb::SBData *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBData::ReadRawData",2,"lldb::SBError &");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBData::ReadRawData",3,"lldb::offset_t");
- if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("lldb::SBData::ReadRawData",4,"void *");
- if(!lua_isinteger(L,5)) SWIG_fail_arg("lldb::SBData::ReadRawData",5,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_ReadRawData",1,SWIGTYPE_p_lldb__SBData);
@@ -16666,11 +16629,26 @@ static int _wrap_SBData_ReadRawData(lua_State* L) {
SWIG_fail_ptr("SBData_ReadRawData",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
- arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"SBData_ReadRawData");
- arg5 = (unsigned long)lua_tointeger(L, 5);
+ arg3 = (lldb::offset_t)lua_tointeger(L, 3);
+ {
+ arg5 = luaL_checkinteger(L, 4);
+ if (arg5 <= 0) {
+ return luaL_error(L, "Positive integer expected");
+ }
+ arg4 = (char *) malloc(arg5);
+ }
result = (arg1)->ReadRawData(*arg2,arg3,arg4,arg5);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
+ {
+ lua_pop(L, 1); // Blow away the previous result
+ if (result == 0) {
+ lua_pushliteral(L, "");
+ } else {
+ lua_pushlstring(L, (const char *)arg4, result);
+ }
+ free(arg4);
+ // SWIG_arg was already incremented
+ }
return SWIG_arg;
if(0) SWIG_fail;
@@ -16690,13 +16668,11 @@ static int _wrap_SBData_SetData(lua_State* L) {
lldb::ByteOrder arg5 ;
uint8_t arg6 ;
- SWIG_check_num_args("lldb::SBData::SetData",6,6)
+ SWIG_check_num_args("lldb::SBData::SetData",5,5)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetData",1,"lldb::SBData *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBData::SetData",2,"lldb::SBError &");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBData::SetData",3,"void const *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::SetData",4,"size_t");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("lldb::SBData::SetData",5,"lldb::ByteOrder");
- if(!lua_isinteger(L,6)) SWIG_fail_arg("lldb::SBData::SetData",6,"uint8_t");
+ if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::SetData",4,"lldb::ByteOrder");
+ if(!lua_isinteger(L,5)) SWIG_fail_arg("lldb::SBData::SetData",5,"uint8_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_SetData",1,SWIGTYPE_p_lldb__SBData);
@@ -16707,10 +16683,11 @@ static int _wrap_SBData_SetData(lua_State* L) {
SWIG_fail_ptr("SBData_SetData",2,SWIGTYPE_p_lldb__SBError);
}
- arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"SBData_SetData");
- arg4 = (unsigned long)lua_tointeger(L, 4);
- arg5 = (lldb::ByteOrder)(int)lua_tonumber(L, 5);
- arg6 = (unsigned char)lua_tointeger(L, 6);
+ {
+ arg3 = (void *)luaL_checklstring(L, 3, &arg4);
+ }
+ arg5 = (lldb::ByteOrder)lua_tointeger(L, 4);
+ arg6 = (uint8_t)lua_tointeger(L, 5);
(arg1)->SetData(*arg2,(void const *)arg3,arg4,arg5,arg6);
return SWIG_arg;
@@ -16762,11 +16739,11 @@ static int _wrap_SBData_CreateDataFromCString(lua_State* L) {
lldb::SBData result;
SWIG_check_num_args("lldb::SBData::CreateDataFromCString",3,3)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromCString",1,"lldb::ByteOrder");
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromCString",1,"lldb::ByteOrder");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBData::CreateDataFromCString",2,"uint32_t");
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("lldb::SBData::CreateDataFromCString",3,"char const *");
- arg1 = (lldb::ByteOrder)(int)lua_tonumber(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg1 = (lldb::ByteOrder)lua_tointeger(L, 1);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = lldb::SBData::CreateDataFromCString(arg1,arg2,(char const *)arg3);
{
@@ -16791,29 +16768,52 @@ static int _wrap_SBData_CreateDataFromUInt64Array(lua_State* L) {
size_t arg4 ;
lldb::SBData result;
- SWIG_check_num_args("lldb::SBData::CreateDataFromUInt64Array",4,4)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt64Array",1,"lldb::ByteOrder");
+ SWIG_check_num_args("lldb::SBData::CreateDataFromUInt64Array",3,3)
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt64Array",1,"lldb::ByteOrder");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt64Array",2,"uint32_t");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt64Array",3,"uint64_t *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt64Array",4,"size_t");
- arg1 = (lldb::ByteOrder)(int)lua_tonumber(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_unsigned_long_long,0))){
- SWIG_fail_ptr("SBData_CreateDataFromUInt64Array",3,SWIGTYPE_p_unsigned_long_long);
+ arg1 = (lldb::ByteOrder)lua_tointeger(L, 1);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ {
+ if (lua_istable(L, 3)) {
+ // It should accept a table of numbers.
+ arg4 = lua_rawlen(L, 3);
+ arg3 = (uint64_t *)malloc((arg4) * sizeof(uint64_t));
+ int i = 0, j = 0;
+ while (i++ < arg4) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg3[j++] = (uint64_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ arg4 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg4 = (unsigned long)lua_tointeger(L, 4);
result = lldb::SBData::CreateDataFromUInt64Array(arg1,arg2,arg3,arg4);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBData,1); SWIG_arg++;
}
+ {
+ free(arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -16827,29 +16827,52 @@ static int _wrap_SBData_CreateDataFromUInt32Array(lua_State* L) {
size_t arg4 ;
lldb::SBData result;
- SWIG_check_num_args("lldb::SBData::CreateDataFromUInt32Array",4,4)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt32Array",1,"lldb::ByteOrder");
+ SWIG_check_num_args("lldb::SBData::CreateDataFromUInt32Array",3,3)
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt32Array",1,"lldb::ByteOrder");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt32Array",2,"uint32_t");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt32Array",3,"uint32_t *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::CreateDataFromUInt32Array",4,"size_t");
- arg1 = (lldb::ByteOrder)(int)lua_tonumber(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_unsigned_int,0))){
- SWIG_fail_ptr("SBData_CreateDataFromUInt32Array",3,SWIGTYPE_p_unsigned_int);
+ arg1 = (lldb::ByteOrder)lua_tointeger(L, 1);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ {
+ if (lua_istable(L, 3)) {
+ // It should accept a table of numbers.
+ arg4 = lua_rawlen(L, 3);
+ arg3 = (uint32_t *)malloc((arg4) * sizeof(uint32_t));
+ int i = 0, j = 0;
+ while (i++ < arg4) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg3[j++] = (uint32_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ arg4 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg4 = (unsigned long)lua_tointeger(L, 4);
result = lldb::SBData::CreateDataFromUInt32Array(arg1,arg2,arg3,arg4);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBData,1); SWIG_arg++;
}
+ {
+ free(arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -16863,29 +16886,52 @@ static int _wrap_SBData_CreateDataFromSInt64Array(lua_State* L) {
size_t arg4 ;
lldb::SBData result;
- SWIG_check_num_args("lldb::SBData::CreateDataFromSInt64Array",4,4)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt64Array",1,"lldb::ByteOrder");
+ SWIG_check_num_args("lldb::SBData::CreateDataFromSInt64Array",3,3)
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt64Array",1,"lldb::ByteOrder");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt64Array",2,"uint32_t");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt64Array",3,"int64_t *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt64Array",4,"size_t");
- arg1 = (lldb::ByteOrder)(int)lua_tonumber(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_long_long,0))){
- SWIG_fail_ptr("SBData_CreateDataFromSInt64Array",3,SWIGTYPE_p_long_long);
+ arg1 = (lldb::ByteOrder)lua_tointeger(L, 1);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ {
+ if (lua_istable(L, 3)) {
+ // It should accept a table of numbers.
+ arg4 = lua_rawlen(L, 3);
+ arg3 = (int64_t *)malloc((arg4) * sizeof(int64_t));
+ int i = 0, j = 0;
+ while (i++ < arg4) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg3[j++] = (int64_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ arg4 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg4 = (unsigned long)lua_tointeger(L, 4);
result = lldb::SBData::CreateDataFromSInt64Array(arg1,arg2,arg3,arg4);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBData,1); SWIG_arg++;
}
+ {
+ free(arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -16899,29 +16945,52 @@ static int _wrap_SBData_CreateDataFromSInt32Array(lua_State* L) {
size_t arg4 ;
lldb::SBData result;
- SWIG_check_num_args("lldb::SBData::CreateDataFromSInt32Array",4,4)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt32Array",1,"lldb::ByteOrder");
+ SWIG_check_num_args("lldb::SBData::CreateDataFromSInt32Array",3,3)
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt32Array",1,"lldb::ByteOrder");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt32Array",2,"uint32_t");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt32Array",3,"int32_t *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::CreateDataFromSInt32Array",4,"size_t");
- arg1 = (lldb::ByteOrder)(int)lua_tonumber(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_int,0))){
- SWIG_fail_ptr("SBData_CreateDataFromSInt32Array",3,SWIGTYPE_p_int);
+ arg1 = (lldb::ByteOrder)lua_tointeger(L, 1);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ {
+ if (lua_istable(L, 3)) {
+ // It should accept a table of numbers.
+ arg4 = lua_rawlen(L, 3);
+ arg3 = (int32_t *)malloc((arg4) * sizeof(int32_t));
+ int i = 0, j = 0;
+ while (i++ < arg4) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg3[j++] = (int32_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ arg4 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg4 = (unsigned long)lua_tointeger(L, 4);
result = lldb::SBData::CreateDataFromSInt32Array(arg1,arg2,arg3,arg4);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBData,1); SWIG_arg++;
}
+ {
+ free(arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -16935,29 +17004,52 @@ static int _wrap_SBData_CreateDataFromDoubleArray(lua_State* L) {
size_t arg4 ;
lldb::SBData result;
- SWIG_check_num_args("lldb::SBData::CreateDataFromDoubleArray",4,4)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromDoubleArray",1,"lldb::ByteOrder");
+ SWIG_check_num_args("lldb::SBData::CreateDataFromDoubleArray",3,3)
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBData::CreateDataFromDoubleArray",1,"lldb::ByteOrder");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBData::CreateDataFromDoubleArray",2,"uint32_t");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBData::CreateDataFromDoubleArray",3,"double *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::CreateDataFromDoubleArray",4,"size_t");
- arg1 = (lldb::ByteOrder)(int)lua_tonumber(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_double,0))){
- SWIG_fail_ptr("SBData_CreateDataFromDoubleArray",3,SWIGTYPE_p_double);
+ arg1 = (lldb::ByteOrder)lua_tointeger(L, 1);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ {
+ if (lua_istable(L, 3)) {
+ // It should accept a table of numbers.
+ arg4 = lua_rawlen(L, 3);
+ arg3 = (double *)malloc((arg4) * sizeof(double));
+ int i = 0, j = 0;
+ while (i++ < arg4) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg3[j++] = (double)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ arg4 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg4 = (unsigned long)lua_tointeger(L, 4);
result = lldb::SBData::CreateDataFromDoubleArray(arg1,arg2,arg3,arg4);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBData,1); SWIG_arg++;
}
+ {
+ free(arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -16997,28 +17089,51 @@ static int _wrap_SBData_SetDataFromUInt64Array(lua_State* L) {
size_t arg3 ;
bool result;
- SWIG_check_num_args("lldb::SBData::SetDataFromUInt64Array",3,3)
+ SWIG_check_num_args("lldb::SBData::SetDataFromUInt64Array",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetDataFromUInt64Array",1,"lldb::SBData *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBData::SetDataFromUInt64Array",2,"uint64_t *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBData::SetDataFromUInt64Array",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_SetDataFromUInt64Array",1,SWIGTYPE_p_lldb__SBData);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_unsigned_long_long,0))){
- SWIG_fail_ptr("SBData_SetDataFromUInt64Array",2,SWIGTYPE_p_unsigned_long_long);
+ {
+ if (lua_istable(L, 2)) {
+ // It should accept a table of numbers.
+ arg3 = lua_rawlen(L, 2);
+ arg2 = (uint64_t *)malloc((arg3) * sizeof(uint64_t));
+ int i = 0, j = 0;
+ while (i++ < arg3) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg2[j++] = (uint64_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ arg3 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg3 = (unsigned long)lua_tointeger(L, 3);
result = (bool)(arg1)->SetDataFromUInt64Array(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ {
+ free(arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -17031,28 +17146,51 @@ static int _wrap_SBData_SetDataFromUInt32Array(lua_State* L) {
size_t arg3 ;
bool result;
- SWIG_check_num_args("lldb::SBData::SetDataFromUInt32Array",3,3)
+ SWIG_check_num_args("lldb::SBData::SetDataFromUInt32Array",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetDataFromUInt32Array",1,"lldb::SBData *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBData::SetDataFromUInt32Array",2,"uint32_t *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBData::SetDataFromUInt32Array",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_SetDataFromUInt32Array",1,SWIGTYPE_p_lldb__SBData);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_unsigned_int,0))){
- SWIG_fail_ptr("SBData_SetDataFromUInt32Array",2,SWIGTYPE_p_unsigned_int);
+ {
+ if (lua_istable(L, 2)) {
+ // It should accept a table of numbers.
+ arg3 = lua_rawlen(L, 2);
+ arg2 = (uint32_t *)malloc((arg3) * sizeof(uint32_t));
+ int i = 0, j = 0;
+ while (i++ < arg3) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg2[j++] = (uint32_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ arg3 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg3 = (unsigned long)lua_tointeger(L, 3);
result = (bool)(arg1)->SetDataFromUInt32Array(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ {
+ free(arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -17065,28 +17203,51 @@ static int _wrap_SBData_SetDataFromSInt64Array(lua_State* L) {
size_t arg3 ;
bool result;
- SWIG_check_num_args("lldb::SBData::SetDataFromSInt64Array",3,3)
+ SWIG_check_num_args("lldb::SBData::SetDataFromSInt64Array",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetDataFromSInt64Array",1,"lldb::SBData *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBData::SetDataFromSInt64Array",2,"int64_t *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBData::SetDataFromSInt64Array",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_SetDataFromSInt64Array",1,SWIGTYPE_p_lldb__SBData);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_long_long,0))){
- SWIG_fail_ptr("SBData_SetDataFromSInt64Array",2,SWIGTYPE_p_long_long);
+ {
+ if (lua_istable(L, 2)) {
+ // It should accept a table of numbers.
+ arg3 = lua_rawlen(L, 2);
+ arg2 = (int64_t *)malloc((arg3) * sizeof(int64_t));
+ int i = 0, j = 0;
+ while (i++ < arg3) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg2[j++] = (int64_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ arg3 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg3 = (unsigned long)lua_tointeger(L, 3);
result = (bool)(arg1)->SetDataFromSInt64Array(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ {
+ free(arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -17099,28 +17260,51 @@ static int _wrap_SBData_SetDataFromSInt32Array(lua_State* L) {
size_t arg3 ;
bool result;
- SWIG_check_num_args("lldb::SBData::SetDataFromSInt32Array",3,3)
+ SWIG_check_num_args("lldb::SBData::SetDataFromSInt32Array",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetDataFromSInt32Array",1,"lldb::SBData *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBData::SetDataFromSInt32Array",2,"int32_t *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBData::SetDataFromSInt32Array",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_SetDataFromSInt32Array",1,SWIGTYPE_p_lldb__SBData);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_int,0))){
- SWIG_fail_ptr("SBData_SetDataFromSInt32Array",2,SWIGTYPE_p_int);
+ {
+ if (lua_istable(L, 2)) {
+ // It should accept a table of numbers.
+ arg3 = lua_rawlen(L, 2);
+ arg2 = (int32_t *)malloc((arg3) * sizeof(int32_t));
+ int i = 0, j = 0;
+ while (i++ < arg3) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg2[j++] = (int32_t)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ arg3 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg3 = (unsigned long)lua_tointeger(L, 3);
result = (bool)(arg1)->SetDataFromSInt32Array(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ {
+ free(arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -17133,28 +17317,51 @@ static int _wrap_SBData_SetDataFromDoubleArray(lua_State* L) {
size_t arg3 ;
bool result;
- SWIG_check_num_args("lldb::SBData::SetDataFromDoubleArray",3,3)
+ SWIG_check_num_args("lldb::SBData::SetDataFromDoubleArray",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetDataFromDoubleArray",1,"lldb::SBData *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBData::SetDataFromDoubleArray",2,"double *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBData::SetDataFromDoubleArray",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
SWIG_fail_ptr("SBData_SetDataFromDoubleArray",1,SWIGTYPE_p_lldb__SBData);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_double,0))){
- SWIG_fail_ptr("SBData_SetDataFromDoubleArray",2,SWIGTYPE_p_double);
+ {
+ if (lua_istable(L, 2)) {
+ // It should accept a table of numbers.
+ arg3 = lua_rawlen(L, 2);
+ arg2 = (double *)malloc((arg3) * sizeof(double));
+ int i = 0, j = 0;
+ while (i++ < arg3) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isnumber(L, -1)) {
+ // if current element cannot be converted to number, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain numbers");
+ }
+ arg2[j++] = (double)lua_tonumber(L, -1);
+ lua_pop(L, 1);
+ }
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ arg3 = 0;
+ } else {
+ // else raise an error
+ return luaL_error(L, "A list of numbers expected.");
+ }
}
-
- arg3 = (unsigned long)lua_tointeger(L, 3);
result = (bool)(arg1)->SetDataFromDoubleArray(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ {
+ free(arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free(arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -17371,17 +17578,20 @@ static int _wrap_SBDebugger_Create__SWIG_2(lua_State* L) {
void *arg3 = (void *) 0 ;
lldb::SBDebugger result;
- SWIG_check_num_args("lldb::SBDebugger::Create",3,3)
+ SWIG_check_num_args("lldb::SBDebugger::Create",2,2)
if(!lua_isboolean(L,1)) SWIG_fail_arg("lldb::SBDebugger::Create",1,"bool");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBDebugger::Create",2,"lldb::LogOutputCallback");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBDebugger::Create",3,"void *");
arg1 = (lua_toboolean(L, 1)!=0);
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_f_p_q_const__char_p_void__void,0))){
- SWIG_fail_ptr("SBDebugger_Create",2,SWIGTYPE_p_f_p_q_const__char_p_void__void);
+ {
+ arg2 = LLDBSwigLuaCallLuaLogOutputCallback;
+ arg3 = (void *)L;
+
+ luaL_checktype(L, 2, LUA_TFUNCTION);
+ lua_settop(L, 2);
+
+ lua_pushlightuserdata(L, (void *)&LLDBSwigLuaCallLuaLogOutputCallback);
+ lua_insert(L, 2);
+ lua_settable(L, LUA_REGISTRYINDEX);
}
-
- arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"SBDebugger_Create");
result = lldb::SBDebugger::Create(arg1,arg2,arg3);
{
lldb::SBDebugger * resultptr = new lldb::SBDebugger((const lldb::SBDebugger &) result);
@@ -17399,8 +17609,8 @@ fail:
static int _wrap_SBDebugger_Create(lua_State* L) {
int argc;
- int argv[4]={
- 1,2,3,4
+ int argv[3]={
+ 1,2,3
};
argc = lua_gettop(L);
@@ -17416,7 +17626,7 @@ static int _wrap_SBDebugger_Create(lua_State* L) {
return _wrap_SBDebugger_Create__SWIG_1(L);
}
}
- if (argc == 3) {
+ if (argc == 2) {
int _v;
{
_v = lua_isboolean(L,argv[0]);
@@ -17431,6 +17641,9 @@ static int _wrap_SBDebugger_Create(lua_State* L) {
}
}
if (_v) {
+ if (argc <= 2) {
+ return _wrap_SBDebugger_Create__SWIG_2(L);
+ }
{
void *ptr;
if (SWIG_isptrtype(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, 0, 0)) {
@@ -17705,8 +17918,14 @@ static int _wrap_SBDebugger_GetInputFileHandle(lua_State* L) {
result = lldb_SBDebugger_GetInputFileHandle(arg1);
{
- lldb::FileSP * resultptr = new lldb::FileSP((const lldb::FileSP &) result);
- SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,1); SWIG_arg++;
+ lldb::FileSP &sp = result;
+ if (sp && sp->IsValid()) {
+ luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
+ p->closef = &LLDBSwigLuaCloseFileHandle;
+ p->f = sp->GetStream();
+ luaL_setmetatable(L, LUA_FILEHANDLE);
+ SWIG_arg++;
+ }
}
return SWIG_arg;
@@ -17732,8 +17951,14 @@ static int _wrap_SBDebugger_GetOutputFileHandle(lua_State* L) {
result = lldb_SBDebugger_GetOutputFileHandle(arg1);
{
- lldb::FileSP * resultptr = new lldb::FileSP((const lldb::FileSP &) result);
- SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,1); SWIG_arg++;
+ lldb::FileSP &sp = result;
+ if (sp && sp->IsValid()) {
+ luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
+ p->closef = &LLDBSwigLuaCloseFileHandle;
+ p->f = sp->GetStream();
+ luaL_setmetatable(L, LUA_FILEHANDLE);
+ SWIG_arg++;
+ }
}
return SWIG_arg;
@@ -17759,8 +17984,14 @@ static int _wrap_SBDebugger_GetErrorFileHandle(lua_State* L) {
result = lldb_SBDebugger_GetErrorFileHandle(arg1);
{
- lldb::FileSP * resultptr = new lldb::FileSP((const lldb::FileSP &) result);
- SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,1); SWIG_arg++;
+ lldb::FileSP &sp = result;
+ if (sp && sp->IsValid()) {
+ luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
+ p->closef = &LLDBSwigLuaCloseFileHandle;
+ p->f = sp->GetStream();
+ luaL_setmetatable(L, LUA_FILEHANDLE);
+ SWIG_arg++;
+ }
}
return SWIG_arg;
@@ -17884,23 +18115,23 @@ static int _wrap_SBDebugger_SetInputFile__SWIG_1(lua_State* L) {
int SWIG_arg = 0;
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
lldb::SBError result;
SWIG_check_num_args("lldb::SBDebugger::SetInputFile",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::SetInputFile",1,"lldb::SBDebugger *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBDebugger::SetInputFile",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_SetInputFile",1,SWIGTYPE_p_lldb__SBDebugger);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBDebugger_SetInputFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
result = (arg1)->SetInputFile(arg2);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -17959,12 +18190,8 @@ static int _wrap_SBDebugger_SetInputFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBDebugger_SetInputFile__SWIG_1(L);
@@ -17984,23 +18211,23 @@ static int _wrap_SBDebugger_SetOutputFile__SWIG_1(lua_State* L) {
int SWIG_arg = 0;
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
lldb::SBError result;
SWIG_check_num_args("lldb::SBDebugger::SetOutputFile",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::SetOutputFile",1,"lldb::SBDebugger *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBDebugger::SetOutputFile",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_SetOutputFile",1,SWIGTYPE_p_lldb__SBDebugger);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBDebugger_SetOutputFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
result = (arg1)->SetOutputFile(arg2);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -18059,12 +18286,8 @@ static int _wrap_SBDebugger_SetOutputFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBDebugger_SetOutputFile__SWIG_1(L);
@@ -18084,23 +18307,23 @@ static int _wrap_SBDebugger_SetErrorFile__SWIG_1(lua_State* L) {
int SWIG_arg = 0;
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
lldb::SBError result;
SWIG_check_num_args("lldb::SBDebugger::SetErrorFile",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::SetErrorFile",1,"lldb::SBDebugger *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBDebugger::SetErrorFile",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_SetErrorFile",1,SWIGTYPE_p_lldb__SBDebugger);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBDebugger_SetErrorFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
result = (arg1)->SetErrorFile(arg2);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -18159,12 +18382,8 @@ static int _wrap_SBDebugger_SetErrorFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBDebugger_SetErrorFile__SWIG_1(L);
@@ -18403,15 +18622,11 @@ static int _wrap_SBDebugger_HandleProcessEvent__SWIG_1(lua_State* L) {
lldb::SBEvent *arg3 = 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg4 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg5 ;
- lldb::FileSP *argp4 ;
- lldb::FileSP *argp5 ;
SWIG_check_num_args("lldb::SBDebugger::HandleProcessEvent",5,5)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::HandleProcessEvent",1,"lldb::SBDebugger *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBDebugger::HandleProcessEvent",2,"lldb::SBProcess const &");
if(!lua_isuserdata(L,3)) SWIG_fail_arg("lldb::SBDebugger::HandleProcessEvent",3,"lldb::SBEvent const &");
- if(!lua_isuserdata(L,4)) SWIG_fail_arg("lldb::SBDebugger::HandleProcessEvent",4,"lldb::FileSP");
- if(!lua_isuserdata(L,5)) SWIG_fail_arg("lldb::SBDebugger::HandleProcessEvent",5,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_HandleProcessEvent",1,SWIGTYPE_p_lldb__SBDebugger);
@@ -18427,18 +18642,22 @@ static int _wrap_SBDebugger_HandleProcessEvent__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBDebugger_HandleProcessEvent",3,SWIGTYPE_p_lldb__SBEvent);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&argp4,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBDebugger_HandleProcessEvent",4,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 4, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg4 = file_sp;
}
- arg4 = *argp4;
-
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&argp5,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBDebugger_HandleProcessEvent",5,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 5, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg5 = file_sp;
}
- arg5 = *argp5;
-
(arg1)->HandleProcessEvent((lldb::SBProcess const &)*arg2,(lldb::SBEvent const &)*arg3,arg4,arg5);
return SWIG_arg;
@@ -18542,21 +18761,13 @@ static int _wrap_SBDebugger_HandleProcessEvent(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[3])==0 || SWIG_ConvertPtr(L,argv[3], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[3])) &&
+ (luaL_testudata(L, argv[3], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[4])==0 || SWIG_ConvertPtr(L,argv[4], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[4])) &&
+ (luaL_testudata(L, argv[4], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBDebugger_HandleProcessEvent__SWIG_1(L);
@@ -18868,7 +19079,7 @@ static int _wrap_SBDebugger_GetTargetAtIndex(lua_State* L) {
SWIG_fail_ptr("SBDebugger_GetTargetAtIndex",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTargetAtIndex(arg2);
{
lldb::SBTarget * resultptr = new lldb::SBTarget((const lldb::SBTarget &) result);
@@ -18931,7 +19142,7 @@ static int _wrap_SBDebugger_FindTargetWithProcessID(lua_State* L) {
SWIG_fail_ptr("SBDebugger_FindTargetWithProcessID",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::pid_t)lua_tointeger(L, 2);
result = (arg1)->FindTargetWithProcessID(arg2);
{
lldb::SBTarget * resultptr = new lldb::SBTarget((const lldb::SBTarget &) result);
@@ -19156,7 +19367,7 @@ static int _wrap_SBDebugger_GetPlatformAtIndex(lua_State* L) {
SWIG_fail_ptr("SBDebugger_GetPlatformAtIndex",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetPlatformAtIndex(arg2);
{
lldb::SBPlatform * resultptr = new lldb::SBPlatform((const lldb::SBPlatform &) result);
@@ -19210,7 +19421,7 @@ static int _wrap_SBDebugger_GetAvailablePlatformInfoAtIndex(lua_State* L) {
SWIG_fail_ptr("SBDebugger_GetAvailablePlatformInfoAtIndex",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetAvailablePlatformInfoAtIndex(arg2);
{
lldb::SBStructuredData * resultptr = new lldb::SBStructuredData((const lldb::SBStructuredData &) result);
@@ -19422,7 +19633,7 @@ static int _wrap_SBDebugger_GetDefaultArchitecture(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBDebugger::GetDefaultArchitecture",1,"char *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBDebugger::GetDefaultArchitecture",2,"size_t");
arg1 = (char *)lua_tostring(L, 1);
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (bool)lldb::SBDebugger::GetDefaultArchitecture(arg1,arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -19471,7 +19682,7 @@ static int _wrap_SBDebugger_GetScriptingLanguage(lua_State* L) {
arg2 = (char *)lua_tostring(L, 2);
result = (lldb::ScriptLanguage)(arg1)->GetScriptingLanguage((char const *)arg2);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -19505,8 +19716,8 @@ static int _wrap_SBDebugger_StateAsCString(lua_State* L) {
char *result = 0 ;
SWIG_check_num_args("lldb::SBDebugger::StateAsCString",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBDebugger::StateAsCString",1,"lldb::StateType");
- arg1 = (lldb::StateType)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBDebugger::StateAsCString",1,"lldb::StateType");
+ arg1 = (lldb::StateType)lua_tointeger(L, 1);
result = (char *)lldb::SBDebugger::StateAsCString(arg1);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -19545,8 +19756,8 @@ static int _wrap_SBDebugger_StateIsRunningState(lua_State* L) {
bool result;
SWIG_check_num_args("lldb::SBDebugger::StateIsRunningState",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBDebugger::StateIsRunningState",1,"lldb::StateType");
- arg1 = (lldb::StateType)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBDebugger::StateIsRunningState",1,"lldb::StateType");
+ arg1 = (lldb::StateType)lua_tointeger(L, 1);
result = (bool)lldb::SBDebugger::StateIsRunningState(arg1);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -19565,8 +19776,8 @@ static int _wrap_SBDebugger_StateIsStoppedState(lua_State* L) {
bool result;
SWIG_check_num_args("lldb::SBDebugger::StateIsStoppedState",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBDebugger::StateIsStoppedState",1,"lldb::StateType");
- arg1 = (lldb::StateType)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBDebugger::StateIsStoppedState",1,"lldb::StateType");
+ arg1 = (lldb::StateType)lua_tointeger(L, 1);
result = (bool)lldb::SBDebugger::StateIsStoppedState(arg1);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -19589,25 +19800,48 @@ static int _wrap_SBDebugger_EnableLog(lua_State* L) {
SWIG_check_num_args("lldb::SBDebugger::EnableLog",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::EnableLog",1,"lldb::SBDebugger *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBDebugger::EnableLog",2,"char const *");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBDebugger::EnableLog",3,"char const **");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_EnableLog",1,SWIGTYPE_p_lldb__SBDebugger);
}
arg2 = (char *)lua_tostring(L, 2);
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBDebugger_EnableLog",3,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 3)) {
+ size_t size = lua_rawlen(L, 3);
+ arg3 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg3[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg3[j] = 0;
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
result = (bool)(arg1)->EnableLog((char const *)arg2,(char const **)arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ {
+ free((char *) arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -19619,21 +19853,24 @@ static int _wrap_SBDebugger_SetLoggingCallback(lua_State* L) {
lldb::LogOutputCallback arg2 = (lldb::LogOutputCallback) 0 ;
void *arg3 = (void *) 0 ;
- SWIG_check_num_args("lldb::SBDebugger::SetLoggingCallback",3,3)
+ SWIG_check_num_args("lldb::SBDebugger::SetLoggingCallback",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::SetLoggingCallback",1,"lldb::SBDebugger *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBDebugger::SetLoggingCallback",2,"lldb::LogOutputCallback");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBDebugger::SetLoggingCallback",3,"void *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_SetLoggingCallback",1,SWIGTYPE_p_lldb__SBDebugger);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_f_p_q_const__char_p_void__void,0))){
- SWIG_fail_ptr("SBDebugger_SetLoggingCallback",2,SWIGTYPE_p_f_p_q_const__char_p_void__void);
+ {
+ arg2 = LLDBSwigLuaCallLuaLogOutputCallback;
+ arg3 = (void *)L;
+
+ luaL_checktype(L, 2, LUA_TFUNCTION);
+ lua_settop(L, 2);
+
+ lua_pushlightuserdata(L, (void *)&LLDBSwigLuaCallLuaLogOutputCallback);
+ lua_insert(L, 2);
+ lua_settable(L, LUA_REGISTRYINDEX);
}
-
- arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"SBDebugger_SetLoggingCallback");
(arg1)->SetLoggingCallback(arg2,arg3);
return SWIG_arg;
@@ -19652,17 +19889,16 @@ static int _wrap_SBDebugger_DispatchInput(lua_State* L) {
void *arg2 = (void *) 0 ;
size_t arg3 ;
- SWIG_check_num_args("lldb::SBDebugger::DispatchInput",3,3)
+ SWIG_check_num_args("lldb::SBDebugger::DispatchInput",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::DispatchInput",1,"lldb::SBDebugger *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBDebugger::DispatchInput",2,"void const *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBDebugger::DispatchInput",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_DispatchInput",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2=(void *)SWIG_MustGetPtr(L,2,0,0,2,"SBDebugger_DispatchInput");
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ {
+ arg2 = (void *)luaL_checklstring(L, 2, &arg3);
+ }
(arg1)->DispatchInput((void const *)arg2,arg3);
return SWIG_arg;
@@ -19752,7 +19988,7 @@ static int _wrap_SBDebugger_FindDebuggerWithID(lua_State* L) {
SWIG_check_num_args("lldb::SBDebugger::FindDebuggerWithID",1,1)
if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBDebugger::FindDebuggerWithID",1,"int");
- arg1 = (signed int)lua_tointeger(L, 1);
+ arg1 = (int)lua_tointeger(L, 1);
result = lldb::SBDebugger::FindDebuggerWithID(arg1);
{
lldb::SBDebugger * resultptr = new lldb::SBDebugger((const lldb::SBDebugger &) result);
@@ -19891,7 +20127,7 @@ static int _wrap_SBDebugger_SetTerminalWidth(lua_State* L) {
SWIG_fail_ptr("SBDebugger_SetTerminalWidth",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetTerminalWidth(arg2);
return SWIG_arg;
@@ -20015,7 +20251,7 @@ static int _wrap_SBDebugger_GetScriptLanguage(lua_State* L) {
}
result = (lldb::ScriptLanguage)((lldb::SBDebugger const *)arg1)->GetScriptLanguage();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -20033,13 +20269,13 @@ static int _wrap_SBDebugger_SetScriptLanguage(lua_State* L) {
SWIG_check_num_args("lldb::SBDebugger::SetScriptLanguage",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::SetScriptLanguage",1,"lldb::SBDebugger *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBDebugger::SetScriptLanguage",2,"lldb::ScriptLanguage");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBDebugger::SetScriptLanguage",2,"lldb::ScriptLanguage");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_SetScriptLanguage",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (lldb::ScriptLanguage)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::ScriptLanguage)lua_tointeger(L, 2);
(arg1)->SetScriptLanguage(arg2);
return SWIG_arg;
@@ -20140,13 +20376,13 @@ static int _wrap_SBDebugger_GetCategory__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBDebugger::GetCategory",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::GetCategory",1,"lldb::SBDebugger *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBDebugger::GetCategory",2,"lldb::LanguageType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBDebugger::GetCategory",2,"lldb::LanguageType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_GetCategory",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (lldb::LanguageType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::LanguageType)lua_tointeger(L, 2);
result = (arg1)->GetCategory(arg2);
{
lldb::SBTypeCategory * resultptr = new lldb::SBTypeCategory((const lldb::SBTypeCategory &) result);
@@ -20311,7 +20547,7 @@ static int _wrap_SBDebugger_GetCategoryAtIndex(lua_State* L) {
SWIG_fail_ptr("SBDebugger_GetCategoryAtIndex",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetCategoryAtIndex(arg2);
{
lldb::SBTypeCategory * resultptr = new lldb::SBTypeCategory((const lldb::SBTypeCategory &) result);
@@ -20498,6 +20734,36 @@ fail:
}
+static int _wrap_SBDebugger_GetScriptInterpreterInfo(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
+ lldb::ScriptLanguage arg2 ;
+ lldb::SBStructuredData result;
+
+ SWIG_check_num_args("lldb::SBDebugger::GetScriptInterpreterInfo",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::GetScriptInterpreterInfo",1,"lldb::SBDebugger *");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBDebugger::GetScriptInterpreterInfo",2,"lldb::ScriptLanguage");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
+ SWIG_fail_ptr("SBDebugger_GetScriptInterpreterInfo",1,SWIGTYPE_p_lldb__SBDebugger);
+ }
+
+ arg2 = (lldb::ScriptLanguage)lua_tointeger(L, 2);
+ result = (arg1)->GetScriptInterpreterInfo(arg2);
+ {
+ lldb::SBStructuredData * resultptr = new lldb::SBStructuredData((const lldb::SBStructuredData &) result);
+ SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBStructuredData,1); SWIG_arg++;
+ }
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_SBDebugger___tostring(lua_State* L) {
int SWIG_arg = 0;
lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
@@ -20585,14 +20851,14 @@ static int _wrap_SBDebugger_RunREPL(lua_State* L) {
SWIG_check_num_args("lldb::SBDebugger::RunREPL",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::RunREPL",1,"lldb::SBDebugger *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBDebugger::RunREPL",2,"lldb::LanguageType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBDebugger::RunREPL",2,"lldb::LanguageType");
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("lldb::SBDebugger::RunREPL",3,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
SWIG_fail_ptr("SBDebugger_RunREPL",1,SWIGTYPE_p_lldb__SBDebugger);
}
- arg2 = (lldb::LanguageType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::LanguageType)lua_tointeger(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (arg1)->RunREPL(arg2,(char const *)arg3);
{
@@ -20696,6 +20962,7 @@ static swig_lua_method swig_SBDebugger_methods[]= {
{ "GetSummaryForType", _wrap_SBDebugger_GetSummaryForType},
{ "GetFilterForType", _wrap_SBDebugger_GetFilterForType},
{ "GetSyntheticForType", _wrap_SBDebugger_GetSyntheticForType},
+ { "GetScriptInterpreterInfo", _wrap_SBDebugger_GetScriptInterpreterInfo},
{ "__tostring", _wrap_SBDebugger___tostring},
{ "RunCommandInterpreter", _wrap_SBDebugger_RunCommandInterpreter},
{ "RunREPL", _wrap_SBDebugger_RunREPL},
@@ -20996,7 +21263,7 @@ static int _wrap_SBDeclaration_SetLine(lua_State* L) {
SWIG_fail_ptr("SBDeclaration_SetLine",1,SWIGTYPE_p_lldb__SBDeclaration);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetLine(arg2);
return SWIG_arg;
@@ -21022,7 +21289,7 @@ static int _wrap_SBDeclaration_SetColumn(lua_State* L) {
SWIG_fail_ptr("SBDeclaration_SetColumn",1,SWIGTYPE_p_lldb__SBDeclaration);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetColumn(arg2);
return SWIG_arg;
@@ -21355,7 +21622,7 @@ static int _wrap_SBError_GetType(lua_State* L) {
}
result = (lldb::ErrorType)((lldb::SBError const *)arg1)->GetType();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -21375,14 +21642,14 @@ static int _wrap_SBError_SetError(lua_State* L) {
SWIG_check_num_args("lldb::SBError::SetError",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBError::SetError",1,"lldb::SBError *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBError::SetError",2,"uint32_t");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBError::SetError",3,"lldb::ErrorType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBError::SetError",3,"lldb::ErrorType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBError_SetError",1,SWIGTYPE_p_lldb__SBError);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
- arg3 = (lldb::ErrorType)(int)lua_tonumber(L, 3);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ arg3 = (lldb::ErrorType)lua_tointeger(L, 3);
(arg1)->SetError(arg2,arg3);
return SWIG_arg;
@@ -21997,7 +22264,7 @@ static int _wrap_SBEnvironment_GetNameAtIndex(lua_State* L) {
SWIG_fail_ptr("SBEnvironment_GetNameAtIndex",1,SWIGTYPE_p_lldb__SBEnvironment);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetNameAtIndex(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -22024,7 +22291,7 @@ static int _wrap_SBEnvironment_GetValueAtIndex(lua_State* L) {
SWIG_fail_ptr("SBEnvironment_GetValueAtIndex",1,SWIGTYPE_p_lldb__SBEnvironment);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetValueAtIndex(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -22311,13 +22578,12 @@ static int _wrap_new_SBEvent__SWIG_2(lua_State* L) {
uint32_t arg3 ;
lldb::SBEvent *result = 0 ;
- SWIG_check_num_args("lldb::SBEvent::SBEvent",3,3)
+ SWIG_check_num_args("lldb::SBEvent::SBEvent",2,2)
if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBEvent::SBEvent",1,"uint32_t");
- if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBEvent::SBEvent",2,"char const *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBEvent::SBEvent",3,"uint32_t");
- arg1 = (unsigned int)lua_tointeger(L, 1);
- arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg1 = (uint32_t)lua_tointeger(L, 1);
+ {
+ arg2 = (char *)luaL_checklstring(L, 2, (size_t *)&arg3);
+ }
result = (lldb::SBEvent *)new lldb::SBEvent(arg1,(char const *)arg2,arg3);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBEvent,1); SWIG_arg++;
return SWIG_arg;
@@ -22332,8 +22598,8 @@ fail:
static int _wrap_new_SBEvent(lua_State* L) {
int argc;
- int argv[4]={
- 1,2,3,4
+ int argv[3]={
+ 1,2,3
};
argc = lua_gettop(L);
@@ -22354,7 +22620,7 @@ static int _wrap_new_SBEvent(lua_State* L) {
return _wrap_new_SBEvent__SWIG_1(L);
}
}
- if (argc == 3) {
+ if (argc == 2) {
int _v;
{
_v = lua_isnumber(L,argv[0]);
@@ -22364,6 +22630,9 @@ static int _wrap_new_SBEvent(lua_State* L) {
_v = SWIG_lua_isnilstring(L,argv[1]);
}
if (_v) {
+ if (argc <= 2) {
+ return _wrap_new_SBEvent__SWIG_2(L);
+ }
{
_v = lua_isnumber(L,argv[2]);
}
@@ -23515,7 +23784,7 @@ static int _wrap_SBExpressionOptions_GetFetchDynamicValue(lua_State* L) {
}
result = (lldb::DynamicValueType)((lldb::SBExpressionOptions const *)arg1)->GetFetchDynamicValue();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -23533,13 +23802,13 @@ static int _wrap_SBExpressionOptions_SetFetchDynamicValue__SWIG_0(lua_State* L)
SWIG_check_num_args("lldb::SBExpressionOptions::SetFetchDynamicValue",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBExpressionOptions::SetFetchDynamicValue",1,"lldb::SBExpressionOptions *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBExpressionOptions::SetFetchDynamicValue",2,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBExpressionOptions::SetFetchDynamicValue",2,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBExpressionOptions,0))){
SWIG_fail_ptr("SBExpressionOptions_SetFetchDynamicValue",1,SWIGTYPE_p_lldb__SBExpressionOptions);
}
- arg2 = (lldb::DynamicValueType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::DynamicValueType)lua_tointeger(L, 2);
(arg1)->SetFetchDynamicValue(arg2);
return SWIG_arg;
@@ -23661,7 +23930,7 @@ static int _wrap_SBExpressionOptions_SetTimeoutInMicroSeconds__SWIG_0(lua_State*
SWIG_fail_ptr("SBExpressionOptions_SetTimeoutInMicroSeconds",1,SWIGTYPE_p_lldb__SBExpressionOptions);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetTimeoutInMicroSeconds(arg2);
return SWIG_arg;
@@ -23783,7 +24052,7 @@ static int _wrap_SBExpressionOptions_SetOneThreadTimeoutInMicroSeconds__SWIG_0(l
SWIG_fail_ptr("SBExpressionOptions_SetOneThreadTimeoutInMicroSeconds",1,SWIGTYPE_p_lldb__SBExpressionOptions);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetOneThreadTimeoutInMicroSeconds(arg2);
return SWIG_arg;
@@ -24241,13 +24510,13 @@ static int _wrap_SBExpressionOptions_SetLanguage(lua_State* L) {
SWIG_check_num_args("lldb::SBExpressionOptions::SetLanguage",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBExpressionOptions::SetLanguage",1,"lldb::SBExpressionOptions *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBExpressionOptions::SetLanguage",2,"lldb::LanguageType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBExpressionOptions::SetLanguage",2,"lldb::LanguageType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBExpressionOptions,0))){
SWIG_fail_ptr("SBExpressionOptions_SetLanguage",1,SWIGTYPE_p_lldb__SBExpressionOptions);
}
- arg2 = (lldb::LanguageType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::LanguageType)lua_tointeger(L, 2);
(arg1)->SetLanguage(arg2);
return SWIG_arg;
@@ -24689,7 +24958,7 @@ static int _wrap_SBExpressionOptions_SetRetriesWithFixIts(lua_State* L) {
SWIG_fail_ptr("SBExpressionOptions_SetRetriesWithFixIts",1,SWIGTYPE_p_lldb__SBExpressionOptions);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (uint64_t)lua_tointeger(L, 2);
(arg1)->SetRetriesWithFixIts(arg2);
return SWIG_arg;
@@ -25006,7 +25275,7 @@ static int _wrap_new_SBFile__SWIG_1(lua_State* L) {
if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBFile::SBFile",1,"int");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBFile::SBFile",2,"char const *");
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBFile::SBFile",3,"bool");
- arg1 = (signed int)lua_tointeger(L, 1);
+ arg1 = (int)lua_tointeger(L, 1);
arg2 = (char *)lua_tostring(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
result = (lldb::SBFile *)new lldb::SBFile(arg1,(char const *)arg2,arg3);
@@ -25024,17 +25293,17 @@ fail:
static int _wrap_new_SBFile__SWIG_2(lua_State* L) {
int SWIG_arg = 0;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
- lldb::FileSP *argp1 ;
lldb::SBFile *result = 0 ;
SWIG_check_num_args("lldb::SBFile::SBFile",1,1)
- if(!lua_isuserdata(L,1)) SWIG_fail_arg("lldb::SBFile::SBFile",1,"lldb::FileSP");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("new_SBFile",1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 1, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg1 = file_sp;
}
- arg1 = *argp1;
-
result = (lldb::SBFile *)new lldb::SBFile(arg1);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBFile,1); SWIG_arg++;
return SWIG_arg;
@@ -25060,12 +25329,8 @@ static int _wrap_new_SBFile(lua_State* L) {
if (argc == 1) {
int _v;
{
- void *ptr;
- if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[0])) &&
+ (luaL_testudata(L, argv[0], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_new_SBFile__SWIG_2(L);
@@ -25103,17 +25368,17 @@ static int _wrap_new_SBFile(lua_State* L) {
static int _wrap_SBFile_MakeBorrowed(lua_State* L) {
int SWIG_arg = 0;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
- lldb::FileSP *argp1 ;
lldb::SBFile result;
SWIG_check_num_args("lldb::SBFile::lldb_SBFile_MakeBorrowed",1,1)
- if(!lua_isuserdata(L,1)) SWIG_fail_arg("lldb::SBFile::lldb_SBFile_MakeBorrowed",1,"lldb::FileSP");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBFile_MakeBorrowed",1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 1, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg1 = file_sp;
}
- arg1 = *argp1;
-
result = lldb_SBFile_MakeBorrowed(arg1);
{
lldb::SBFile * resultptr = new lldb::SBFile((const lldb::SBFile &) result);
@@ -25132,17 +25397,17 @@ fail:
static int _wrap_SBFile_MakeForcingIOMethods(lua_State* L) {
int SWIG_arg = 0;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
- lldb::FileSP *argp1 ;
lldb::SBFile result;
SWIG_check_num_args("lldb::SBFile::lldb_SBFile_MakeForcingIOMethods",1,1)
- if(!lua_isuserdata(L,1)) SWIG_fail_arg("lldb::SBFile::lldb_SBFile_MakeForcingIOMethods",1,"lldb::FileSP");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBFile_MakeForcingIOMethods",1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 1, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg1 = file_sp;
}
- arg1 = *argp1;
-
result = lldb_SBFile_MakeForcingIOMethods(arg1);
{
lldb::SBFile * resultptr = new lldb::SBFile((const lldb::SBFile &) result);
@@ -25161,17 +25426,17 @@ fail:
static int _wrap_SBFile_MakeBorrowedForcingIOMethods(lua_State* L) {
int SWIG_arg = 0;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
- lldb::FileSP *argp1 ;
lldb::SBFile result;
SWIG_check_num_args("lldb::SBFile::lldb_SBFile_MakeBorrowedForcingIOMethods",1,1)
- if(!lua_isuserdata(L,1)) SWIG_fail_arg("lldb::SBFile::lldb_SBFile_MakeBorrowedForcingIOMethods",1,"lldb::FileSP");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&argp1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBFile_MakeBorrowedForcingIOMethods",1,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 1, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg1 = file_sp;
}
- arg1 = *argp1;
-
result = lldb_SBFile_MakeBorrowedForcingIOMethods(arg1);
{
lldb::SBFile * resultptr = new lldb::SBFile((const lldb::SBFile &) result);
@@ -25210,7 +25475,7 @@ static int _wrap_SBFile_Read(lua_State* L) {
SWIG_fail_ptr("SBFile_Read",2,SWIGTYPE_p_unsigned_char);
}
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ arg3 = (size_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_size_t,0))){
SWIG_fail_ptr("SBFile_Read",4,SWIGTYPE_p_size_t);
@@ -25254,7 +25519,7 @@ static int _wrap_SBFile_Write(lua_State* L) {
SWIG_fail_ptr("SBFile_Write",2,SWIGTYPE_p_unsigned_char);
}
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ arg3 = (size_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_size_t,0))){
SWIG_fail_ptr("SBFile_Write",4,SWIGTYPE_p_size_t);
@@ -25363,8 +25628,14 @@ static int _wrap_SBFile_GetFile(lua_State* L) {
result = (arg1)->GetFile();
{
- lldb::FileSP * resultptr = new lldb::FileSP((const lldb::FileSP &) result);
- SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,1); SWIG_arg++;
+ lldb::FileSP &sp = result;
+ if (sp && sp->IsValid()) {
+ luaL_Stream *p = (luaL_Stream *)lua_newuserdata(L, sizeof(luaL_Stream));
+ p->closef = &LLDBSwigLuaCloseFileHandle;
+ p->f = sp->GetStream();
+ luaL_setmetatable(L, LUA_FILEHANDLE);
+ SWIG_arg++;
+ }
}
return SWIG_arg;
@@ -25794,7 +26065,7 @@ static int _wrap_SBFileSpec_GetPath(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ arg3 = (size_t)lua_tointeger(L, 3);
result = (uint32_t)((lldb::SBFileSpec const *)arg1)->GetPath(arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -25820,7 +26091,7 @@ static int _wrap_SBFileSpec_ResolvePath(lua_State* L) {
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBFileSpec::ResolvePath",3,"size_t");
arg1 = (char *)lua_tostring(L, 1);
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ arg3 = (size_t)lua_tointeger(L, 3);
result = (int)lldb::SBFileSpec::ResolvePath((char const *)arg1,arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -26207,7 +26478,7 @@ static int _wrap_SBFileSpecList_FindFileIndex(lua_State* L) {
SWIG_fail_ptr("SBFileSpecList_FindFileIndex",1,SWIGTYPE_p_lldb__SBFileSpecList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBFileSpec,0))){
SWIG_fail_ptr("SBFileSpecList_FindFileIndex",3,SWIGTYPE_p_lldb__SBFileSpec);
@@ -26240,7 +26511,7 @@ static int _wrap_SBFileSpecList_GetFileSpecAtIndex(lua_State* L) {
SWIG_fail_ptr("SBFileSpecList_GetFileSpecAtIndex",1,SWIGTYPE_p_lldb__SBFileSpecList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = ((lldb::SBFileSpecList const *)arg1)->GetFileSpecAtIndex(arg2);
{
lldb::SBFileSpec * resultptr = new lldb::SBFileSpec((const lldb::SBFileSpec &) result);
@@ -26525,7 +26796,7 @@ static int _wrap_SBFrame_SetPC(lua_State* L) {
SWIG_fail_ptr("SBFrame_SetPC",1,SWIGTYPE_p_lldb__SBFrame);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (bool)(arg1)->SetPC(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -26627,7 +26898,7 @@ static int _wrap_SBFrame_GetSymbolContext(lua_State* L) {
SWIG_fail_ptr("SBFrame_GetSymbolContext",1,SWIGTYPE_p_lldb__SBFrame);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = ((lldb::SBFrame const *)arg1)->GetSymbolContext(arg2);
{
lldb::SBSymbolContext * resultptr = new lldb::SBSymbolContext((const lldb::SBSymbolContext &) result);
@@ -26907,7 +27178,7 @@ static int _wrap_SBFrame_GuessLanguage(lua_State* L) {
}
result = (lldb::LanguageType)((lldb::SBFrame const *)arg1)->GuessLanguage();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -27142,14 +27413,14 @@ static int _wrap_SBFrame_EvaluateExpression__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBFrame::EvaluateExpression",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",1,"lldb::SBFrame *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",3,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",3,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBFrame,0))){
SWIG_fail_ptr("SBFrame_EvaluateExpression",1,SWIGTYPE_p_lldb__SBFrame);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::DynamicValueType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DynamicValueType)lua_tointeger(L, 3);
result = (arg1)->EvaluateExpression((char const *)arg2,arg3);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -27176,7 +27447,7 @@ static int _wrap_SBFrame_EvaluateExpression__SWIG_2(lua_State* L) {
SWIG_check_num_args("lldb::SBFrame::EvaluateExpression",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",1,"lldb::SBFrame *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",3,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",3,"lldb::DynamicValueType");
if(!lua_isboolean(L,4)) SWIG_fail_arg("lldb::SBFrame::EvaluateExpression",4,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBFrame,0))){
@@ -27184,7 +27455,7 @@ static int _wrap_SBFrame_EvaluateExpression__SWIG_2(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::DynamicValueType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DynamicValueType)lua_tointeger(L, 3);
arg4 = (lua_toboolean(L, 4)!=0);
result = (arg1)->EvaluateExpression((char const *)arg2,arg3,arg4);
{
@@ -27571,7 +27842,7 @@ static int _wrap_SBFrame_GetVariables__SWIG_1(lua_State* L) {
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBFrame::GetVariables",3,"bool");
if(!lua_isboolean(L,4)) SWIG_fail_arg("lldb::SBFrame::GetVariables",4,"bool");
if(!lua_isboolean(L,5)) SWIG_fail_arg("lldb::SBFrame::GetVariables",5,"bool");
- if(!lua_isnumber(L,6)) SWIG_fail_arg("lldb::SBFrame::GetVariables",6,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,6)) SWIG_fail_arg("lldb::SBFrame::GetVariables",6,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBFrame,0))){
SWIG_fail_ptr("SBFrame_GetVariables",1,SWIGTYPE_p_lldb__SBFrame);
@@ -27581,7 +27852,7 @@ static int _wrap_SBFrame_GetVariables__SWIG_1(lua_State* L) {
arg3 = (lua_toboolean(L, 3)!=0);
arg4 = (lua_toboolean(L, 4)!=0);
arg5 = (lua_toboolean(L, 5)!=0);
- arg6 = (lldb::DynamicValueType)(int)lua_tonumber(L, 6);
+ arg6 = (lldb::DynamicValueType)lua_tointeger(L, 6);
result = (arg1)->GetVariables(arg2,arg3,arg4,arg5,arg6);
{
lldb::SBValueList * resultptr = new lldb::SBValueList((const lldb::SBValueList &) result);
@@ -27812,14 +28083,14 @@ static int _wrap_SBFrame_FindVariable__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBFrame::FindVariable",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBFrame::FindVariable",1,"lldb::SBFrame *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBFrame::FindVariable",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBFrame::FindVariable",3,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBFrame::FindVariable",3,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBFrame,0))){
SWIG_fail_ptr("SBFrame_FindVariable",1,SWIGTYPE_p_lldb__SBFrame);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::DynamicValueType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DynamicValueType)lua_tointeger(L, 3);
result = (arg1)->FindVariable((char const *)arg2,arg3);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -27964,14 +28235,14 @@ static int _wrap_SBFrame_GetValueForVariablePath__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBFrame::GetValueForVariablePath",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBFrame::GetValueForVariablePath",1,"lldb::SBFrame *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBFrame::GetValueForVariablePath",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBFrame::GetValueForVariablePath",3,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBFrame::GetValueForVariablePath",3,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBFrame,0))){
SWIG_fail_ptr("SBFrame_GetValueForVariablePath",1,SWIGTYPE_p_lldb__SBFrame);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::DynamicValueType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DynamicValueType)lua_tointeger(L, 3);
result = (arg1)->GetValueForVariablePath((char const *)arg2,arg3);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -28056,14 +28327,14 @@ static int _wrap_SBFrame_FindValue__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBFrame::FindValue",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBFrame::FindValue",1,"lldb::SBFrame *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBFrame::FindValue",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBFrame::FindValue",3,"lldb::ValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBFrame::FindValue",3,"lldb::ValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBFrame,0))){
SWIG_fail_ptr("SBFrame_FindValue",1,SWIGTYPE_p_lldb__SBFrame);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::ValueType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::ValueType)lua_tointeger(L, 3);
result = (arg1)->FindValue((char const *)arg2,arg3);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -28090,16 +28361,16 @@ static int _wrap_SBFrame_FindValue__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBFrame::FindValue",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBFrame::FindValue",1,"lldb::SBFrame *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBFrame::FindValue",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBFrame::FindValue",3,"lldb::ValueType");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("lldb::SBFrame::FindValue",4,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBFrame::FindValue",3,"lldb::ValueType");
+ if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBFrame::FindValue",4,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBFrame,0))){
SWIG_fail_ptr("SBFrame_FindValue",1,SWIGTYPE_p_lldb__SBFrame);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::ValueType)(int)lua_tonumber(L, 3);
- arg4 = (lldb::DynamicValueType)(int)lua_tonumber(L, 4);
+ arg3 = (lldb::ValueType)lua_tointeger(L, 3);
+ arg4 = (lldb::DynamicValueType)lua_tointeger(L, 4);
result = (arg1)->FindValue((char const *)arg2,arg3,arg4);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -28705,7 +28976,7 @@ static int _wrap_SBFunction_GetArgumentName(lua_State* L) {
SWIG_fail_ptr("SBFunction_GetArgumentName",1,SWIGTYPE_p_lldb__SBFunction);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetArgumentName(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -28809,7 +29080,7 @@ static int _wrap_SBFunction_GetLanguage(lua_State* L) {
}
result = (lldb::LanguageType)(arg1)->GetLanguage();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -29041,8 +29312,8 @@ static int _wrap_SBHostOS_GetLLDBPath(lua_State* L) {
lldb::SBFileSpec result;
SWIG_check_num_args("lldb::SBHostOS::GetLLDBPath",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBHostOS::GetLLDBPath",1,"lldb::PathType");
- arg1 = (lldb::PathType)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBHostOS::GetLLDBPath",1,"lldb::PathType");
+ arg1 = (lldb::PathType)lua_tointeger(L, 1);
result = lldb::SBHostOS::GetLLDBPath(arg1);
{
lldb::SBFileSpec * resultptr = new lldb::SBFileSpec((const lldb::SBFileSpec &) result);
@@ -29708,22 +29979,22 @@ static int _wrap_SBInstruction_Print__SWIG_1(lua_State* L) {
int SWIG_arg = 0;
lldb::SBInstruction *arg1 = (lldb::SBInstruction *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBInstruction::Print",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBInstruction::Print",1,"lldb::SBInstruction *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBInstruction::Print",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBInstruction,0))){
SWIG_fail_ptr("SBInstruction_Print",1,SWIGTYPE_p_lldb__SBInstruction);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBInstruction_Print",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
(arg1)->Print(arg2);
return SWIG_arg;
@@ -29779,12 +30050,8 @@ static int _wrap_SBInstruction_Print(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBInstruction_Print__SWIG_1(L);
@@ -29852,7 +30119,7 @@ static int _wrap_SBInstruction_EmulateWithFrame(lua_State* L) {
SWIG_fail_ptr("SBInstruction_EmulateWithFrame",2,SWIGTYPE_p_lldb__SBFrame);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (bool)(arg1)->EmulateWithFrame(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -30150,7 +30417,7 @@ static int _wrap_SBInstructionList_GetInstructionAtIndex(lua_State* L) {
SWIG_fail_ptr("SBInstructionList_GetInstructionAtIndex",1,SWIGTYPE_p_lldb__SBInstructionList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetInstructionAtIndex(arg2);
{
lldb::SBInstruction * resultptr = new lldb::SBInstruction((const lldb::SBInstruction &) result);
@@ -30298,22 +30565,22 @@ static int _wrap_SBInstructionList_Print__SWIG_1(lua_State* L) {
int SWIG_arg = 0;
lldb::SBInstructionList *arg1 = (lldb::SBInstructionList *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBInstructionList::Print",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBInstructionList::Print",1,"lldb::SBInstructionList *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBInstructionList::Print",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBInstructionList,0))){
SWIG_fail_ptr("SBInstructionList_Print",1,SWIGTYPE_p_lldb__SBInstructionList);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBInstructionList_Print",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
(arg1)->Print(arg2);
return SWIG_arg;
@@ -30369,12 +30636,8 @@ static int _wrap_SBInstructionList_Print(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBInstructionList_Print__SWIG_1(L);
@@ -30539,7 +30802,7 @@ static int _wrap_SBLanguageRuntime_GetLanguageTypeFromString(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBLanguageRuntime::GetLanguageTypeFromString",1,"char const *");
arg1 = (char *)lua_tostring(L, 1);
result = (lldb::LanguageType)lldb::SBLanguageRuntime::GetLanguageTypeFromString((char const *)arg1);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -30556,8 +30819,8 @@ static int _wrap_SBLanguageRuntime_GetNameForLanguageType(lua_State* L) {
char *result = 0 ;
SWIG_check_num_args("lldb::SBLanguageRuntime::GetNameForLanguageType",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBLanguageRuntime::GetNameForLanguageType",1,"lldb::LanguageType");
- arg1 = (lldb::LanguageType)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBLanguageRuntime::GetNameForLanguageType",1,"lldb::LanguageType");
+ arg1 = (lldb::LanguageType)lua_tointeger(L, 1);
result = (char *)lldb::SBLanguageRuntime::GetNameForLanguageType(arg1);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -30642,19 +30905,42 @@ static int _wrap_new_SBLaunchInfo(lua_State* L) {
lldb::SBLaunchInfo *result = 0 ;
SWIG_check_num_args("lldb::SBLaunchInfo::SBLaunchInfo",1,1)
- if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBLaunchInfo::SBLaunchInfo",1,"char const **");
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("new_SBLaunchInfo",1,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 1)) {
+ size_t size = lua_rawlen(L, 1);
+ arg1 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 1, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg1[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg1[j] = 0;
+ } else if (lua_isnil(L, 1)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg1 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
result = (lldb::SBLaunchInfo *)new lldb::SBLaunchInfo((char const **)arg1);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBLaunchInfo,1); SWIG_arg++;
+ {
+ free((char *) arg1);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg1);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -30793,7 +31079,7 @@ static int _wrap_SBLaunchInfo_SetUserID(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_SetUserID",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetUserID(arg2);
return SWIG_arg;
@@ -30819,7 +31105,7 @@ static int _wrap_SBLaunchInfo_SetGroupID(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_SetGroupID",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetGroupID(arg2);
return SWIG_arg;
@@ -30989,7 +31275,7 @@ static int _wrap_SBLaunchInfo_GetArgumentAtIndex(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_GetArgumentAtIndex",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetArgumentAtIndex(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -31010,26 +31296,49 @@ static int _wrap_SBLaunchInfo_SetArguments(lua_State* L) {
SWIG_check_num_args("lldb::SBLaunchInfo::SetArguments",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBLaunchInfo::SetArguments",1,"lldb::SBLaunchInfo *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBLaunchInfo::SetArguments",2,"char const **");
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBLaunchInfo::SetArguments",3,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBLaunchInfo,0))){
SWIG_fail_ptr("SBLaunchInfo_SetArguments",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBLaunchInfo_SetArguments",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
arg3 = (lua_toboolean(L, 3)!=0);
(arg1)->SetArguments((char const **)arg2,arg3);
+ {
+ free((char *) arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -31073,7 +31382,7 @@ static int _wrap_SBLaunchInfo_GetEnvironmentEntryAtIndex(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_GetEnvironmentEntryAtIndex",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetEnvironmentEntryAtIndex(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -31094,26 +31403,49 @@ static int _wrap_SBLaunchInfo_SetEnvironmentEntries(lua_State* L) {
SWIG_check_num_args("lldb::SBLaunchInfo::SetEnvironmentEntries",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBLaunchInfo::SetEnvironmentEntries",1,"lldb::SBLaunchInfo *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBLaunchInfo::SetEnvironmentEntries",2,"char const **");
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBLaunchInfo::SetEnvironmentEntries",3,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBLaunchInfo,0))){
SWIG_fail_ptr("SBLaunchInfo_SetEnvironmentEntries",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBLaunchInfo_SetEnvironmentEntries",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
arg3 = (lua_toboolean(L, 3)!=0);
(arg1)->SetEnvironmentEntries((char const **)arg2,arg3);
+ {
+ free((char *) arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -31289,7 +31621,7 @@ static int _wrap_SBLaunchInfo_SetLaunchFlags(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_SetLaunchFlags",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetLaunchFlags(arg2);
return SWIG_arg;
@@ -31489,7 +31821,7 @@ static int _wrap_SBLaunchInfo_SetResumeCount(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_SetResumeCount",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetResumeCount(arg2);
return SWIG_arg;
@@ -31516,7 +31848,7 @@ static int _wrap_SBLaunchInfo_AddCloseFileAction(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_AddCloseFileAction",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int)lua_tointeger(L, 2);
result = (bool)(arg1)->AddCloseFileAction(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -31545,8 +31877,8 @@ static int _wrap_SBLaunchInfo_AddDuplicateFileAction(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_AddDuplicateFileAction",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (signed int)lua_tointeger(L, 2);
- arg3 = (signed int)lua_tointeger(L, 3);
+ arg2 = (int)lua_tointeger(L, 2);
+ arg3 = (int)lua_tointeger(L, 3);
result = (bool)(arg1)->AddDuplicateFileAction(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -31579,7 +31911,7 @@ static int _wrap_SBLaunchInfo_AddOpenFileAction(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_AddOpenFileAction",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int)lua_tointeger(L, 2);
arg3 = (char *)lua_tostring(L, 3);
arg4 = (lua_toboolean(L, 4)!=0);
arg5 = (lua_toboolean(L, 5)!=0);
@@ -31613,7 +31945,7 @@ static int _wrap_SBLaunchInfo_AddSuppressFileAction(lua_State* L) {
SWIG_fail_ptr("SBLaunchInfo_AddSuppressFileAction",1,SWIGTYPE_p_lldb__SBLaunchInfo);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
arg4 = (lua_toboolean(L, 4)!=0);
result = (bool)(arg1)->AddSuppressFileAction(arg2,arg3,arg4);
@@ -32231,7 +32563,7 @@ static int _wrap_SBLineEntry_SetLine(lua_State* L) {
SWIG_fail_ptr("SBLineEntry_SetLine",1,SWIGTYPE_p_lldb__SBLineEntry);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetLine(arg2);
return SWIG_arg;
@@ -32257,7 +32589,7 @@ static int _wrap_SBLineEntry_SetColumn(lua_State* L) {
SWIG_fail_ptr("SBLineEntry_SetColumn",1,SWIGTYPE_p_lldb__SBLineEntry);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetColumn(arg2);
return SWIG_arg;
@@ -32591,7 +32923,7 @@ static int _wrap_SBListener_StartListeningForEventClass(lua_State* L) {
}
arg3 = (char *)lua_tostring(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
result = (uint32_t)(arg1)->StartListeningForEventClass(*arg2,(char const *)arg3,arg4);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -32628,7 +32960,7 @@ static int _wrap_SBListener_StopListeningForEventClass(lua_State* L) {
}
arg3 = (char *)lua_tostring(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
result = (uint32_t)(arg1)->StopListeningForEventClass(*arg2,(char const *)arg3,arg4);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -32662,7 +32994,7 @@ static int _wrap_SBListener_StartListeningForEvents(lua_State* L) {
SWIG_fail_ptr("SBListener_StartListeningForEvents",2,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (uint32_t)(arg1)->StartListeningForEvents((lldb::SBBroadcaster const &)*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -32696,7 +33028,7 @@ static int _wrap_SBListener_StopListeningForEvents(lua_State* L) {
SWIG_fail_ptr("SBListener_StopListeningForEvents",2,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (bool)(arg1)->StopListeningForEvents((lldb::SBBroadcaster const &)*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -32725,7 +33057,7 @@ static int _wrap_SBListener_WaitForEvent(lua_State* L) {
SWIG_fail_ptr("SBListener_WaitForEvent",1,SWIGTYPE_p_lldb__SBListener);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBEvent,0))){
SWIG_fail_ptr("SBListener_WaitForEvent",3,SWIGTYPE_p_lldb__SBEvent);
@@ -32761,7 +33093,7 @@ static int _wrap_SBListener_WaitForEventForBroadcaster(lua_State* L) {
SWIG_fail_ptr("SBListener_WaitForEventForBroadcaster",1,SWIGTYPE_p_lldb__SBListener);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBBroadcaster,0))){
SWIG_fail_ptr("SBListener_WaitForEventForBroadcaster",3,SWIGTYPE_p_lldb__SBBroadcaster);
@@ -32804,13 +33136,13 @@ static int _wrap_SBListener_WaitForEventForBroadcasterWithType(lua_State* L) {
SWIG_fail_ptr("SBListener_WaitForEventForBroadcasterWithType",1,SWIGTYPE_p_lldb__SBListener);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBBroadcaster,0))){
SWIG_fail_ptr("SBListener_WaitForEventForBroadcasterWithType",3,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg4 = (unsigned int)lua_tointeger(L, 4);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__SBEvent,0))){
SWIG_fail_ptr("SBListener_WaitForEventForBroadcasterWithType",5,SWIGTYPE_p_lldb__SBEvent);
@@ -32920,7 +33252,7 @@ static int _wrap_SBListener_PeekAtNextEventForBroadcasterWithType(lua_State* L)
SWIG_fail_ptr("SBListener_PeekAtNextEventForBroadcasterWithType",2,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBEvent,0))){
SWIG_fail_ptr("SBListener_PeekAtNextEventForBroadcasterWithType",4,SWIGTYPE_p_lldb__SBEvent);
@@ -33030,7 +33362,7 @@ static int _wrap_SBListener_GetNextEventForBroadcasterWithType(lua_State* L) {
SWIG_fail_ptr("SBListener_GetNextEventForBroadcasterWithType",2,SWIGTYPE_p_lldb__SBBroadcaster);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBEvent,0))){
SWIG_fail_ptr("SBListener_GetNextEventForBroadcasterWithType",4,SWIGTYPE_p_lldb__SBEvent);
@@ -33184,10 +33516,45 @@ fail:
}
+static int _wrap_new_SBMemoryRegionInfo__SWIG_2(lua_State* L) {
+ int SWIG_arg = 0;
+ char *arg1 = (char *) 0 ;
+ lldb::addr_t arg2 ;
+ lldb::addr_t arg3 ;
+ uint32_t arg4 ;
+ bool arg5 ;
+ bool arg6 ;
+ lldb::SBMemoryRegionInfo *result = 0 ;
+
+ SWIG_check_num_args("lldb::SBMemoryRegionInfo::SBMemoryRegionInfo",6,6)
+ if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBMemoryRegionInfo::SBMemoryRegionInfo",1,"char const *");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBMemoryRegionInfo::SBMemoryRegionInfo",2,"lldb::addr_t");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBMemoryRegionInfo::SBMemoryRegionInfo",3,"lldb::addr_t");
+ if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBMemoryRegionInfo::SBMemoryRegionInfo",4,"uint32_t");
+ if(!lua_isboolean(L,5)) SWIG_fail_arg("lldb::SBMemoryRegionInfo::SBMemoryRegionInfo",5,"bool");
+ if(!lua_isboolean(L,6)) SWIG_fail_arg("lldb::SBMemoryRegionInfo::SBMemoryRegionInfo",6,"bool");
+ arg1 = (char *)lua_tostring(L, 1);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
+ arg5 = (lua_toboolean(L, 5)!=0);
+ arg6 = (lua_toboolean(L, 6)!=0);
+ result = (lldb::SBMemoryRegionInfo *)new lldb::SBMemoryRegionInfo((char const *)arg1,arg2,arg3,arg4,arg5,arg6);
+ SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBMemoryRegionInfo,1); SWIG_arg++;
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_new_SBMemoryRegionInfo(lua_State* L) {
int argc;
- int argv[2]={
- 1,2
+ int argv[7]={
+ 1,2,3,4,5,6,7
};
argc = lua_gettop(L);
@@ -33208,11 +33575,46 @@ static int _wrap_new_SBMemoryRegionInfo(lua_State* L) {
return _wrap_new_SBMemoryRegionInfo__SWIG_1(L);
}
}
+ if (argc == 6) {
+ int _v;
+ {
+ _v = SWIG_lua_isnilstring(L,argv[0]);
+ }
+ if (_v) {
+ {
+ _v = lua_isnumber(L,argv[1]);
+ }
+ if (_v) {
+ {
+ _v = lua_isnumber(L,argv[2]);
+ }
+ if (_v) {
+ {
+ _v = lua_isnumber(L,argv[3]);
+ }
+ if (_v) {
+ {
+ _v = lua_isboolean(L,argv[4]);
+ }
+ if (_v) {
+ {
+ _v = lua_isboolean(L,argv[5]);
+ }
+ if (_v) {
+ return _wrap_new_SBMemoryRegionInfo__SWIG_2(L);
+ }
+ }
+ }
+ }
+ }
+ }
+ }
SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_SBMemoryRegionInfo'\n"
" Possible C/C++ prototypes are:\n"
" lldb::SBMemoryRegionInfo::SBMemoryRegionInfo()\n"
- " lldb::SBMemoryRegionInfo::SBMemoryRegionInfo(lldb::SBMemoryRegionInfo const &)\n");
+ " lldb::SBMemoryRegionInfo::SBMemoryRegionInfo(lldb::SBMemoryRegionInfo const &)\n"
+ " lldb::SBMemoryRegionInfo::SBMemoryRegionInfo(char const *,lldb::addr_t,lldb::addr_t,uint32_t,bool,bool)\n");
lua_error(L);return 0;
}
@@ -33470,7 +33872,7 @@ static int _wrap_SBMemoryRegionInfo_GetDirtyPageAddressAtIndex(lua_State* L) {
SWIG_fail_ptr("SBMemoryRegionInfo_GetDirtyPageAddressAtIndex",1,SWIGTYPE_p_lldb__SBMemoryRegionInfo);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (lldb::addr_t)(arg1)->GetDirtyPageAddressAtIndex(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -33755,6 +34157,40 @@ fail:
}
+static int _wrap_SBMemoryRegionInfoList_GetMemoryRegionContainingAddress(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBMemoryRegionInfoList *arg1 = (lldb::SBMemoryRegionInfoList *) 0 ;
+ lldb::addr_t arg2 ;
+ lldb::SBMemoryRegionInfo *arg3 = 0 ;
+ bool result;
+
+ SWIG_check_num_args("lldb::SBMemoryRegionInfoList::GetMemoryRegionContainingAddress",3,3)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBMemoryRegionInfoList::GetMemoryRegionContainingAddress",1,"lldb::SBMemoryRegionInfoList *");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBMemoryRegionInfoList::GetMemoryRegionContainingAddress",2,"lldb::addr_t");
+ if(!lua_isuserdata(L,3)) SWIG_fail_arg("lldb::SBMemoryRegionInfoList::GetMemoryRegionContainingAddress",3,"lldb::SBMemoryRegionInfo &");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBMemoryRegionInfoList,0))){
+ SWIG_fail_ptr("SBMemoryRegionInfoList_GetMemoryRegionContainingAddress",1,SWIGTYPE_p_lldb__SBMemoryRegionInfoList);
+ }
+
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBMemoryRegionInfo,0))){
+ SWIG_fail_ptr("SBMemoryRegionInfoList_GetMemoryRegionContainingAddress",3,SWIGTYPE_p_lldb__SBMemoryRegionInfo);
+ }
+
+ result = (bool)(arg1)->GetMemoryRegionContainingAddress(arg2,*arg3);
+ lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_SBMemoryRegionInfoList_GetMemoryRegionAtIndex(lua_State* L) {
int SWIG_arg = 0;
lldb::SBMemoryRegionInfoList *arg1 = (lldb::SBMemoryRegionInfoList *) 0 ;
@@ -33771,7 +34207,7 @@ static int _wrap_SBMemoryRegionInfoList_GetMemoryRegionAtIndex(lua_State* L) {
SWIG_fail_ptr("SBMemoryRegionInfoList_GetMemoryRegionAtIndex",1,SWIGTYPE_p_lldb__SBMemoryRegionInfoList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBMemoryRegionInfo,0))){
SWIG_fail_ptr("SBMemoryRegionInfoList_GetMemoryRegionAtIndex",3,SWIGTYPE_p_lldb__SBMemoryRegionInfo);
@@ -33953,6 +34389,7 @@ static swig_lua_attribute swig_SBMemoryRegionInfoList_attributes[] = {
};
static swig_lua_method swig_SBMemoryRegionInfoList_methods[]= {
{ "GetSize", _wrap_SBMemoryRegionInfoList_GetSize},
+ { "GetMemoryRegionContainingAddress", _wrap_SBMemoryRegionInfoList_GetMemoryRegionContainingAddress},
{ "GetMemoryRegionAtIndex", _wrap_SBMemoryRegionInfoList_GetMemoryRegionAtIndex},
{ "Append", _wrap_SBMemoryRegionInfoList_Append},
{ "Clear", _wrap_SBMemoryRegionInfoList_Clear},
@@ -34066,7 +34503,7 @@ static int _wrap_new_SBModule__SWIG_3(lua_State* L) {
SWIG_fail_ptr("new_SBModule",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (lldb::SBModule *)new lldb::SBModule(*arg1,arg2);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBModule,1); SWIG_arg++;
return SWIG_arg;
@@ -34436,7 +34873,7 @@ static int _wrap_SBModule_ResolveFileAddress(lua_State* L) {
SWIG_fail_ptr("SBModule_ResolveFileAddress",1,SWIGTYPE_p_lldb__SBModule);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (arg1)->ResolveFileAddress(arg2);
{
lldb::SBAddress * resultptr = new lldb::SBAddress((const lldb::SBAddress &) result);
@@ -34473,7 +34910,7 @@ static int _wrap_SBModule_ResolveSymbolContextForAddress(lua_State* L) {
SWIG_fail_ptr("SBModule_ResolveSymbolContextForAddress",2,SWIGTYPE_p_lldb__SBAddress);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->ResolveSymbolContextForAddress((lldb::SBAddress const &)*arg2,arg3);
{
lldb::SBSymbolContext * resultptr = new lldb::SBSymbolContext((const lldb::SBSymbolContext &) result);
@@ -34558,7 +34995,7 @@ static int _wrap_SBModule_GetCompileUnitAtIndex(lua_State* L) {
SWIG_fail_ptr("SBModule_GetCompileUnitAtIndex",1,SWIGTYPE_p_lldb__SBModule);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetCompileUnitAtIndex(arg2);
{
lldb::SBCompileUnit * resultptr = new lldb::SBCompileUnit((const lldb::SBCompileUnit &) result);
@@ -34646,7 +35083,7 @@ static int _wrap_SBModule_GetSymbolAtIndex(lua_State* L) {
SWIG_fail_ptr("SBModule_GetSymbolAtIndex",1,SWIGTYPE_p_lldb__SBModule);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (arg1)->GetSymbolAtIndex(arg2);
{
lldb::SBSymbol * resultptr = new lldb::SBSymbol((const lldb::SBSymbol &) result);
@@ -34672,14 +35109,14 @@ static int _wrap_SBModule_FindSymbol__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBModule::FindSymbol",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBModule::FindSymbol",1,"lldb::SBModule *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBModule::FindSymbol",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBModule::FindSymbol",3,"lldb::SymbolType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBModule::FindSymbol",3,"lldb::SymbolType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBModule,0))){
SWIG_fail_ptr("SBModule_FindSymbol",1,SWIGTYPE_p_lldb__SBModule);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::SymbolType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::SymbolType)lua_tointeger(L, 3);
result = (arg1)->FindSymbol((char const *)arg2,arg3);
{
lldb::SBSymbol * resultptr = new lldb::SBSymbol((const lldb::SBSymbol &) result);
@@ -34794,14 +35231,14 @@ static int _wrap_SBModule_FindSymbols__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBModule::FindSymbols",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBModule::FindSymbols",1,"lldb::SBModule *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBModule::FindSymbols",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBModule::FindSymbols",3,"lldb::SymbolType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBModule::FindSymbols",3,"lldb::SymbolType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBModule,0))){
SWIG_fail_ptr("SBModule_FindSymbols",1,SWIGTYPE_p_lldb__SBModule);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::SymbolType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::SymbolType)lua_tointeger(L, 3);
result = (arg1)->FindSymbols((char const *)arg2,arg3);
{
lldb::SBSymbolContextList * resultptr = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &) result);
@@ -34944,7 +35381,7 @@ static int _wrap_SBModule_GetSectionAtIndex(lua_State* L) {
SWIG_fail_ptr("SBModule_GetSectionAtIndex",1,SWIGTYPE_p_lldb__SBModule);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (arg1)->GetSectionAtIndex(arg2);
{
lldb::SBSection * resultptr = new lldb::SBSection((const lldb::SBSection &) result);
@@ -34977,7 +35414,7 @@ static int _wrap_SBModule_FindFunctions__SWIG_0(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->FindFunctions((char const *)arg2,arg3);
{
lldb::SBSymbolContextList * resultptr = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &) result);
@@ -35156,7 +35593,7 @@ static int _wrap_SBModule_GetTypeByID(lua_State* L) {
SWIG_fail_ptr("SBModule_GetTypeByID",1,SWIGTYPE_p_lldb__SBModule);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::user_id_t)lua_tointeger(L, 2);
result = (arg1)->GetTypeByID(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -35180,13 +35617,13 @@ static int _wrap_SBModule_GetBasicType(lua_State* L) {
SWIG_check_num_args("lldb::SBModule::GetBasicType",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBModule::GetBasicType",1,"lldb::SBModule *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBModule::GetBasicType",2,"lldb::BasicType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBModule::GetBasicType",2,"lldb::BasicType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBModule,0))){
SWIG_fail_ptr("SBModule_GetBasicType",1,SWIGTYPE_p_lldb__SBModule);
}
- arg2 = (lldb::BasicType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::BasicType)lua_tointeger(L, 2);
result = (arg1)->GetBasicType(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -35216,7 +35653,7 @@ static int _wrap_SBModule_GetTypes__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBModule_GetTypes",1,SWIGTYPE_p_lldb__SBModule);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypes(arg2);
{
lldb::SBTypeList * resultptr = new lldb::SBTypeList((const lldb::SBTypeList &) result);
@@ -35332,7 +35769,7 @@ static int _wrap_SBModule_FindGlobalVariables(lua_State* L) {
}
arg3 = (char *)lua_tostring(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
result = (arg1)->FindGlobalVariables(*arg2,(char const *)arg3,arg4);
{
lldb::SBValueList * resultptr = new lldb::SBValueList((const lldb::SBValueList &) result);
@@ -35398,7 +35835,7 @@ static int _wrap_SBModule_GetByteOrder(lua_State* L) {
}
result = (lldb::ByteOrder)(arg1)->GetByteOrder();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -35464,23 +35901,32 @@ static int _wrap_SBModule_GetVersion(lua_State* L) {
uint32_t arg3 ;
uint32_t result;
- SWIG_check_num_args("lldb::SBModule::GetVersion",3,3)
+ SWIG_check_num_args("lldb::SBModule::GetVersion",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBModule::GetVersion",1,"lldb::SBModule *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBModule::GetVersion",2,"uint32_t *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBModule::GetVersion",3,"uint32_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBModule,0))){
SWIG_fail_ptr("SBModule_GetVersion",1,SWIGTYPE_p_lldb__SBModule);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_unsigned_int,0))){
- SWIG_fail_ptr("SBModule_GetVersion",2,SWIGTYPE_p_unsigned_int);
+ {
+ arg3 = 99;
+ arg2 = (uint32_t *)malloc(sizeof(uint32_t) * arg3);
}
-
- arg3 = (unsigned int)lua_tointeger(L, 3);
result = (uint32_t)(arg1)->GetVersion(arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
+ {
+ uint32_t count = result;
+ if (count >= arg3)
+ count = arg3;
+ lua_newtable(L);
+ int i = 0;
+ while (i++ < count) {
+ lua_pushinteger(L, arg2[i - 1]);
+ lua_seti(L, -2, i);
+ }
+ SWIG_arg++;
+ free(arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
@@ -36179,7 +36625,7 @@ static int _wrap_SBModuleSpec_SetUUIDBytes(lua_State* L) {
SWIG_fail_ptr("SBModuleSpec_SetUUIDBytes",2,SWIGTYPE_p_unsigned_char);
}
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ arg3 = (size_t)lua_tointeger(L, 3);
result = (bool)(arg1)->SetUUIDBytes((uint8_t const *)arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -36639,7 +37085,7 @@ static int _wrap_SBModuleSpecList_GetSpecAtIndex(lua_State* L) {
SWIG_fail_ptr("SBModuleSpecList_GetSpecAtIndex",1,SWIGTYPE_p_lldb__SBModuleSpecList);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (arg1)->GetSpecAtIndex(arg2);
{
lldb::SBModuleSpec * resultptr = new lldb::SBModuleSpec((const lldb::SBModuleSpec &) result);
@@ -37413,7 +37859,7 @@ static int _wrap_SBPlatformShellCommand_SetTimeoutSeconds(lua_State* L) {
SWIG_fail_ptr("SBPlatformShellCommand_SetTimeoutSeconds",1,SWIGTYPE_p_lldb__SBPlatformShellCommand);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetTimeoutSeconds(arg2);
return SWIG_arg;
@@ -38218,7 +38664,7 @@ static int _wrap_SBPlatform_Kill(lua_State* L) {
SWIG_fail_ptr("SBPlatform_Kill",1,SWIGTYPE_p_lldb__SBPlatform);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::pid_t const)lua_tointeger(L, 2);
result = (arg1)->Kill(arg2);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -38251,7 +38697,7 @@ static int _wrap_SBPlatform_MakeDirectory__SWIG_0(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->MakeDirectory((char const *)arg2,arg3);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -38400,7 +38846,7 @@ static int _wrap_SBPlatform_SetFilePermissions(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->SetFilePermissions((char const *)arg2,arg3);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -38770,7 +39216,7 @@ static int _wrap_SBProcess_GetByteOrder(lua_State* L) {
}
result = (lldb::ByteOrder)((lldb::SBProcess const *)arg1)->GetByteOrder();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -38788,17 +39234,16 @@ static int _wrap_SBProcess_PutSTDIN(lua_State* L) {
size_t arg3 ;
size_t result;
- SWIG_check_num_args("lldb::SBProcess::PutSTDIN",3,3)
+ SWIG_check_num_args("lldb::SBProcess::PutSTDIN",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBProcess::PutSTDIN",1,"lldb::SBProcess *");
- if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBProcess::PutSTDIN",2,"char const *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBProcess::PutSTDIN",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBProcess,0))){
SWIG_fail_ptr("SBProcess_PutSTDIN",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ {
+ arg2 = (char *)luaL_checklstring(L, 2, &arg3);
+ }
result = (arg1)->PutSTDIN((char const *)arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -38984,12 +39429,10 @@ static int _wrap_SBProcess_ReportEventState__SWIG_1(lua_State* L) {
lldb::SBProcess *arg1 = (lldb::SBProcess *) 0 ;
lldb::SBEvent *arg2 = 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg3 ;
- lldb::FileSP *argp3 ;
SWIG_check_num_args("lldb::SBProcess::ReportEventState",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBProcess::ReportEventState",1,"lldb::SBProcess const *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBProcess::ReportEventState",2,"lldb::SBEvent const &");
- if(!lua_isuserdata(L,3)) SWIG_fail_arg("lldb::SBProcess::ReportEventState",3,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBProcess,0))){
SWIG_fail_ptr("SBProcess_ReportEventState",1,SWIGTYPE_p_lldb__SBProcess);
@@ -39000,12 +39443,14 @@ static int _wrap_SBProcess_ReportEventState__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBProcess_ReportEventState",2,SWIGTYPE_p_lldb__SBEvent);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&argp3,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBProcess_ReportEventState",3,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 3, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg3 = file_sp;
}
- arg3 = *argp3;
-
((lldb::SBProcess const *)arg1)->ReportEventState((lldb::SBEvent const &)*arg2,arg3);
return SWIG_arg;
@@ -39080,12 +39525,8 @@ static int _wrap_SBProcess_ReportEventState(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[2])) &&
+ (luaL_testudata(L, argv[2], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBProcess_ReportEventState__SWIG_1(L);
@@ -39155,7 +39596,7 @@ static int _wrap_SBProcess_RemoteAttachToProcessWithID(lua_State* L) {
SWIG_fail_ptr("SBProcess_RemoteAttachToProcessWithID",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::pid_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBProcess_RemoteAttachToProcessWithID",3,SWIGTYPE_p_lldb__SBError);
@@ -39189,8 +39630,6 @@ static int _wrap_SBProcess_RemoteLaunch(lua_State* L) {
SWIG_check_num_args("lldb::SBProcess::RemoteLaunch",10,10)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBProcess::RemoteLaunch",1,"lldb::SBProcess *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBProcess::RemoteLaunch",2,"char const **");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBProcess::RemoteLaunch",3,"char const **");
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("lldb::SBProcess::RemoteLaunch",4,"char const *");
if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("lldb::SBProcess::RemoteLaunch",5,"char const *");
if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("lldb::SBProcess::RemoteLaunch",6,"char const *");
@@ -39203,21 +39642,57 @@ static int _wrap_SBProcess_RemoteLaunch(lua_State* L) {
SWIG_fail_ptr("SBProcess_RemoteLaunch",1,SWIGTYPE_p_lldb__SBProcess);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBProcess_RemoteLaunch",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBProcess_RemoteLaunch",3,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 3)) {
+ size_t size = lua_rawlen(L, 3);
+ arg3 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg3[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg3[j] = 0;
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
arg4 = (char *)lua_tostring(L, 4);
arg5 = (char *)lua_tostring(L, 5);
arg6 = (char *)lua_tostring(L, 6);
arg7 = (char *)lua_tostring(L, 7);
- arg8 = (unsigned int)lua_tointeger(L, 8);
+ arg8 = (uint32_t)lua_tointeger(L, 8);
arg9 = (lua_toboolean(L, 9)!=0);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,10,(void**)&arg10,SWIGTYPE_p_lldb__SBError,0))){
@@ -39226,11 +39701,23 @@ static int _wrap_SBProcess_RemoteLaunch(lua_State* L) {
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);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
+ {
+ free((char *) arg2);
+ }
+ {
+ free((char *) arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
+ {
+ free((char *) arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -39274,7 +39761,7 @@ static int _wrap_SBProcess_GetThreadAtIndex(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetThreadAtIndex",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (arg1)->GetThreadAtIndex(arg2);
{
lldb::SBThread * resultptr = new lldb::SBThread((const lldb::SBThread &) result);
@@ -39304,7 +39791,7 @@ static int _wrap_SBProcess_GetThreadByID(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetThreadByID",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::tid_t)lua_tointeger(L, 2);
result = (arg1)->GetThreadByID(arg2);
{
lldb::SBThread * resultptr = new lldb::SBThread((const lldb::SBThread &) result);
@@ -39334,7 +39821,7 @@ static int _wrap_SBProcess_GetThreadByIndexID(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetThreadByIndexID",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetThreadByIndexID(arg2);
{
lldb::SBThread * resultptr = new lldb::SBThread((const lldb::SBThread &) result);
@@ -39393,8 +39880,8 @@ static int _wrap_SBProcess_CreateOSPluginThread(lua_State* L) {
SWIG_fail_ptr("SBProcess_CreateOSPluginThread",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg2 = (lldb::tid_t)lua_tointeger(L, 2);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
result = (arg1)->CreateOSPluginThread(arg2,arg3);
{
lldb::SBThread * resultptr = new lldb::SBThread((const lldb::SBThread &) result);
@@ -39455,7 +39942,7 @@ static int _wrap_SBProcess_SetSelectedThreadByID(lua_State* L) {
SWIG_fail_ptr("SBProcess_SetSelectedThreadByID",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::tid_t)lua_tointeger(L, 2);
result = (bool)(arg1)->SetSelectedThreadByID(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -39482,7 +39969,7 @@ static int _wrap_SBProcess_SetSelectedThreadByIndexID(lua_State* L) {
SWIG_fail_ptr("SBProcess_SetSelectedThreadByIndexID",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (bool)(arg1)->SetSelectedThreadByIndexID(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -39533,7 +40020,7 @@ static int _wrap_SBProcess_GetQueueAtIndex(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetQueueAtIndex",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetQueueAtIndex(arg2);
{
lldb::SBQueue * resultptr = new lldb::SBQueue((const lldb::SBQueue &) result);
@@ -39562,7 +40049,7 @@ static int _wrap_SBProcess_GetState(lua_State* L) {
}
result = (lldb::StateType)(arg1)->GetState();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -39842,7 +40329,7 @@ static int _wrap_SBProcess_Signal(lua_State* L) {
SWIG_fail_ptr("SBProcess_Signal",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int)lua_tointeger(L, 2);
result = (arg1)->Signal(arg2);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -40017,27 +40504,40 @@ static int _wrap_SBProcess_ReadMemory(lua_State* L) {
lldb::SBError *arg5 = 0 ;
size_t result;
- SWIG_check_num_args("lldb::SBProcess::ReadMemory",5,5)
+ SWIG_check_num_args("lldb::SBProcess::ReadMemory",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBProcess::ReadMemory",1,"lldb::SBProcess *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBProcess::ReadMemory",2,"lldb::addr_t");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBProcess::ReadMemory",3,"void *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBProcess::ReadMemory",4,"size_t");
- if(!lua_isuserdata(L,5)) SWIG_fail_arg("lldb::SBProcess::ReadMemory",5,"lldb::SBError &");
+ if(!lua_isuserdata(L,4)) SWIG_fail_arg("lldb::SBProcess::ReadMemory",4,"lldb::SBError &");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBProcess,0))){
SWIG_fail_ptr("SBProcess_ReadMemory",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
- arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"SBProcess_ReadMemory");
- arg4 = (unsigned long)lua_tointeger(L, 4);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
+ {
+ arg4 = luaL_checkinteger(L, 3);
+ if (arg4 <= 0) {
+ return luaL_error(L, "Positive integer expected");
+ }
+ arg3 = (char *) malloc(arg4);
+ }
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__SBError,0))){
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg5,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBProcess_ReadMemory",5,SWIGTYPE_p_lldb__SBError);
}
result = (arg1)->ReadMemory(arg2,arg3,arg4,*arg5);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
+ {
+ lua_pop(L, 1); // Blow away the previous result
+ if (result == 0) {
+ lua_pushliteral(L, "");
+ } else {
+ lua_pushlstring(L, (const char *)arg3, result);
+ }
+ free(arg3);
+ // SWIG_arg was already incremented
+ }
return SWIG_arg;
if(0) SWIG_fail;
@@ -40057,22 +40557,21 @@ static int _wrap_SBProcess_WriteMemory(lua_State* L) {
lldb::SBError *arg5 = 0 ;
size_t result;
- SWIG_check_num_args("lldb::SBProcess::WriteMemory",5,5)
+ SWIG_check_num_args("lldb::SBProcess::WriteMemory",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBProcess::WriteMemory",1,"lldb::SBProcess *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBProcess::WriteMemory",2,"lldb::addr_t");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBProcess::WriteMemory",3,"void const *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBProcess::WriteMemory",4,"size_t");
- if(!lua_isuserdata(L,5)) SWIG_fail_arg("lldb::SBProcess::WriteMemory",5,"lldb::SBError &");
+ if(!lua_isuserdata(L,4)) SWIG_fail_arg("lldb::SBProcess::WriteMemory",4,"lldb::SBError &");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBProcess,0))){
SWIG_fail_ptr("SBProcess_WriteMemory",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
- arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"SBProcess_WriteMemory");
- arg4 = (unsigned long)lua_tointeger(L, 4);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
+ {
+ arg3 = (void *)luaL_checklstring(L, 3, &arg4);
+ }
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__SBError,0))){
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg5,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBProcess_WriteMemory",5,SWIGTYPE_p_lldb__SBError);
}
@@ -40106,7 +40605,7 @@ static int _wrap_SBProcess_ReadCStringFromMemory(lua_State* L) {
SWIG_fail_ptr("SBProcess_ReadCStringFromMemory",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
{
arg4 = luaL_checkinteger(L, 3);
if (arg4 <= 0) {
@@ -40159,8 +40658,8 @@ static int _wrap_SBProcess_ReadUnsignedFromMemory(lua_State* L) {
SWIG_fail_ptr("SBProcess_ReadUnsignedFromMemory",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBProcess_ReadUnsignedFromMemory",4,SWIGTYPE_p_lldb__SBError);
@@ -40194,7 +40693,7 @@ static int _wrap_SBProcess_ReadPointerFromMemory(lua_State* L) {
SWIG_fail_ptr("SBProcess_ReadPointerFromMemory",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBProcess_ReadPointerFromMemory",3,SWIGTYPE_p_lldb__SBError);
@@ -40225,7 +40724,7 @@ static int _wrap_SBProcess_GetStateFromEvent(lua_State* L) {
}
result = (lldb::StateType)lldb::SBProcess::GetStateFromEvent((lldb::SBEvent const &)*arg1);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -40298,7 +40797,7 @@ static int _wrap_SBProcess_GetRestartedReasonAtIndexFromEvent(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetRestartedReasonAtIndexFromEvent",1,SWIGTYPE_p_lldb__SBEvent);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (char *)lldb::SBProcess::GetRestartedReasonAtIndexFromEvent((lldb::SBEvent const &)*arg1,arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -40657,7 +41156,7 @@ static int _wrap_SBProcess_UnloadImage(lua_State* L) {
SWIG_fail_ptr("SBProcess_UnloadImage",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->UnloadImage(arg2);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -40741,7 +41240,7 @@ static int _wrap_SBProcess_GetExtendedBacktraceTypeAtIndex(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetExtendedBacktraceTypeAtIndex",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetExtendedBacktraceTypeAtIndex(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -40768,7 +41267,7 @@ static int _wrap_SBProcess_GetHistoryThreads(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetHistoryThreads",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (arg1)->GetHistoryThreads(arg2);
{
lldb::SBThreadCollection * resultptr = new lldb::SBThreadCollection((const lldb::SBThreadCollection &) result);
@@ -40792,13 +41291,13 @@ static int _wrap_SBProcess_IsInstrumentationRuntimePresent(lua_State* L) {
SWIG_check_num_args("lldb::SBProcess::IsInstrumentationRuntimePresent",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBProcess::IsInstrumentationRuntimePresent",1,"lldb::SBProcess *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBProcess::IsInstrumentationRuntimePresent",2,"lldb::InstrumentationRuntimeType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBProcess::IsInstrumentationRuntimePresent",2,"lldb::InstrumentationRuntimeType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBProcess,0))){
SWIG_fail_ptr("SBProcess_IsInstrumentationRuntimePresent",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (lldb::InstrumentationRuntimeType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::InstrumentationRuntimeType)lua_tointeger(L, 2);
result = (bool)(arg1)->IsInstrumentationRuntimePresent(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -40857,7 +41356,7 @@ static int _wrap_SBProcess_GetMemoryRegionInfo(lua_State* L) {
SWIG_fail_ptr("SBProcess_GetMemoryRegionInfo",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBMemoryRegionInfo,0))){
SWIG_fail_ptr("SBProcess_GetMemoryRegionInfo",3,SWIGTYPE_p_lldb__SBMemoryRegionInfo);
@@ -40950,8 +41449,8 @@ static int _wrap_SBProcess_AllocateMemory(lua_State* L) {
SWIG_fail_ptr("SBProcess_AllocateMemory",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg2 = (size_t)lua_tointeger(L, 2);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBProcess_AllocateMemory",4,SWIGTYPE_p_lldb__SBError);
@@ -40983,7 +41482,7 @@ static int _wrap_SBProcess_DeallocateMemory(lua_State* L) {
SWIG_fail_ptr("SBProcess_DeallocateMemory",1,SWIGTYPE_p_lldb__SBProcess);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (arg1)->DeallocateMemory(arg2);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -41834,7 +42333,7 @@ static int _wrap_SBQueue_GetKind(lua_State* L) {
}
result = (lldb::QueueKind)(arg1)->GetKind();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -41907,7 +42406,7 @@ static int _wrap_SBQueue_GetThreadAtIndex(lua_State* L) {
SWIG_fail_ptr("SBQueue_GetThreadAtIndex",1,SWIGTYPE_p_lldb__SBQueue);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetThreadAtIndex(arg2);
{
lldb::SBThread * resultptr = new lldb::SBThread((const lldb::SBThread &) result);
@@ -41961,7 +42460,7 @@ static int _wrap_SBQueue_GetPendingItemAtIndex(lua_State* L) {
SWIG_fail_ptr("SBQueue_GetPendingItemAtIndex",1,SWIGTYPE_p_lldb__SBQueue);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetPendingItemAtIndex(arg2);
{
lldb::SBQueueItem * resultptr = new lldb::SBQueueItem((const lldb::SBQueueItem &) result);
@@ -42194,7 +42693,7 @@ static int _wrap_SBQueueItem_GetKind(lua_State* L) {
}
result = (lldb::QueueItemKind)((lldb::SBQueueItem const *)arg1)->GetKind();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -42212,13 +42711,13 @@ static int _wrap_SBQueueItem_SetKind(lua_State* L) {
SWIG_check_num_args("lldb::SBQueueItem::SetKind",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBQueueItem::SetKind",1,"lldb::SBQueueItem *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBQueueItem::SetKind",2,"lldb::QueueItemKind");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBQueueItem::SetKind",2,"lldb::QueueItemKind");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBQueueItem,0))){
SWIG_fail_ptr("SBQueueItem_SetKind",1,SWIGTYPE_p_lldb__SBQueueItem);
}
- arg2 = (lldb::QueueItemKind)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::QueueItemKind)lua_tointeger(L, 2);
(arg1)->SetKind(arg2);
return SWIG_arg;
@@ -42769,7 +43268,7 @@ static int _wrap_SBSection_GetSubSectionAtIndex(lua_State* L) {
SWIG_fail_ptr("SBSection_GetSubSectionAtIndex",1,SWIGTYPE_p_lldb__SBSection);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (arg1)->GetSubSectionAtIndex(arg2);
{
lldb::SBSection * resultptr = new lldb::SBSection((const lldb::SBSection &) result);
@@ -42955,8 +43454,8 @@ static int _wrap_SBSection_GetSectionData__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBSection_GetSectionData",1,SWIGTYPE_p_lldb__SBSection);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg2 = (uint64_t)lua_tointeger(L, 2);
+ arg3 = (uint64_t)lua_tointeger(L, 3);
result = (arg1)->GetSectionData(arg2,arg3);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
@@ -43039,7 +43538,7 @@ static int _wrap_SBSection_GetSectionType(lua_State* L) {
}
result = (lldb::SectionType)(arg1)->GetSectionType();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -43304,9 +43803,9 @@ static int _wrap_SBSourceManager_DisplaySourceLinesWithLineNumbers(lua_State* L)
SWIG_fail_ptr("SBSourceManager_DisplaySourceLinesWithLineNumbers",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
- arg5 = (unsigned int)lua_tointeger(L, 5);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
+ arg5 = (uint32_t)lua_tointeger(L, 5);
arg6 = (char *)lua_tostring(L, 6);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,7,(void**)&arg7,SWIGTYPE_p_lldb__SBStream,0))){
@@ -43356,10 +43855,10 @@ static int _wrap_SBSourceManager_DisplaySourceLinesWithLineNumbersAndColumn(lua_
SWIG_fail_ptr("SBSourceManager_DisplaySourceLinesWithLineNumbersAndColumn",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
- arg5 = (unsigned int)lua_tointeger(L, 5);
- arg6 = (unsigned int)lua_tointeger(L, 6);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
+ arg5 = (uint32_t)lua_tointeger(L, 5);
+ arg6 = (uint32_t)lua_tointeger(L, 6);
arg7 = (char *)lua_tostring(L, 7);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,8,(void**)&arg8,SWIGTYPE_p_lldb__SBStream,0))){
@@ -43607,22 +44106,22 @@ static int _wrap_SBStream_RedirectToFile__SWIG_2(lua_State* L) {
int SWIG_arg = 0;
lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBStream::RedirectToFile",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBStream::RedirectToFile",1,"lldb::SBStream *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBStream::RedirectToFile",2,"lldb::FileSP");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBStream,0))){
SWIG_fail_ptr("SBStream_RedirectToFile",1,SWIGTYPE_p_lldb__SBStream);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBStream_RedirectToFile",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
(arg1)->RedirectToFile(arg2);
return SWIG_arg;
@@ -43678,12 +44177,8 @@ static int _wrap_SBStream_RedirectToFile(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t, SWIG_POINTER_NO_NULL)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_isuserdata(L, argv[1])) &&
+ (luaL_testudata(L, argv[1], LUA_FILEHANDLE) != nullptr);
}
if (_v) {
return _wrap_SBStream_RedirectToFile__SWIG_2(L);
@@ -43729,23 +44224,23 @@ static int _wrap_SBStream_RedirectToFileHandle(lua_State* L) {
lldb::SBStream *arg1 = (lldb::SBStream *) 0 ;
SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
bool arg3 ;
- lldb::FileSP *argp2 ;
SWIG_check_num_args("lldb::SBStream::RedirectToFileHandle",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBStream::RedirectToFileHandle",1,"lldb::SBStream *");
- if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBStream::RedirectToFileHandle",2,"lldb::FileSP");
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBStream::RedirectToFileHandle",3,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBStream,0))){
SWIG_fail_ptr("SBStream_RedirectToFileHandle",1,SWIGTYPE_p_lldb__SBStream);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t,0))){
- SWIG_fail_ptr("SBStream_RedirectToFileHandle",2,SWIGTYPE_p_std__shared_ptrT_lldb_private__File_t);
+ {
+ luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, 2, LUA_FILEHANDLE);
+ lldb::FileSP file_sp;
+ file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
+ if (!file_sp->IsValid())
+ return luaL_error(L, "Invalid file");
+ arg2 = file_sp;
}
- arg2 = *argp2;
-
arg3 = (lua_toboolean(L, 3)!=0);
lldb_SBStream_RedirectToFileHandle(arg1,arg2,arg3);
@@ -43774,7 +44269,7 @@ static int _wrap_SBStream_RedirectToFileDescriptor(lua_State* L) {
SWIG_fail_ptr("SBStream_RedirectToFileDescriptor",1,SWIGTYPE_p_lldb__SBStream);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
(arg1)->RedirectToFileDescriptor(arg2,arg3);
@@ -43998,26 +44493,49 @@ static int _wrap_SBStringList_AppendList__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBStringList::AppendList",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBStringList::AppendList",1,"lldb::SBStringList *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBStringList::AppendList",2,"char const **");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBStringList::AppendList",3,"int");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBStringList,0))){
SWIG_fail_ptr("SBStringList_AppendList",1,SWIGTYPE_p_lldb__SBStringList);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBStringList_AppendList",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
- arg3 = (signed int)lua_tointeger(L, 3);
+ arg3 = (int)lua_tointeger(L, 3);
(arg1)->AppendList((char const **)arg2,arg3);
+ {
+ free((char *) arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -44096,12 +44614,7 @@ static int _wrap_SBStringList_AppendList(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_p_char, 0)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_istable(L, argv[1]) || lua_isnil(L, argv[1]));
}
if (_v) {
{
@@ -44160,7 +44673,7 @@ static int _wrap_SBStringList_GetStringAtIndex(lua_State* L) {
SWIG_fail_ptr("SBStringList_GetStringAtIndex",1,SWIGTYPE_p_lldb__SBStringList);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetStringAtIndex(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -44422,7 +44935,7 @@ static int _wrap_SBStructuredData_GetType(lua_State* L) {
}
result = (lldb::StructuredDataType)((lldb::SBStructuredData const *)arg1)->GetType();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -44532,7 +45045,7 @@ static int _wrap_SBStructuredData_GetItemAtIndex(lua_State* L) {
SWIG_fail_ptr("SBStructuredData_GetItemAtIndex",1,SWIGTYPE_p_lldb__SBStructuredData);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = ((lldb::SBStructuredData const *)arg1)->GetItemAtIndex(arg2);
{
lldb::SBStructuredData * resultptr = new lldb::SBStructuredData((const lldb::SBStructuredData &) result);
@@ -44562,7 +45075,7 @@ static int _wrap_SBStructuredData_GetIntegerValue__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBStructuredData_GetIntegerValue",1,SWIGTYPE_p_lldb__SBStructuredData);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (uint64_t)lua_tointeger(L, 2);
result = (uint64_t)((lldb::SBStructuredData const *)arg1)->GetIntegerValue(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -45548,7 +46061,7 @@ static int _wrap_SBSymbol_GetType(lua_State* L) {
}
result = (lldb::SymbolType)(arg1)->GetType();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -46504,7 +47017,7 @@ static int _wrap_SBSymbolContextList_GetContextAtIndex(lua_State* L) {
SWIG_fail_ptr("SBSymbolContextList_GetContextAtIndex",1,SWIGTYPE_p_lldb__SBSymbolContextList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetContextAtIndex(arg2);
{
lldb::SBSymbolContext * resultptr = new lldb::SBSymbolContext((const lldb::SBSymbolContext &) result);
@@ -46976,7 +47489,7 @@ static int _wrap_SBTarget_GetModuleAtIndexFromEvent(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::GetModuleAtIndexFromEvent",2,2)
if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBTarget::GetModuleAtIndexFromEvent",1,"uint32_t const");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTarget::GetModuleAtIndexFromEvent",2,"lldb::SBEvent const &");
- arg1 = (unsigned int)lua_tointeger(L, 1);
+ arg1 = (uint32_t const)lua_tointeger(L, 1);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_lldb__SBEvent,0))){
SWIG_fail_ptr("SBTarget_GetModuleAtIndexFromEvent",2,SWIGTYPE_p_lldb__SBEvent);
@@ -47096,8 +47609,6 @@ static int _wrap_SBTarget_Launch__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::Launch",11,11)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::Launch",1,"lldb::SBTarget *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTarget::Launch",2,"lldb::SBListener &");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBTarget::Launch",3,"char const **");
- if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("lldb::SBTarget::Launch",4,"char const **");
if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("lldb::SBTarget::Launch",5,"char const *");
if(!SWIG_lua_isnilstring(L,6)) SWIG_fail_arg("lldb::SBTarget::Launch",6,"char const *");
if(!SWIG_lua_isnilstring(L,7)) SWIG_fail_arg("lldb::SBTarget::Launch",7,"char const *");
@@ -47115,21 +47626,57 @@ static int _wrap_SBTarget_Launch__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBTarget_Launch",2,SWIGTYPE_p_lldb__SBListener);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBTarget_Launch",3,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 3)) {
+ size_t size = lua_rawlen(L, 3);
+ arg3 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg3[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg3[j] = 0;
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBTarget_Launch",4,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 4)) {
+ size_t size = lua_rawlen(L, 4);
+ arg4 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 4, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg4[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg4[j] = 0;
+ } else if (lua_isnil(L, 4)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg4 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
arg5 = (char *)lua_tostring(L, 5);
arg6 = (char *)lua_tostring(L, 6);
arg7 = (char *)lua_tostring(L, 7);
arg8 = (char *)lua_tostring(L, 8);
- arg9 = (unsigned int)lua_tointeger(L, 9);
+ arg9 = (uint32_t)lua_tointeger(L, 9);
arg10 = (lua_toboolean(L, 10)!=0);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,11,(void**)&arg11,SWIGTYPE_p_lldb__SBError,0))){
@@ -47141,11 +47688,23 @@ static int _wrap_SBTarget_Launch__SWIG_0(lua_State* L) {
lldb::SBProcess * resultptr = new lldb::SBProcess((const lldb::SBProcess &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBProcess,1); SWIG_arg++;
}
+ {
+ free((char *) arg3);
+ }
+ {
+ free((char *) arg4);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg3);
+ }
+ {
+ free((char *) arg4);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -47161,35 +47720,81 @@ static int _wrap_SBTarget_LaunchSimple(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::LaunchSimple",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::LaunchSimple",1,"lldb::SBTarget *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBTarget::LaunchSimple",2,"char const **");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBTarget::LaunchSimple",3,"char const **");
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("lldb::SBTarget::LaunchSimple",4,"char const *");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_LaunchSimple",1,SWIGTYPE_p_lldb__SBTarget);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBTarget_LaunchSimple",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBTarget_LaunchSimple",3,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 3)) {
+ size_t size = lua_rawlen(L, 3);
+ arg3 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 3, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg3[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg3[j] = 0;
+ } else if (lua_isnil(L, 3)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg3 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
arg4 = (char *)lua_tostring(L, 4);
result = (arg1)->LaunchSimple((char const **)arg2,(char const **)arg3,(char const *)arg4);
{
lldb::SBProcess * resultptr = new lldb::SBProcess((const lldb::SBProcess &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBProcess,1); SWIG_arg++;
}
+ {
+ free((char *) arg2);
+ }
+ {
+ free((char *) arg3);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
+ {
+ free((char *) arg3);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -47298,21 +47903,11 @@ static int _wrap_SBTarget_Launch(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (SWIG_isptrtype(L,argv[2])==0 || SWIG_ConvertPtr(L,argv[2], (void **) &ptr, SWIGTYPE_p_p_char, 0)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_istable(L, argv[2]) || lua_isnil(L, argv[2]));
}
if (_v) {
{
- void *ptr;
- if (SWIG_isptrtype(L,argv[3])==0 || SWIG_ConvertPtr(L,argv[3], (void **) &ptr, SWIGTYPE_p_p_char, 0)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_istable(L, argv[3]) || lua_isnil(L, argv[3]));
}
if (_v) {
{
@@ -47565,7 +48160,7 @@ static int _wrap_SBTarget_AttachToProcessWithID(lua_State* L) {
SWIG_fail_ptr("SBTarget_AttachToProcessWithID",2,SWIGTYPE_p_lldb__SBListener);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::pid_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBTarget_AttachToProcessWithID",4,SWIGTYPE_p_lldb__SBError);
@@ -48050,7 +48645,7 @@ static int _wrap_SBTarget_GetModuleAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTarget_GetModuleAtIndex",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetModuleAtIndex(arg2);
{
lldb::SBModule * resultptr = new lldb::SBModule((const lldb::SBModule &) result);
@@ -48207,7 +48802,7 @@ static int _wrap_SBTarget_GetByteOrder(lua_State* L) {
}
result = (lldb::ByteOrder)(arg1)->GetByteOrder();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -48337,7 +48932,7 @@ static int _wrap_SBTarget_SetSectionLoadAddress(lua_State* L) {
}
arg2 = *argp2;
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
result = (arg1)->SetSectionLoadAddress(arg2,arg3);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -48412,7 +49007,7 @@ static int _wrap_SBTarget_SetModuleLoadAddress(lua_State* L) {
}
arg2 = *argp2;
- arg3 = (signed long long)lua_tointeger(L, 3);
+ arg3 = (int64_t)lua_tointeger(L, 3);
result = (arg1)->SetModuleLoadAddress(arg2,arg3);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -48481,7 +49076,7 @@ static int _wrap_SBTarget_FindFunctions__SWIG_0(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->FindFunctions((char const *)arg2,arg3);
{
lldb::SBSymbolContextList * resultptr = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &) result);
@@ -48654,13 +49249,13 @@ static int _wrap_SBTarget_GetBasicType(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::GetBasicType",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::GetBasicType",1,"lldb::SBTarget *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBTarget::GetBasicType",2,"lldb::BasicType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTarget::GetBasicType",2,"lldb::BasicType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_GetBasicType",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (lldb::BasicType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::BasicType)lua_tointeger(L, 2);
result = (arg1)->GetBasicType(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -48720,7 +49315,7 @@ static int _wrap_SBTarget_FindGlobalVariables__SWIG_0(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->FindGlobalVariables((char const *)arg2,arg3);
{
lldb::SBValueList * resultptr = new lldb::SBValueList((const lldb::SBValueList &) result);
@@ -48778,15 +49373,15 @@ static int _wrap_SBTarget_FindGlobalVariables__SWIG_1(lua_State* L) {
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::FindGlobalVariables",1,"lldb::SBTarget *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBTarget::FindGlobalVariables",2,"char const *");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::FindGlobalVariables",3,"uint32_t");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("lldb::SBTarget::FindGlobalVariables",4,"lldb::MatchType");
+ if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::FindGlobalVariables",4,"lldb::MatchType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_FindGlobalVariables",1,SWIGTYPE_p_lldb__SBTarget);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (lldb::MatchType)(int)lua_tonumber(L, 4);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (lldb::MatchType)lua_tointeger(L, 4);
result = (arg1)->FindGlobalVariables((char const *)arg2,arg3,arg4);
{
lldb::SBValueList * resultptr = new lldb::SBValueList((const lldb::SBValueList &) result);
@@ -48883,15 +49478,15 @@ static int _wrap_SBTarget_FindGlobalFunctions(lua_State* L) {
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::FindGlobalFunctions",1,"lldb::SBTarget *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBTarget::FindGlobalFunctions",2,"char const *");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::FindGlobalFunctions",3,"uint32_t");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("lldb::SBTarget::FindGlobalFunctions",4,"lldb::MatchType");
+ if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::FindGlobalFunctions",4,"lldb::MatchType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_FindGlobalFunctions",1,SWIGTYPE_p_lldb__SBTarget);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (lldb::MatchType)(int)lua_tonumber(L, 4);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (lldb::MatchType)lua_tointeger(L, 4);
result = (arg1)->FindGlobalFunctions((char const *)arg2,arg3,arg4);
{
lldb::SBSymbolContextList * resultptr = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &) result);
@@ -48944,7 +49539,7 @@ static int _wrap_SBTarget_ResolveFileAddress(lua_State* L) {
SWIG_fail_ptr("SBTarget_ResolveFileAddress",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (arg1)->ResolveFileAddress(arg2);
{
lldb::SBAddress * resultptr = new lldb::SBAddress((const lldb::SBAddress &) result);
@@ -48974,7 +49569,7 @@ static int _wrap_SBTarget_ResolveLoadAddress(lua_State* L) {
SWIG_fail_ptr("SBTarget_ResolveLoadAddress",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (arg1)->ResolveLoadAddress(arg2);
{
lldb::SBAddress * resultptr = new lldb::SBAddress((const lldb::SBAddress &) result);
@@ -49006,8 +49601,8 @@ static int _wrap_SBTarget_ResolvePastLoadAddress(lua_State* L) {
SWIG_fail_ptr("SBTarget_ResolvePastLoadAddress",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
result = (arg1)->ResolvePastLoadAddress(arg2,arg3);
{
lldb::SBAddress * resultptr = new lldb::SBAddress((const lldb::SBAddress &) result);
@@ -49044,7 +49639,7 @@ static int _wrap_SBTarget_ResolveSymbolContextForAddress(lua_State* L) {
SWIG_fail_ptr("SBTarget_ResolveSymbolContextForAddress",2,SWIGTYPE_p_lldb__SBAddress);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->ResolveSymbolContextForAddress((lldb::SBAddress const &)*arg2,arg3);
{
lldb::SBSymbolContext * resultptr = new lldb::SBSymbolContext((const lldb::SBSymbolContext &) result);
@@ -49070,12 +49665,10 @@ static int _wrap_SBTarget_ReadMemory(lua_State* L) {
lldb::SBAddress *argp2 ;
size_t result;
- SWIG_check_num_args("lldb::SBTarget::ReadMemory",5,5)
+ SWIG_check_num_args("lldb::SBTarget::ReadMemory",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::ReadMemory",1,"lldb::SBTarget *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTarget::ReadMemory",2,"lldb::SBAddress const");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBTarget::ReadMemory",3,"void *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::ReadMemory",4,"size_t");
- if(!lua_isuserdata(L,5)) SWIG_fail_arg("lldb::SBTarget::ReadMemory",5,"lldb::SBError &");
+ if(!lua_isuserdata(L,4)) SWIG_fail_arg("lldb::SBTarget::ReadMemory",4,"lldb::SBError &");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_ReadMemory",1,SWIGTYPE_p_lldb__SBTarget);
@@ -49087,15 +49680,30 @@ static int _wrap_SBTarget_ReadMemory(lua_State* L) {
}
arg2 = *argp2;
- arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"SBTarget_ReadMemory");
- arg4 = (unsigned long)lua_tointeger(L, 4);
+ {
+ arg4 = luaL_checkinteger(L, 3);
+ if (arg4 <= 0) {
+ return luaL_error(L, "Positive integer expected");
+ }
+ arg3 = (char *) malloc(arg4);
+ }
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__SBError,0))){
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg5,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBTarget_ReadMemory",5,SWIGTYPE_p_lldb__SBError);
}
result = (arg1)->ReadMemory(arg2,arg3,arg4,*arg5);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
+ {
+ lua_pop(L, 1); // Blow away the previous result
+ if (result == 0) {
+ lua_pushliteral(L, "");
+ } else {
+ lua_pushlstring(L, (const char *)arg3, result);
+ }
+ free(arg3);
+ // SWIG_arg was already incremented
+ }
return SWIG_arg;
if(0) SWIG_fail;
@@ -49123,7 +49731,7 @@ static int _wrap_SBTarget_BreakpointCreateByLocation__SWIG_0(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->BreakpointCreateByLocation((char const *)arg2,arg3);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -49160,7 +49768,7 @@ static int _wrap_SBTarget_BreakpointCreateByLocation__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->BreakpointCreateByLocation((lldb::SBFileSpec const &)*arg2,arg3);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -49199,8 +49807,8 @@ static int _wrap_SBTarget_BreakpointCreateByLocation__SWIG_2(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned long long)lua_tointeger(L, 4);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (lldb::addr_t)lua_tointeger(L, 4);
result = (arg1)->BreakpointCreateByLocation((lldb::SBFileSpec const &)*arg2,arg3,arg4);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -49241,8 +49849,8 @@ static int _wrap_SBTarget_BreakpointCreateByLocation__SWIG_3(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned long long)lua_tointeger(L, 4);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (lldb::addr_t)lua_tointeger(L, 4);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",5,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -49290,9 +49898,9 @@ static int _wrap_SBTarget_BreakpointCreateByLocation__SWIG_4(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
- arg5 = (unsigned long long)lua_tointeger(L, 5);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
+ arg5 = (lldb::addr_t)lua_tointeger(L, 5);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",6,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -49342,9 +49950,9 @@ static int _wrap_SBTarget_BreakpointCreateByLocation__SWIG_5(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
- arg5 = (unsigned long long)lua_tointeger(L, 5);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
+ arg5 = (lldb::addr_t)lua_tointeger(L, 5);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByLocation",6,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -49704,7 +50312,7 @@ static int _wrap_SBTarget_BreakpointCreateByName__SWIG_2(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByName",4,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -49744,7 +50352,7 @@ static int _wrap_SBTarget_BreakpointCreateByName__SWIG_3(lua_State* L) {
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByName",1,"lldb::SBTarget *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByName",2,"char const *");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByName",3,"uint32_t");
- if(!lua_isnumber(L,4)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByName",4,"lldb::LanguageType");
+ if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByName",4,"lldb::LanguageType");
if(!lua_isuserdata(L,5)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByName",5,"lldb::SBFileSpecList const &");
if(!lua_isuserdata(L,6)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByName",6,"lldb::SBFileSpecList const &");
@@ -49753,8 +50361,8 @@ static int _wrap_SBTarget_BreakpointCreateByName__SWIG_3(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (lldb::LanguageType)(int)lua_tonumber(L, 4);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (lldb::LanguageType)lua_tointeger(L, 4);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByName",5,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -49946,7 +50554,6 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::BreakpointCreateByNames",6,6)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",1,"lldb::SBTarget *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",2,"char const **");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",3,"uint32_t");
if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",4,"uint32_t");
if(!lua_isuserdata(L,5)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",5,"lldb::SBFileSpecList const &");
@@ -49956,13 +50563,31 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",1,SWIGTYPE_p_lldb__SBTarget);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,5,(void**)&arg5,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",5,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -49978,11 +50603,17 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_0(lua_State* L) {
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBBreakpoint,1); SWIG_arg++;
}
+ {
+ free((char *) arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -50001,10 +50632,9 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::BreakpointCreateByNames",7,7)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",1,"lldb::SBTarget *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",2,"char const **");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",3,"uint32_t");
if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",4,"uint32_t");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",5,"lldb::LanguageType");
+ if(!lua_isinteger(L,5)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",5,"lldb::LanguageType");
if(!lua_isuserdata(L,6)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",6,"lldb::SBFileSpecList const &");
if(!lua_isuserdata(L,7)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",7,"lldb::SBFileSpecList const &");
@@ -50012,14 +50642,32 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",1,SWIGTYPE_p_lldb__SBTarget);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
- arg5 = (lldb::LanguageType)(int)lua_tonumber(L, 5);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
+ arg5 = (lldb::LanguageType)lua_tointeger(L, 5);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,6,(void**)&arg6,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",6,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -50035,11 +50683,17 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_1(lua_State* L) {
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBBreakpoint,1); SWIG_arg++;
}
+ {
+ free((char *) arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -50059,10 +50713,9 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_2(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::BreakpointCreateByNames",8,8)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",1,"lldb::SBTarget *");
- if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",2,"char const **");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",3,"uint32_t");
if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",4,"uint32_t");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",5,"lldb::LanguageType");
+ if(!lua_isinteger(L,5)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",5,"lldb::LanguageType");
if(!lua_isinteger(L,6)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",6,"lldb::addr_t");
if(!lua_isuserdata(L,7)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",7,"lldb::SBFileSpecList const &");
if(!lua_isuserdata(L,8)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByNames",8,"lldb::SBFileSpecList const &");
@@ -50071,15 +50724,33 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_2(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",1,SWIGTYPE_p_lldb__SBTarget);
}
-
- if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){
- SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",2,SWIGTYPE_p_p_char);
+ {
+ if (lua_istable(L, 2)) {
+ size_t size = lua_rawlen(L, 2);
+ arg2 = (char **)malloc((size + 1) * sizeof(char *));
+ int i = 0, j = 0;
+ while (i++ < size) {
+ lua_rawgeti(L, 2, i);
+ if (!lua_isstring(L, -1)) {
+ // if current element cannot be converted to string, raise an error
+ lua_pop(L, 1);
+ return luaL_error(L, "List should only contain strings");
+ }
+ arg2[j++] = (char *)lua_tostring(L, -1);
+ lua_pop(L, 1);
+ }
+ arg2[j] = 0;
+ } else if (lua_isnil(L, 2)) {
+ // "nil" is also acceptable, equivalent as an empty table
+ arg2 = NULL;
+ } else {
+ return luaL_error(L, "A list of strings expected");
+ }
}
-
- arg3 = (unsigned int)lua_tointeger(L, 3);
- arg4 = (unsigned int)lua_tointeger(L, 4);
- arg5 = (lldb::LanguageType)(int)lua_tonumber(L, 5);
- arg6 = (unsigned long long)lua_tointeger(L, 6);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
+ arg5 = (lldb::LanguageType)lua_tointeger(L, 5);
+ arg6 = (lldb::addr_t)lua_tointeger(L, 6);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,7,(void**)&arg7,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByNames",7,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -50095,11 +50766,17 @@ static int _wrap_SBTarget_BreakpointCreateByNames__SWIG_2(lua_State* L) {
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBBreakpoint,1); SWIG_arg++;
}
+ {
+ free((char *) arg2);
+ }
return SWIG_arg;
if(0) SWIG_fail;
fail:
+ {
+ free((char *) arg2);
+ }
lua_error(L);
return SWIG_arg;
}
@@ -50124,12 +50801,7 @@ static int _wrap_SBTarget_BreakpointCreateByNames(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_p_char, 0)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_istable(L, argv[1]) || lua_isnil(L, argv[1]));
}
if (_v) {
{
@@ -50178,12 +50850,7 @@ static int _wrap_SBTarget_BreakpointCreateByNames(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_p_char, 0)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_istable(L, argv[1]) || lua_isnil(L, argv[1]));
}
if (_v) {
{
@@ -50237,12 +50904,7 @@ static int _wrap_SBTarget_BreakpointCreateByNames(lua_State* L) {
}
if (_v) {
{
- void *ptr;
- if (SWIG_isptrtype(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_p_char, 0)) {
- _v = 0;
- } else {
- _v = 1;
- }
+ _v = (lua_istable(L, argv[1]) || lua_isnil(L, argv[1]));
}
if (_v) {
{
@@ -50374,7 +51036,7 @@ static int _wrap_SBTarget_BreakpointCreateByRegex__SWIG_2(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::BreakpointCreateByRegex",5,5)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByRegex",1,"lldb::SBTarget *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByRegex",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByRegex",3,"lldb::LanguageType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByRegex",3,"lldb::LanguageType");
if(!lua_isuserdata(L,4)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByRegex",4,"lldb::SBFileSpecList const &");
if(!lua_isuserdata(L,5)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateByRegex",5,"lldb::SBFileSpecList const &");
@@ -50383,7 +51045,7 @@ static int _wrap_SBTarget_BreakpointCreateByRegex__SWIG_2(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::LanguageType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::LanguageType)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBFileSpecList,0))){
SWIG_fail_ptr("SBTarget_BreakpointCreateByRegex",4,SWIGTYPE_p_lldb__SBFileSpecList);
@@ -50864,7 +51526,7 @@ static int _wrap_SBTarget_BreakpointCreateForException(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::BreakpointCreateForException",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateForException",1,"lldb::SBTarget *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateForException",2,"lldb::LanguageType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateForException",2,"lldb::LanguageType");
if(!lua_isboolean(L,3)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateForException",3,"bool");
if(!lua_isboolean(L,4)) SWIG_fail_arg("lldb::SBTarget::BreakpointCreateForException",4,"bool");
@@ -50872,7 +51534,7 @@ static int _wrap_SBTarget_BreakpointCreateForException(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateForException",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (lldb::LanguageType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::LanguageType)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
arg4 = (lua_toboolean(L, 4)!=0);
result = (arg1)->BreakpointCreateForException(arg2,arg3,arg4);
@@ -50904,7 +51566,7 @@ static int _wrap_SBTarget_BreakpointCreateByAddress(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointCreateByAddress",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
result = (arg1)->BreakpointCreateByAddress(arg2);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -51243,7 +51905,7 @@ static int _wrap_SBTarget_GetBreakpointAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTarget_GetBreakpointAtIndex",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = ((lldb::SBTarget const *)arg1)->GetBreakpointAtIndex(arg2);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -51273,7 +51935,7 @@ static int _wrap_SBTarget_BreakpointDelete(lua_State* L) {
SWIG_fail_ptr("SBTarget_BreakpointDelete",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (lldb::break_id_t)lua_tointeger(L, 2);
result = (bool)(arg1)->BreakpointDelete(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -51300,7 +51962,7 @@ static int _wrap_SBTarget_FindBreakpointByID(lua_State* L) {
SWIG_fail_ptr("SBTarget_FindBreakpointByID",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (lldb::break_id_t)lua_tointeger(L, 2);
result = (arg1)->FindBreakpointByID(arg2);
{
lldb::SBBreakpoint * resultptr = new lldb::SBBreakpoint((const lldb::SBBreakpoint &) result);
@@ -51932,7 +52594,7 @@ static int _wrap_SBTarget_GetWatchpointAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTarget_GetWatchpointAtIndex",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = ((lldb::SBTarget const *)arg1)->GetWatchpointAtIndex(arg2);
{
lldb::SBWatchpoint * resultptr = new lldb::SBWatchpoint((const lldb::SBWatchpoint &) result);
@@ -51962,7 +52624,7 @@ static int _wrap_SBTarget_DeleteWatchpoint(lua_State* L) {
SWIG_fail_ptr("SBTarget_DeleteWatchpoint",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (lldb::watch_id_t)lua_tointeger(L, 2);
result = (bool)(arg1)->DeleteWatchpoint(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -51989,7 +52651,7 @@ static int _wrap_SBTarget_FindWatchpointByID(lua_State* L) {
SWIG_fail_ptr("SBTarget_FindWatchpointByID",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (lldb::watch_id_t)lua_tointeger(L, 2);
result = (arg1)->FindWatchpointByID(arg2);
{
lldb::SBWatchpoint * resultptr = new lldb::SBWatchpoint((const lldb::SBWatchpoint &) result);
@@ -52099,8 +52761,8 @@ static int _wrap_SBTarget_WatchAddress(lua_State* L) {
SWIG_fail_ptr("SBTarget_WatchAddress",1,SWIGTYPE_p_lldb__SBTarget);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
+ arg3 = (size_t)lua_tointeger(L, 3);
arg4 = (lua_toboolean(L, 4)!=0);
arg5 = (lua_toboolean(L, 5)!=0);
@@ -52302,7 +52964,7 @@ static int _wrap_SBTarget_ReadInstructions__SWIG_0(lua_State* L) {
}
arg2 = *argp2;
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->ReadInstructions(arg2,arg3);
{
lldb::SBInstructionList * resultptr = new lldb::SBInstructionList((const lldb::SBInstructionList &) result);
@@ -52343,7 +53005,7 @@ static int _wrap_SBTarget_ReadInstructions__SWIG_1(lua_State* L) {
}
arg2 = *argp2;
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
arg4 = (char *)lua_tostring(L, 4);
result = (arg1)->ReadInstructions(arg2,arg3,(char const *)arg4);
{
@@ -52448,11 +53110,9 @@ static int _wrap_SBTarget_GetInstructions(lua_State* L) {
lldb::SBAddress *argp2 ;
lldb::SBInstructionList result;
- SWIG_check_num_args("lldb::SBTarget::GetInstructions",4,4)
+ SWIG_check_num_args("lldb::SBTarget::GetInstructions",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::GetInstructions",1,"lldb::SBTarget *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTarget::GetInstructions",2,"lldb::SBAddress");
- if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("lldb::SBTarget::GetInstructions",3,"void const *");
- if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBTarget::GetInstructions",4,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_GetInstructions",1,SWIGTYPE_p_lldb__SBTarget);
@@ -52464,8 +53124,9 @@ static int _wrap_SBTarget_GetInstructions(lua_State* L) {
}
arg2 = *argp2;
- arg3=(void *)SWIG_MustGetPtr(L,3,0,0,3,"SBTarget_GetInstructions");
- arg4 = (unsigned long)lua_tointeger(L, 4);
+ {
+ arg3 = (void *)luaL_checklstring(L, 3, &arg4);
+ }
result = (arg1)->GetInstructions(arg2,(void const *)arg3,arg4);
{
lldb::SBInstructionList * resultptr = new lldb::SBInstructionList((const lldb::SBInstructionList &) result);
@@ -52491,12 +53152,10 @@ static int _wrap_SBTarget_GetInstructionsWithFlavor(lua_State* L) {
lldb::SBAddress *argp2 ;
lldb::SBInstructionList result;
- SWIG_check_num_args("lldb::SBTarget::GetInstructionsWithFlavor",5,5)
+ SWIG_check_num_args("lldb::SBTarget::GetInstructionsWithFlavor",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::GetInstructionsWithFlavor",1,"lldb::SBTarget *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTarget::GetInstructionsWithFlavor",2,"lldb::SBAddress");
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("lldb::SBTarget::GetInstructionsWithFlavor",3,"char const *");
- if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("lldb::SBTarget::GetInstructionsWithFlavor",4,"void const *");
- if(!lua_isinteger(L,5)) SWIG_fail_arg("lldb::SBTarget::GetInstructionsWithFlavor",5,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_GetInstructionsWithFlavor",1,SWIGTYPE_p_lldb__SBTarget);
@@ -52509,8 +53168,9 @@ static int _wrap_SBTarget_GetInstructionsWithFlavor(lua_State* L) {
arg2 = *argp2;
arg3 = (char *)lua_tostring(L, 3);
- arg4=(void *)SWIG_MustGetPtr(L,4,0,0,4,"SBTarget_GetInstructionsWithFlavor");
- arg5 = (unsigned long)lua_tointeger(L, 5);
+ {
+ arg4 = (void *)luaL_checklstring(L, 4, &arg5);
+ }
result = (arg1)->GetInstructionsWithFlavor(arg2,(char const *)arg3,(void const *)arg4,arg5);
{
lldb::SBInstructionList * resultptr = new lldb::SBInstructionList((const lldb::SBInstructionList &) result);
@@ -52536,14 +53196,14 @@ static int _wrap_SBTarget_FindSymbols__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::FindSymbols",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::FindSymbols",1,"lldb::SBTarget *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBTarget::FindSymbols",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTarget::FindSymbols",3,"lldb::SymbolType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::FindSymbols",3,"lldb::SymbolType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_FindSymbols",1,SWIGTYPE_p_lldb__SBTarget);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::SymbolType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::SymbolType)lua_tointeger(L, 3);
result = (arg1)->FindSymbols((char const *)arg2,arg3);
{
lldb::SBSymbolContextList * resultptr = new lldb::SBSymbolContextList((const lldb::SBSymbolContextList &) result);
@@ -52658,7 +53318,7 @@ static int _wrap_SBTarget_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTarget::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::GetDescription",1,"lldb::SBTarget *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTarget::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTarget::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTarget::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
SWIG_fail_ptr("SBTarget_GetDescription",1,SWIGTYPE_p_lldb__SBTarget);
@@ -52669,7 +53329,7 @@ static int _wrap_SBTarget_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTarget_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -53500,7 +54160,7 @@ static int _wrap_SBThread_GetStopReason(lua_State* L) {
}
result = (lldb::StopReason)(arg1)->GetStopReason();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -53549,7 +54209,7 @@ static int _wrap_SBThread_GetStopReasonDataAtIndex(lua_State* L) {
SWIG_fail_ptr("SBThread_GetStopReasonDataAtIndex",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (uint64_t)(arg1)->GetStopReasonDataAtIndex(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -53601,13 +54261,13 @@ static int _wrap_SBThread_GetStopReasonExtendedBacktraces(lua_State* L) {
SWIG_check_num_args("lldb::SBThread::GetStopReasonExtendedBacktraces",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBThread::GetStopReasonExtendedBacktraces",1,"lldb::SBThread *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBThread::GetStopReasonExtendedBacktraces",2,"lldb::InstrumentationRuntimeType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBThread::GetStopReasonExtendedBacktraces",2,"lldb::InstrumentationRuntimeType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
SWIG_fail_ptr("SBThread_GetStopReasonExtendedBacktraces",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (lldb::InstrumentationRuntimeType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::InstrumentationRuntimeType)lua_tointeger(L, 2);
result = (arg1)->GetStopReasonExtendedBacktraces(arg2);
{
lldb::SBThreadCollection * resultptr = new lldb::SBThreadCollection((const lldb::SBThreadCollection &) result);
@@ -53630,19 +54290,28 @@ static int _wrap_SBThread_GetStopDescription(lua_State* L) {
size_t arg3 ;
size_t result;
- SWIG_check_num_args("lldb::SBThread::GetStopDescription",3,3)
+ SWIG_check_num_args("lldb::SBThread::GetStopDescription",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBThread::GetStopDescription",1,"lldb::SBThread *");
- if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBThread::GetStopDescription",2,"char *");
- if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBThread::GetStopDescription",3,"size_t");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
SWIG_fail_ptr("SBThread_GetStopDescription",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned long)lua_tointeger(L, 3);
+ {
+ arg3 = luaL_checkinteger(L, 2);
+ if (arg3 <= 0) {
+ return luaL_error(L, "Positive integer expected");
+ }
+ arg2 = (char *)malloc(arg3);
+ }
result = (arg1)->GetStopDescription(arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
+ {
+ lua_pop(L, 1); // Blow away the previous result
+ lua_pushlstring(L, (const char *)arg2, result);
+ free(arg2);
+ // SWIG_arg was already incremented
+ }
return SWIG_arg;
if(0) SWIG_fail;
@@ -53868,13 +54537,13 @@ static int _wrap_SBThread_StepOver__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBThread::StepOver",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBThread::StepOver",1,"lldb::SBThread *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBThread::StepOver",2,"lldb::RunMode");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBThread::StepOver",2,"lldb::RunMode");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
SWIG_fail_ptr("SBThread_StepOver",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (lldb::RunMode)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::RunMode)lua_tointeger(L, 2);
(arg1)->StepOver(arg2);
return SWIG_arg;
@@ -53918,14 +54587,14 @@ static int _wrap_SBThread_StepOver__SWIG_2(lua_State* L) {
SWIG_check_num_args("lldb::SBThread::StepOver",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBThread::StepOver",1,"lldb::SBThread *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBThread::StepOver",2,"lldb::RunMode");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBThread::StepOver",2,"lldb::RunMode");
if(!lua_isuserdata(L,3)) SWIG_fail_arg("lldb::SBThread::StepOver",3,"lldb::SBError &");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
SWIG_fail_ptr("SBThread_StepOver",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (lldb::RunMode)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::RunMode)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBThread_StepOver",3,SWIGTYPE_p_lldb__SBError);
@@ -54029,13 +54698,13 @@ static int _wrap_SBThread_StepInto__SWIG_0(lua_State* L) {
SWIG_check_num_args("lldb::SBThread::StepInto",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBThread::StepInto",1,"lldb::SBThread *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBThread::StepInto",2,"lldb::RunMode");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBThread::StepInto",2,"lldb::RunMode");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
SWIG_fail_ptr("SBThread_StepInto",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (lldb::RunMode)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::RunMode)lua_tointeger(L, 2);
(arg1)->StepInto(arg2);
return SWIG_arg;
@@ -54080,14 +54749,14 @@ static int _wrap_SBThread_StepInto__SWIG_2(lua_State* L) {
SWIG_check_num_args("lldb::SBThread::StepInto",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBThread::StepInto",1,"lldb::SBThread *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBThread::StepInto",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBThread::StepInto",3,"lldb::RunMode");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBThread::StepInto",3,"lldb::RunMode");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
SWIG_fail_ptr("SBThread_StepInto",1,SWIGTYPE_p_lldb__SBThread);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::RunMode)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::RunMode)lua_tointeger(L, 3);
(arg1)->StepInto((char const *)arg2,arg3);
return SWIG_arg;
@@ -54139,20 +54808,20 @@ static int _wrap_SBThread_StepInto__SWIG_4(lua_State* L) {
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBThread::StepInto",2,"char const *");
if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBThread::StepInto",3,"uint32_t");
if(!lua_isuserdata(L,4)) SWIG_fail_arg("lldb::SBThread::StepInto",4,"lldb::SBError &");
- if(!lua_isnumber(L,5)) SWIG_fail_arg("lldb::SBThread::StepInto",5,"lldb::RunMode");
+ if(!lua_isinteger(L,5)) SWIG_fail_arg("lldb::SBThread::StepInto",5,"lldb::RunMode");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
SWIG_fail_ptr("SBThread_StepInto",1,SWIGTYPE_p_lldb__SBThread);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBThread_StepInto",4,SWIGTYPE_p_lldb__SBError);
}
- arg5 = (lldb::RunMode)(int)lua_tonumber(L, 5);
+ arg5 = (lldb::RunMode)lua_tointeger(L, 5);
(arg1)->StepInto((char const *)arg2,arg3,*arg4,arg5);
return SWIG_arg;
@@ -54183,7 +54852,7 @@ static int _wrap_SBThread_StepInto__SWIG_5(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg4,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBThread_StepInto",4,SWIGTYPE_p_lldb__SBError);
@@ -54769,7 +55438,7 @@ static int _wrap_SBThread_StepOverUntil(lua_State* L) {
SWIG_fail_ptr("SBThread_StepOverUntil",3,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg4 = (unsigned int)lua_tointeger(L, 4);
+ arg4 = (uint32_t)lua_tointeger(L, 4);
result = (arg1)->StepOverUntil(*arg2,*arg3,arg4);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -55003,7 +55672,7 @@ static int _wrap_SBThread_JumpToLine(lua_State* L) {
SWIG_fail_ptr("SBThread_JumpToLine",2,SWIGTYPE_p_lldb__SBFileSpec);
}
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->JumpToLine(*arg2,arg3);
{
lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
@@ -55032,7 +55701,7 @@ static int _wrap_SBThread_RunToAddress__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBThread_RunToAddress",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
(arg1)->RunToAddress(arg2);
return SWIG_arg;
@@ -55060,7 +55729,7 @@ static int _wrap_SBThread_RunToAddress__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBThread_RunToAddress",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::addr_t)lua_tointeger(L, 2);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,3,(void**)&arg3,SWIGTYPE_p_lldb__SBError,0))){
SWIG_fail_ptr("SBThread_RunToAddress",3,SWIGTYPE_p_lldb__SBError);
@@ -55514,7 +56183,7 @@ static int _wrap_SBThread_GetFrameAtIndex(lua_State* L) {
SWIG_fail_ptr("SBThread_GetFrameAtIndex",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetFrameAtIndex(arg2);
{
lldb::SBFrame * resultptr = new lldb::SBFrame((const lldb::SBFrame &) result);
@@ -55571,7 +56240,7 @@ static int _wrap_SBThread_SetSelectedFrame(lua_State* L) {
SWIG_fail_ptr("SBThread_SetSelectedFrame",1,SWIGTYPE_p_lldb__SBThread);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->SetSelectedFrame(arg2);
{
lldb::SBFrame * resultptr = new lldb::SBFrame((const lldb::SBFrame &) result);
@@ -56205,7 +56874,7 @@ static int _wrap_SBThreadCollection_GetThreadAtIndex(lua_State* L) {
SWIG_fail_ptr("SBThreadCollection_GetThreadAtIndex",1,SWIGTYPE_p_lldb__SBThreadCollection);
}
- arg2 = (unsigned long)lua_tointeger(L, 2);
+ arg2 = (size_t)lua_tointeger(L, 2);
result = (arg1)->GetThreadAtIndex(arg2);
{
lldb::SBThread * resultptr = new lldb::SBThread((const lldb::SBThread &) result);
@@ -56559,7 +57228,7 @@ static int _wrap_SBThreadPlan_GetStopReason(lua_State* L) {
}
result = (lldb::StopReason)(arg1)->GetStopReason();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -56608,7 +57277,7 @@ static int _wrap_SBThreadPlan_GetStopReasonDataAtIndex(lua_State* L) {
SWIG_fail_ptr("SBThreadPlan_GetStopReasonDataAtIndex",1,SWIGTYPE_p_lldb__SBThreadPlan);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (uint64_t)(arg1)->GetStopReasonDataAtIndex(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -56824,7 +57493,7 @@ static int _wrap_SBThreadPlan_QueueThreadPlanForStepOverRange(lua_State* L) {
SWIG_fail_ptr("SBThreadPlan_QueueThreadPlanForStepOverRange",2,SWIGTYPE_p_lldb__SBAddress);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
result = (arg1)->QueueThreadPlanForStepOverRange(*arg2,arg3);
{
lldb::SBThreadPlan * resultptr = new lldb::SBThreadPlan((const lldb::SBThreadPlan &) result);
@@ -56861,7 +57530,7 @@ static int _wrap_SBThreadPlan_QueueThreadPlanForStepInRange(lua_State* L) {
SWIG_fail_ptr("SBThreadPlan_QueueThreadPlanForStepInRange",2,SWIGTYPE_p_lldb__SBAddress);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
result = (arg1)->QueueThreadPlanForStepInRange(*arg2,arg3);
{
lldb::SBThreadPlan * resultptr = new lldb::SBThreadPlan((const lldb::SBThreadPlan &) result);
@@ -56893,7 +57562,7 @@ static int _wrap_SBThreadPlan_QueueThreadPlanForStepOut__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBThreadPlan_QueueThreadPlanForStepOut",1,SWIGTYPE_p_lldb__SBThreadPlan);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
result = (arg1)->QueueThreadPlanForStepOut(arg2,arg3);
{
@@ -56924,7 +57593,7 @@ static int _wrap_SBThreadPlan_QueueThreadPlanForStepOut__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBThreadPlan_QueueThreadPlanForStepOut",1,SWIGTYPE_p_lldb__SBThreadPlan);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->QueueThreadPlanForStepOut(arg2);
{
lldb::SBThreadPlan * resultptr = new lldb::SBThreadPlan((const lldb::SBThreadPlan &) result);
@@ -58281,7 +58950,7 @@ static int _wrap_SBTypeMemberFunction_GetArgumentTypeAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeMemberFunction_GetArgumentTypeAtIndex",1,SWIGTYPE_p_lldb__SBTypeMemberFunction);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetArgumentTypeAtIndex(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -58310,7 +58979,7 @@ static int _wrap_SBTypeMemberFunction_GetKind(lua_State* L) {
}
result = (lldb::MemberFunctionKind)(arg1)->GetKind();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -58331,7 +59000,7 @@ static int _wrap_SBTypeMemberFunction_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeMemberFunction::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeMemberFunction::GetDescription",1,"lldb::SBTypeMemberFunction *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeMemberFunction::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeMemberFunction::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeMemberFunction::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeMemberFunction,0))){
SWIG_fail_ptr("SBTypeMemberFunction_GetDescription",1,SWIGTYPE_p_lldb__SBTypeMemberFunction);
@@ -58342,7 +59011,7 @@ static int _wrap_SBTypeMemberFunction_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeMemberFunction_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -59033,7 +59702,7 @@ static int _wrap_SBType_GetArrayType(lua_State* L) {
SWIG_fail_ptr("SBType_GetArrayType",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (uint64_t)lua_tointeger(L, 2);
result = (arg1)->GetArrayType(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -59089,7 +59758,7 @@ static int _wrap_SBType_GetBasicType__SWIG_0(lua_State* L) {
}
result = (lldb::BasicType)(arg1)->GetBasicType();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -59108,13 +59777,13 @@ static int _wrap_SBType_GetBasicType__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBType::GetBasicType",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBType::GetBasicType",1,"lldb::SBType *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBType::GetBasicType",2,"lldb::BasicType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBType::GetBasicType",2,"lldb::BasicType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBType,0))){
SWIG_fail_ptr("SBType_GetBasicType",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (lldb::BasicType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::BasicType)lua_tointeger(L, 2);
result = (arg1)->GetBasicType(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -59265,7 +59934,7 @@ static int _wrap_SBType_GetFieldAtIndex(lua_State* L) {
SWIG_fail_ptr("SBType_GetFieldAtIndex",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetFieldAtIndex(arg2);
{
lldb::SBTypeMember * resultptr = new lldb::SBTypeMember((const lldb::SBTypeMember &) result);
@@ -59295,7 +59964,7 @@ static int _wrap_SBType_GetDirectBaseClassAtIndex(lua_State* L) {
SWIG_fail_ptr("SBType_GetDirectBaseClassAtIndex",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetDirectBaseClassAtIndex(arg2);
{
lldb::SBTypeMember * resultptr = new lldb::SBTypeMember((const lldb::SBTypeMember &) result);
@@ -59325,7 +59994,7 @@ static int _wrap_SBType_GetVirtualBaseClassAtIndex(lua_State* L) {
SWIG_fail_ptr("SBType_GetVirtualBaseClassAtIndex",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetVirtualBaseClassAtIndex(arg2);
{
lldb::SBTypeMember * resultptr = new lldb::SBTypeMember((const lldb::SBTypeMember &) result);
@@ -59456,7 +60125,7 @@ static int _wrap_SBType_GetTypeClass(lua_State* L) {
}
result = (lldb::TypeClass)(arg1)->GetTypeClass();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -59505,7 +60174,7 @@ static int _wrap_SBType_GetTemplateArgumentType(lua_State* L) {
SWIG_fail_ptr("SBType_GetTemplateArgumentType",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTemplateArgumentType(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -59535,9 +60204,9 @@ static int _wrap_SBType_GetTemplateArgumentKind(lua_State* L) {
SWIG_fail_ptr("SBType_GetTemplateArgumentKind",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (lldb::TemplateArgumentKind)(arg1)->GetTemplateArgumentKind(arg2);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -59640,7 +60309,7 @@ static int _wrap_SBType_GetMemberFunctionAtIndex(lua_State* L) {
SWIG_fail_ptr("SBType_GetMemberFunctionAtIndex",1,SWIGTYPE_p_lldb__SBType);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetMemberFunctionAtIndex(arg2);
{
lldb::SBTypeMemberFunction * resultptr = new lldb::SBTypeMemberFunction((const lldb::SBTypeMemberFunction &) result);
@@ -59940,7 +60609,7 @@ static int _wrap_SBTypeList_GetTypeAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeList_GetTypeAtIndex",1,SWIGTYPE_p_lldb__SBTypeList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypeAtIndex(arg2);
{
lldb::SBType * resultptr = new lldb::SBType((const lldb::SBType &) result);
@@ -60217,9 +60886,9 @@ static int _wrap_SBTypeCategory_GetLanguageAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeCategory_GetLanguageAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (lldb::LanguageType)(arg1)->GetLanguageAtIndex(arg2);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -60261,13 +60930,13 @@ static int _wrap_SBTypeCategory_AddLanguage(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeCategory::AddLanguage",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeCategory::AddLanguage",1,"lldb::SBTypeCategory *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBTypeCategory::AddLanguage",2,"lldb::LanguageType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeCategory::AddLanguage",2,"lldb::LanguageType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeCategory,0))){
SWIG_fail_ptr("SBTypeCategory_AddLanguage",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (lldb::LanguageType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::LanguageType)lua_tointeger(L, 2);
(arg1)->AddLanguage(arg2);
return SWIG_arg;
@@ -60290,7 +60959,7 @@ static int _wrap_SBTypeCategory_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeCategory::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeCategory::GetDescription",1,"lldb::SBTypeCategory *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeCategory::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeCategory::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeCategory::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeCategory,0))){
SWIG_fail_ptr("SBTypeCategory_GetDescription",1,SWIGTYPE_p_lldb__SBTypeCategory);
@@ -60301,7 +60970,7 @@ static int _wrap_SBTypeCategory_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeCategory_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -60424,7 +61093,7 @@ static int _wrap_SBTypeCategory_GetTypeNameSpecifierForFilterAtIndex(lua_State*
SWIG_fail_ptr("SBTypeCategory_GetTypeNameSpecifierForFilterAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypeNameSpecifierForFilterAtIndex(arg2);
{
lldb::SBTypeNameSpecifier * resultptr = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &) result);
@@ -60454,7 +61123,7 @@ static int _wrap_SBTypeCategory_GetTypeNameSpecifierForFormatAtIndex(lua_State*
SWIG_fail_ptr("SBTypeCategory_GetTypeNameSpecifierForFormatAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypeNameSpecifierForFormatAtIndex(arg2);
{
lldb::SBTypeNameSpecifier * resultptr = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &) result);
@@ -60484,7 +61153,7 @@ static int _wrap_SBTypeCategory_GetTypeNameSpecifierForSummaryAtIndex(lua_State*
SWIG_fail_ptr("SBTypeCategory_GetTypeNameSpecifierForSummaryAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypeNameSpecifierForSummaryAtIndex(arg2);
{
lldb::SBTypeNameSpecifier * resultptr = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &) result);
@@ -60514,7 +61183,7 @@ static int _wrap_SBTypeCategory_GetTypeNameSpecifierForSyntheticAtIndex(lua_Stat
SWIG_fail_ptr("SBTypeCategory_GetTypeNameSpecifierForSyntheticAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypeNameSpecifierForSyntheticAtIndex(arg2);
{
lldb::SBTypeNameSpecifier * resultptr = new lldb::SBTypeNameSpecifier((const lldb::SBTypeNameSpecifier &) result);
@@ -60688,7 +61357,7 @@ static int _wrap_SBTypeCategory_GetFilterAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeCategory_GetFilterAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetFilterAtIndex(arg2);
{
lldb::SBTypeFilter * resultptr = new lldb::SBTypeFilter((const lldb::SBTypeFilter &) result);
@@ -60718,7 +61387,7 @@ static int _wrap_SBTypeCategory_GetFormatAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeCategory_GetFormatAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetFormatAtIndex(arg2);
{
lldb::SBTypeFormat * resultptr = new lldb::SBTypeFormat((const lldb::SBTypeFormat &) result);
@@ -60748,7 +61417,7 @@ static int _wrap_SBTypeCategory_GetSummaryAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeCategory_GetSummaryAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetSummaryAtIndex(arg2);
{
lldb::SBTypeSummary * resultptr = new lldb::SBTypeSummary((const lldb::SBTypeSummary &) result);
@@ -60778,7 +61447,7 @@ static int _wrap_SBTypeCategory_GetSyntheticAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeCategory_GetSyntheticAtIndex",1,SWIGTYPE_p_lldb__SBTypeCategory);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetSyntheticAtIndex(arg2);
{
lldb::SBTypeSynthetic * resultptr = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &) result);
@@ -61406,7 +62075,7 @@ static int _wrap_SBTypeEnumMember_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeEnumMember::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeEnumMember::GetDescription",1,"lldb::SBTypeEnumMember *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeEnumMember::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeEnumMember::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeEnumMember::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeEnumMember,0))){
SWIG_fail_ptr("SBTypeEnumMember_GetDescription",1,SWIGTYPE_p_lldb__SBTypeEnumMember);
@@ -61417,7 +62086,7 @@ static int _wrap_SBTypeEnumMember_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeEnumMember_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -61653,7 +62322,7 @@ static int _wrap_SBTypeEnumMemberList_GetTypeEnumMemberAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeEnumMemberList_GetTypeEnumMemberAtIndex",1,SWIGTYPE_p_lldb__SBTypeEnumMemberList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetTypeEnumMemberAtIndex(arg2);
{
lldb::SBTypeEnumMember * resultptr = new lldb::SBTypeEnumMember((const lldb::SBTypeEnumMember &) result);
@@ -61768,7 +62437,7 @@ static int _wrap_new_SBTypeFilter__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeFilter::SBTypeFilter",1,1)
if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBTypeFilter::SBTypeFilter",1,"uint32_t");
- arg1 = (unsigned int)lua_tointeger(L, 1);
+ arg1 = (uint32_t)lua_tointeger(L, 1);
result = (lldb::SBTypeFilter *)new lldb::SBTypeFilter(arg1);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBTypeFilter,1); SWIG_arg++;
return SWIG_arg;
@@ -61941,7 +62610,7 @@ static int _wrap_SBTypeFilter_GetExpressionPathAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeFilter_GetExpressionPathAtIndex",1,SWIGTYPE_p_lldb__SBTypeFilter);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (char *)(arg1)->GetExpressionPathAtIndex(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -61970,7 +62639,7 @@ static int _wrap_SBTypeFilter_ReplaceExpressionPathAtIndex(lua_State* L) {
SWIG_fail_ptr("SBTypeFilter_ReplaceExpressionPathAtIndex",1,SWIGTYPE_p_lldb__SBTypeFilter);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
arg3 = (char *)lua_tostring(L, 3);
result = (bool)(arg1)->ReplaceExpressionPathAtIndex(arg2,(char const *)arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
@@ -62070,7 +62739,7 @@ static int _wrap_SBTypeFilter_SetOptions(lua_State* L) {
SWIG_fail_ptr("SBTypeFilter_SetOptions",1,SWIGTYPE_p_lldb__SBTypeFilter);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetOptions(arg2);
return SWIG_arg;
@@ -62093,7 +62762,7 @@ static int _wrap_SBTypeFilter_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeFilter::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeFilter::GetDescription",1,"lldb::SBTypeFilter *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeFilter::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeFilter::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeFilter::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeFilter,0))){
SWIG_fail_ptr("SBTypeFilter_GetDescription",1,SWIGTYPE_p_lldb__SBTypeFilter);
@@ -62104,7 +62773,7 @@ static int _wrap_SBTypeFilter_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeFilter_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -62257,10 +62926,10 @@ static int _wrap_new_SBTypeFormat__SWIG_1(lua_State* L) {
lldb::SBTypeFormat *result = 0 ;
SWIG_check_num_args("lldb::SBTypeFormat::SBTypeFormat",2,2)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBTypeFormat::SBTypeFormat",1,"lldb::Format");
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBTypeFormat::SBTypeFormat",1,"lldb::Format");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeFormat::SBTypeFormat",2,"uint32_t");
- arg1 = (lldb::Format)(int)lua_tonumber(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg1 = (lldb::Format)lua_tointeger(L, 1);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (lldb::SBTypeFormat *)new lldb::SBTypeFormat(arg1,arg2);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBTypeFormat,1); SWIG_arg++;
return SWIG_arg;
@@ -62279,8 +62948,8 @@ static int _wrap_new_SBTypeFormat__SWIG_2(lua_State* L) {
lldb::SBTypeFormat *result = 0 ;
SWIG_check_num_args("lldb::SBTypeFormat::SBTypeFormat",1,1)
- if(!lua_isnumber(L,1)) SWIG_fail_arg("lldb::SBTypeFormat::SBTypeFormat",1,"lldb::Format");
- arg1 = (lldb::Format)(int)lua_tonumber(L, 1);
+ if(!lua_isinteger(L,1)) SWIG_fail_arg("lldb::SBTypeFormat::SBTypeFormat",1,"lldb::Format");
+ arg1 = (lldb::Format)lua_tointeger(L, 1);
result = (lldb::SBTypeFormat *)new lldb::SBTypeFormat(arg1);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBTypeFormat,1); SWIG_arg++;
return SWIG_arg;
@@ -62303,7 +62972,7 @@ static int _wrap_new_SBTypeFormat__SWIG_3(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBTypeFormat::SBTypeFormat",1,"char const *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeFormat::SBTypeFormat",2,"uint32_t");
arg1 = (char *)lua_tostring(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (lldb::SBTypeFormat *)new lldb::SBTypeFormat((char const *)arg1,arg2);
SWIG_NewPointerObj(L,result,SWIGTYPE_p_lldb__SBTypeFormat,1); SWIG_arg++;
return SWIG_arg;
@@ -62511,7 +63180,7 @@ static int _wrap_SBTypeFormat_GetFormat(lua_State* L) {
}
result = (lldb::Format)(arg1)->GetFormat();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -62577,13 +63246,13 @@ static int _wrap_SBTypeFormat_SetFormat(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeFormat::SetFormat",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeFormat::SetFormat",1,"lldb::SBTypeFormat *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBTypeFormat::SetFormat",2,"lldb::Format");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeFormat::SetFormat",2,"lldb::Format");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeFormat,0))){
SWIG_fail_ptr("SBTypeFormat_SetFormat",1,SWIGTYPE_p_lldb__SBTypeFormat);
}
- arg2 = (lldb::Format)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::Format)lua_tointeger(L, 2);
(arg1)->SetFormat(arg2);
return SWIG_arg;
@@ -62635,7 +63304,7 @@ static int _wrap_SBTypeFormat_SetOptions(lua_State* L) {
SWIG_fail_ptr("SBTypeFormat_SetOptions",1,SWIGTYPE_p_lldb__SBTypeFormat);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetOptions(arg2);
return SWIG_arg;
@@ -62658,7 +63327,7 @@ static int _wrap_SBTypeFormat_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeFormat::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeFormat::GetDescription",1,"lldb::SBTypeFormat *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeFormat::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeFormat::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeFormat::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeFormat,0))){
SWIG_fail_ptr("SBTypeFormat_GetDescription",1,SWIGTYPE_p_lldb__SBTypeFormat);
@@ -62669,7 +63338,7 @@ static int _wrap_SBTypeFormat_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeFormat_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -63120,7 +63789,7 @@ static int _wrap_SBTypeNameSpecifier_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeNameSpecifier::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeNameSpecifier::GetDescription",1,"lldb::SBTypeNameSpecifier *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeNameSpecifier::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeNameSpecifier::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeNameSpecifier::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeNameSpecifier,0))){
SWIG_fail_ptr("SBTypeNameSpecifier_GetDescription",1,SWIGTYPE_p_lldb__SBTypeNameSpecifier);
@@ -63131,7 +63800,7 @@ static int _wrap_SBTypeNameSpecifier_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeNameSpecifier_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -63367,7 +64036,7 @@ static int _wrap_SBTypeSummaryOptions_GetLanguage(lua_State* L) {
}
result = (lldb::LanguageType)(arg1)->GetLanguage();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -63391,7 +64060,7 @@ static int _wrap_SBTypeSummaryOptions_GetCapping(lua_State* L) {
}
result = (lldb::TypeSummaryCapping)(arg1)->GetCapping();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -63409,13 +64078,13 @@ static int _wrap_SBTypeSummaryOptions_SetLanguage(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeSummaryOptions::SetLanguage",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeSummaryOptions::SetLanguage",1,"lldb::SBTypeSummaryOptions *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBTypeSummaryOptions::SetLanguage",2,"lldb::LanguageType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeSummaryOptions::SetLanguage",2,"lldb::LanguageType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeSummaryOptions,0))){
SWIG_fail_ptr("SBTypeSummaryOptions_SetLanguage",1,SWIGTYPE_p_lldb__SBTypeSummaryOptions);
}
- arg2 = (lldb::LanguageType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::LanguageType)lua_tointeger(L, 2);
(arg1)->SetLanguage(arg2);
return SWIG_arg;
@@ -63435,13 +64104,13 @@ static int _wrap_SBTypeSummaryOptions_SetCapping(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeSummaryOptions::SetCapping",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeSummaryOptions::SetCapping",1,"lldb::SBTypeSummaryOptions *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBTypeSummaryOptions::SetCapping",2,"lldb::TypeSummaryCapping");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeSummaryOptions::SetCapping",2,"lldb::TypeSummaryCapping");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeSummaryOptions,0))){
SWIG_fail_ptr("SBTypeSummaryOptions_SetCapping",1,SWIGTYPE_p_lldb__SBTypeSummaryOptions);
}
- arg2 = (lldb::TypeSummaryCapping)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::TypeSummaryCapping)lua_tointeger(L, 2);
(arg1)->SetCapping(arg2);
return SWIG_arg;
@@ -63533,7 +64202,7 @@ static int _wrap_SBTypeSummary_CreateWithSummaryString__SWIG_0(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBTypeSummary::CreateWithSummaryString",1,"char const *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeSummary::CreateWithSummaryString",2,"uint32_t");
arg1 = (char *)lua_tostring(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = lldb::SBTypeSummary::CreateWithSummaryString((char const *)arg1,arg2);
{
lldb::SBTypeSummary * resultptr = new lldb::SBTypeSummary((const lldb::SBTypeSummary &) result);
@@ -63621,7 +64290,7 @@ static int _wrap_SBTypeSummary_CreateWithFunctionName__SWIG_0(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBTypeSummary::CreateWithFunctionName",1,"char const *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeSummary::CreateWithFunctionName",2,"uint32_t");
arg1 = (char *)lua_tostring(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = lldb::SBTypeSummary::CreateWithFunctionName((char const *)arg1,arg2);
{
lldb::SBTypeSummary * resultptr = new lldb::SBTypeSummary((const lldb::SBTypeSummary &) result);
@@ -63709,7 +64378,7 @@ static int _wrap_SBTypeSummary_CreateWithScriptCode__SWIG_0(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBTypeSummary::CreateWithScriptCode",1,"char const *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeSummary::CreateWithScriptCode",2,"uint32_t");
arg1 = (char *)lua_tostring(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = lldb::SBTypeSummary::CreateWithScriptCode((char const *)arg1,arg2);
{
lldb::SBTypeSummary * resultptr = new lldb::SBTypeSummary((const lldb::SBTypeSummary &) result);
@@ -64110,7 +64779,7 @@ static int _wrap_SBTypeSummary_SetOptions(lua_State* L) {
SWIG_fail_ptr("SBTypeSummary_SetOptions",1,SWIGTYPE_p_lldb__SBTypeSummary);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetOptions(arg2);
return SWIG_arg;
@@ -64133,7 +64802,7 @@ static int _wrap_SBTypeSummary_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeSummary::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeSummary::GetDescription",1,"lldb::SBTypeSummary *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeSummary::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeSummary::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeSummary::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeSummary,0))){
SWIG_fail_ptr("SBTypeSummary_GetDescription",1,SWIGTYPE_p_lldb__SBTypeSummary);
@@ -64144,7 +64813,7 @@ static int _wrap_SBTypeSummary_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeSummary_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -64305,7 +64974,7 @@ static int _wrap_SBTypeSynthetic_CreateWithClassName__SWIG_0(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBTypeSynthetic::CreateWithClassName",1,"char const *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeSynthetic::CreateWithClassName",2,"uint32_t");
arg1 = (char *)lua_tostring(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = lldb::SBTypeSynthetic::CreateWithClassName((char const *)arg1,arg2);
{
lldb::SBTypeSynthetic * resultptr = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &) result);
@@ -64393,7 +65062,7 @@ static int _wrap_SBTypeSynthetic_CreateWithScriptCode__SWIG_0(lua_State* L) {
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("lldb::SBTypeSynthetic::CreateWithScriptCode",1,"char const *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBTypeSynthetic::CreateWithScriptCode",2,"uint32_t");
arg1 = (char *)lua_tostring(L, 1);
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = lldb::SBTypeSynthetic::CreateWithScriptCode((char const *)arg1,arg2);
{
lldb::SBTypeSynthetic * resultptr = new lldb::SBTypeSynthetic((const lldb::SBTypeSynthetic &) result);
@@ -64720,7 +65389,7 @@ static int _wrap_SBTypeSynthetic_SetOptions(lua_State* L) {
SWIG_fail_ptr("SBTypeSynthetic_SetOptions",1,SWIGTYPE_p_lldb__SBTypeSynthetic);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetOptions(arg2);
return SWIG_arg;
@@ -64743,7 +65412,7 @@ static int _wrap_SBTypeSynthetic_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBTypeSynthetic::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTypeSynthetic::GetDescription",1,"lldb::SBTypeSynthetic *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBTypeSynthetic::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBTypeSynthetic::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBTypeSynthetic::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTypeSynthetic,0))){
SWIG_fail_ptr("SBTypeSynthetic_GetDescription",1,SWIGTYPE_p_lldb__SBTypeSynthetic);
@@ -64754,7 +65423,7 @@ static int _wrap_SBTypeSynthetic_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBTypeSynthetic_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -65019,7 +65688,7 @@ static int _wrap_SBUnixSignals_GetSignalAsCString(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_GetSignalAsCString",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
result = (char *)((lldb::SBUnixSignals const *)arg1)->GetSignalAsCString(arg2);
lua_pushstring(L,(const char *)result); SWIG_arg++;
return SWIG_arg;
@@ -65073,7 +65742,7 @@ static int _wrap_SBUnixSignals_GetShouldSuppress(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_GetShouldSuppress",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
result = (bool)((lldb::SBUnixSignals const *)arg1)->GetShouldSuppress(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -65102,7 +65771,7 @@ static int _wrap_SBUnixSignals_SetShouldSuppress(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_SetShouldSuppress",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
result = (bool)(arg1)->SetShouldSuppress(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
@@ -65130,7 +65799,7 @@ static int _wrap_SBUnixSignals_GetShouldStop(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_GetShouldStop",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
result = (bool)((lldb::SBUnixSignals const *)arg1)->GetShouldStop(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -65159,7 +65828,7 @@ static int _wrap_SBUnixSignals_SetShouldStop(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_SetShouldStop",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
result = (bool)(arg1)->SetShouldStop(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
@@ -65187,7 +65856,7 @@ static int _wrap_SBUnixSignals_GetShouldNotify(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_GetShouldNotify",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
result = (bool)((lldb::SBUnixSignals const *)arg1)->GetShouldNotify(arg2);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -65216,7 +65885,7 @@ static int _wrap_SBUnixSignals_SetShouldNotify(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_SetShouldNotify",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
arg3 = (lua_toboolean(L, 3)!=0);
result = (bool)(arg1)->SetShouldNotify(arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
@@ -65268,7 +65937,7 @@ static int _wrap_SBUnixSignals_GetSignalAtIndex(lua_State* L) {
SWIG_fail_ptr("SBUnixSignals_GetSignalAtIndex",1,SWIGTYPE_p_lldb__SBUnixSignals);
}
- arg2 = (signed int)lua_tointeger(L, 2);
+ arg2 = (int32_t)lua_tointeger(L, 2);
result = (int32_t)((lldb::SBUnixSignals const *)arg1)->GetSignalAtIndex(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -65645,7 +66314,7 @@ static int _wrap_SBValue_GetFormat(lua_State* L) {
}
result = (lldb::Format)(arg1)->GetFormat();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -65663,13 +66332,13 @@ static int _wrap_SBValue_SetFormat(lua_State* L) {
SWIG_check_num_args("lldb::SBValue::SetFormat",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBValue::SetFormat",1,"lldb::SBValue *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBValue::SetFormat",2,"lldb::Format");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBValue::SetFormat",2,"lldb::Format");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBValue,0))){
SWIG_fail_ptr("SBValue_SetFormat",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (lldb::Format)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::Format)lua_tointeger(L, 2);
(arg1)->SetFormat(arg2);
return SWIG_arg;
@@ -65727,7 +66396,7 @@ static int _wrap_SBValue_GetValueAsSigned__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBValue_GetValueAsSigned",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (signed long long)lua_tointeger(L, 3);
+ arg3 = (int64_t)lua_tointeger(L, 3);
result = (int64_t)(arg1)->GetValueAsSigned(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -65792,7 +66461,7 @@ static int _wrap_SBValue_GetValueAsUnsigned__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBValue_GetValueAsUnsigned",2,SWIGTYPE_p_lldb__SBError);
}
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (uint64_t)lua_tointeger(L, 3);
result = (uint64_t)(arg1)->GetValueAsUnsigned(*arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -65850,7 +66519,7 @@ static int _wrap_SBValue_GetValueAsSigned__SWIG_2(lua_State* L) {
SWIG_fail_ptr("SBValue_GetValueAsSigned",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (signed long long)lua_tointeger(L, 2);
+ arg2 = (int64_t)lua_tointeger(L, 2);
result = (int64_t)(arg1)->GetValueAsSigned(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -66005,7 +66674,7 @@ static int _wrap_SBValue_GetValueAsUnsigned__SWIG_2(lua_State* L) {
SWIG_fail_ptr("SBValue_GetValueAsUnsigned",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (uint64_t)lua_tointeger(L, 2);
result = (uint64_t)(arg1)->GetValueAsUnsigned(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -66159,7 +66828,7 @@ static int _wrap_SBValue_GetValueType(lua_State* L) {
}
result = (lldb::ValueType)(arg1)->GetValueType();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -66352,13 +67021,13 @@ static int _wrap_SBValue_GetDynamicValue(lua_State* L) {
SWIG_check_num_args("lldb::SBValue::GetDynamicValue",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBValue::GetDynamicValue",1,"lldb::SBValue *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBValue::GetDynamicValue",2,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBValue::GetDynamicValue",2,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBValue,0))){
SWIG_fail_ptr("SBValue_GetDynamicValue",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (lldb::DynamicValueType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::DynamicValueType)lua_tointeger(L, 2);
result = (arg1)->GetDynamicValue(arg2);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -66441,7 +67110,7 @@ static int _wrap_SBValue_GetPreferDynamicValue(lua_State* L) {
}
result = (lldb::DynamicValueType)(arg1)->GetPreferDynamicValue();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -66459,13 +67128,13 @@ static int _wrap_SBValue_SetPreferDynamicValue(lua_State* L) {
SWIG_check_num_args("lldb::SBValue::SetPreferDynamicValue",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBValue::SetPreferDynamicValue",1,"lldb::SBValue *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBValue::SetPreferDynamicValue",2,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBValue::SetPreferDynamicValue",2,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBValue,0))){
SWIG_fail_ptr("SBValue_SetPreferDynamicValue",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (lldb::DynamicValueType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::DynamicValueType)lua_tointeger(L, 2);
(arg1)->SetPreferDynamicValue(arg2);
return SWIG_arg;
@@ -66897,7 +67566,7 @@ static int _wrap_SBValue_GetChildAtIndex__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBValue_GetChildAtIndex",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetChildAtIndex(arg2);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -66924,15 +67593,15 @@ static int _wrap_SBValue_GetChildAtIndex__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBValue::GetChildAtIndex",4,4)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBValue::GetChildAtIndex",1,"lldb::SBValue *");
if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBValue::GetChildAtIndex",2,"uint32_t");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBValue::GetChildAtIndex",3,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBValue::GetChildAtIndex",3,"lldb::DynamicValueType");
if(!lua_isboolean(L,4)) SWIG_fail_arg("lldb::SBValue::GetChildAtIndex",4,"bool");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBValue,0))){
SWIG_fail_ptr("SBValue_GetChildAtIndex",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
- arg3 = (lldb::DynamicValueType)(int)lua_tonumber(L, 3);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ arg3 = (lldb::DynamicValueType)lua_tointeger(L, 3);
arg4 = (lua_toboolean(L, 4)!=0);
result = (arg1)->GetChildAtIndex(arg2,arg3,arg4);
{
@@ -67033,7 +67702,7 @@ static int _wrap_SBValue_CreateChildAtOffset(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&argp4,SWIGTYPE_p_lldb__SBType,0))){
SWIG_fail_ptr("SBValue_CreateChildAtOffset",4,SWIGTYPE_p_lldb__SBType);
@@ -67258,7 +67927,7 @@ static int _wrap_SBValue_CreateValueFromAddress(lua_State* L) {
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (unsigned long long)lua_tointeger(L, 3);
+ arg3 = (lldb::addr_t)lua_tointeger(L, 3);
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&argp4,SWIGTYPE_p_lldb__SBType,0))){
SWIG_fail_ptr("SBValue_CreateValueFromAddress",4,SWIGTYPE_p_lldb__SBType);
@@ -67422,14 +68091,14 @@ static int _wrap_SBValue_GetChildMemberWithName__SWIG_1(lua_State* L) {
SWIG_check_num_args("lldb::SBValue::GetChildMemberWithName",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBValue::GetChildMemberWithName",1,"lldb::SBValue *");
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBValue::GetChildMemberWithName",2,"char const *");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBValue::GetChildMemberWithName",3,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBValue::GetChildMemberWithName",3,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBValue,0))){
SWIG_fail_ptr("SBValue_GetChildMemberWithName",1,SWIGTYPE_p_lldb__SBValue);
}
arg2 = (char *)lua_tostring(L, 2);
- arg3 = (lldb::DynamicValueType)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DynamicValueType)lua_tointeger(L, 3);
result = (arg1)->GetChildMemberWithName((char const *)arg2,arg3);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -67647,7 +68316,7 @@ static int _wrap_SBValue_GetNumChildren__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBValue_GetNumChildren",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (uint32_t)(arg1)->GetNumChildren(arg2);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
@@ -68083,8 +68752,8 @@ static int _wrap_SBValue_GetPointeeData__SWIG_0(lua_State* L) {
SWIG_fail_ptr("SBValue_GetPointeeData",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
- arg3 = (unsigned int)lua_tointeger(L, 3);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
+ arg3 = (uint32_t)lua_tointeger(L, 3);
result = (arg1)->GetPointeeData(arg2,arg3);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
@@ -68114,7 +68783,7 @@ static int _wrap_SBValue_GetPointeeData__SWIG_1(lua_State* L) {
SWIG_fail_ptr("SBValue_GetPointeeData",1,SWIGTYPE_p_lldb__SBValue);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = (arg1)->GetPointeeData(arg2);
{
lldb::SBData * resultptr = new lldb::SBData((const lldb::SBData &) result);
@@ -69107,7 +69776,7 @@ static int _wrap_SBValueList_GetValueAtIndex(lua_State* L) {
SWIG_fail_ptr("SBValueList_GetValueAtIndex",1,SWIGTYPE_p_lldb__SBValueList);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
result = ((lldb::SBValueList const *)arg1)->GetValueAtIndex(arg2);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -69137,7 +69806,7 @@ static int _wrap_SBValueList_FindValueObjectByUID(lua_State* L) {
SWIG_fail_ptr("SBValueList_FindValueObjectByUID",1,SWIGTYPE_p_lldb__SBValueList);
}
- arg2 = (unsigned long long)lua_tointeger(L, 2);
+ arg2 = (lldb::user_id_t)lua_tointeger(L, 2);
result = (arg1)->FindValueObjectByUID(arg2);
{
lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
@@ -69681,7 +70350,7 @@ static int _wrap_SBVariablesOptions_GetUseDynamic(lua_State* L) {
}
result = (lldb::DynamicValueType)((lldb::SBVariablesOptions const *)arg1)->GetUseDynamic();
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -69699,13 +70368,13 @@ static int _wrap_SBVariablesOptions_SetUseDynamic(lua_State* L) {
SWIG_check_num_args("lldb::SBVariablesOptions::SetUseDynamic",2,2)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBVariablesOptions::SetUseDynamic",1,"lldb::SBVariablesOptions *");
- if(!lua_isnumber(L,2)) SWIG_fail_arg("lldb::SBVariablesOptions::SetUseDynamic",2,"lldb::DynamicValueType");
+ if(!lua_isinteger(L,2)) SWIG_fail_arg("lldb::SBVariablesOptions::SetUseDynamic",2,"lldb::DynamicValueType");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBVariablesOptions,0))){
SWIG_fail_ptr("SBVariablesOptions_SetUseDynamic",1,SWIGTYPE_p_lldb__SBVariablesOptions);
}
- arg2 = (lldb::DynamicValueType)(int)lua_tonumber(L, 2);
+ arg2 = (lldb::DynamicValueType)lua_tointeger(L, 2);
(arg1)->SetUseDynamic(arg2);
return SWIG_arg;
@@ -70143,7 +70812,7 @@ static int _wrap_SBWatchpoint_SetIgnoreCount(lua_State* L) {
SWIG_fail_ptr("SBWatchpoint_SetIgnoreCount",1,SWIGTYPE_p_lldb__SBWatchpoint);
}
- arg2 = (unsigned int)lua_tointeger(L, 2);
+ arg2 = (uint32_t)lua_tointeger(L, 2);
(arg1)->SetIgnoreCount(arg2);
return SWIG_arg;
@@ -70216,7 +70885,7 @@ static int _wrap_SBWatchpoint_GetDescription(lua_State* L) {
SWIG_check_num_args("lldb::SBWatchpoint::GetDescription",3,3)
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBWatchpoint::GetDescription",1,"lldb::SBWatchpoint *");
if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBWatchpoint::GetDescription",2,"lldb::SBStream &");
- if(!lua_isnumber(L,3)) SWIG_fail_arg("lldb::SBWatchpoint::GetDescription",3,"lldb::DescriptionLevel");
+ if(!lua_isinteger(L,3)) SWIG_fail_arg("lldb::SBWatchpoint::GetDescription",3,"lldb::DescriptionLevel");
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBWatchpoint,0))){
SWIG_fail_ptr("SBWatchpoint_GetDescription",1,SWIGTYPE_p_lldb__SBWatchpoint);
@@ -70227,7 +70896,7 @@ static int _wrap_SBWatchpoint_GetDescription(lua_State* L) {
SWIG_fail_ptr("SBWatchpoint_GetDescription",2,SWIGTYPE_p_lldb__SBStream);
}
- arg3 = (lldb::DescriptionLevel)(int)lua_tonumber(L, 3);
+ arg3 = (lldb::DescriptionLevel)lua_tointeger(L, 3);
result = (bool)(arg1)->GetDescription(*arg2,arg3);
lua_pushboolean(L,(int)(result!=0)); SWIG_arg++;
return SWIG_arg;
@@ -70277,7 +70946,7 @@ static int _wrap_SBWatchpoint_GetWatchpointEventTypeFromEvent(lua_State* L) {
}
result = (lldb::WatchpointEventType)lldb::SBWatchpoint::GetWatchpointEventTypeFromEvent((lldb::SBEvent const &)*arg1);
- lua_pushnumber(L, (lua_Number)(int)(result)); SWIG_arg++;
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
return SWIG_arg;
if(0) SWIG_fail;
@@ -70489,6 +71158,21 @@ LLDBSwigLuaWatchpointCallbackFunction
return stop;
}
+SWIGEXPORT void
+LLDBSwigLuaCallLuaLogOutputCallback(const char *str, void *baton) {
+ lua_State *L = (lua_State *)baton;
+
+ lua_pushlightuserdata(L, (void *)&LLDBSwigLuaCallLuaLogOutputCallback);
+ lua_gettable(L, LUA_REGISTRYINDEX);
+
+ // FIXME: There's no way to report errors back to the user
+ lua_pushstring(L, str);
+ lua_pcall(L, 1, 0, 0);
+}
+
+int LLDBSwigLuaCloseFileHandle(lua_State *L) {
+ return luaL_error(L, "You cannot close a file handle used by lldb.");
+}
static swig_lua_attribute swig_SwigModule_attributes[] = {
@@ -71205,6 +71889,7 @@ static swig_lua_const_info swig_SwigModule_constants[]= {
{SWIG_LUA_CONSTTAB_INT("eSaveCoreUnspecified", lldb::eSaveCoreUnspecified)},
{SWIG_LUA_CONSTTAB_INT("eSaveCoreFull", lldb::eSaveCoreFull)},
{SWIG_LUA_CONSTTAB_INT("eSaveCoreDirtyOnly", lldb::eSaveCoreDirtyOnly)},
+ {SWIG_LUA_CONSTTAB_INT("eSaveCoreStackOnly", lldb::eSaveCoreStackOnly)},
{SWIG_LUA_CONSTTAB_INT("SBCommandInterpreter_eBroadcastBitThreadShouldExit", lldb::SBCommandInterpreter::eBroadcastBitThreadShouldExit)},
{SWIG_LUA_CONSTTAB_INT("SBCommandInterpreter_eBroadcastBitResetPrompt", lldb::SBCommandInterpreter::eBroadcastBitResetPrompt)},
{SWIG_LUA_CONSTTAB_INT("SBCommandInterpreter_eBroadcastBitQuitCommandReceived", lldb::SBCommandInterpreter::eBroadcastBitQuitCommandReceived)},
@@ -71505,7 +72190,6 @@ static swig_type_info _swigt__p_lldb__SBVariablesOptions = {"_p_lldb__SBVariable
static swig_type_info _swigt__p_lldb__SBWatchpoint = {"_p_lldb__SBWatchpoint", "lldb::SBWatchpoint *", 0, 0, (void*)&_wrap_class_SBWatchpoint, 0};
static swig_type_info _swigt__p_long_double = {"_p_long_double", "long double *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_void = {"_p_p_void", "lldb::thread_result_t *|void **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pthread_rwlock_t = {"_p_pthread_rwlock_t", "pthread_rwlock_t *|lldb::rwlock_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pthread_t = {"_p_pthread_t", "pthread_t *|lldb::thread_t *", 0, 0, (void*)0, 0};
@@ -71523,14 +72207,12 @@ static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Breakpoint_t = {"
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__BroadcasterManager_t = {"_p_std__shared_ptrT_lldb_private__BroadcasterManager_t", "lldb::BroadcasterManagerSP *|std::shared_ptr< lldb_private::BroadcasterManager > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Broadcaster_t = {"_p_std__shared_ptrT_lldb_private__Broadcaster_t", "std::shared_ptr< lldb_private::Broadcaster > *|lldb::BroadcasterSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__CommandObject_t = {"_p_std__shared_ptrT_lldb_private__CommandObject_t", "lldb::CommandObjectSP *|std::shared_ptr< lldb_private::CommandObject > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Communication_t = {"_p_std__shared_ptrT_lldb_private__Communication_t", "lldb::CommunicationSP *|std::shared_ptr< lldb_private::Communication > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__CompileUnit_t = {"_p_std__shared_ptrT_lldb_private__CompileUnit_t", "lldb::CompUnitSP *|std::shared_ptr< lldb_private::CompileUnit > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Connection_t = {"_p_std__shared_ptrT_lldb_private__Connection_t", "lldb::ConnectionSP *|std::shared_ptr< lldb_private::Connection > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__DataBuffer_t = {"_p_std__shared_ptrT_lldb_private__DataBuffer_t", "std::shared_ptr< lldb_private::DataBuffer > *|lldb::DataBufferSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__DataExtractor_t = {"_p_std__shared_ptrT_lldb_private__DataExtractor_t", "std::shared_ptr< lldb_private::DataExtractor > *|lldb::DataExtractorSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Debugger_t = {"_p_std__shared_ptrT_lldb_private__Debugger_t", "std::shared_ptr< lldb_private::Debugger > *|lldb::DebuggerSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Disassembler_t = {"_p_std__shared_ptrT_lldb_private__Disassembler_t", "std::shared_ptr< lldb_private::Disassembler > *|lldb::DisassemblerSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__DynamicLoader_t = {"_p_std__shared_ptrT_lldb_private__DynamicLoader_t", "std::shared_ptr< lldb_private::DynamicLoader > *|lldb::DynamicLoaderSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__EventDataStructuredData_t = {"_p_std__shared_ptrT_lldb_private__EventDataStructuredData_t", "lldb::EventDataStructuredDataSP *|std::shared_ptr< lldb_private::EventDataStructuredData > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__EventData_t = {"_p_std__shared_ptrT_lldb_private__EventData_t", "lldb::EventDataSP *|std::shared_ptr< lldb_private::EventData > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Event_t = {"_p_std__shared_ptrT_lldb_private__Event_t", "lldb::EventSP *|std::shared_ptr< lldb_private::Event > *", 0, 0, (void*)0, 0};
@@ -71538,7 +72220,6 @@ static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ExecutionContextR
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ExpressionVariable_t = {"_p_std__shared_ptrT_lldb_private__ExpressionVariable_t", "std::shared_ptr< lldb_private::ExpressionVariable > *|lldb::ExpressionVariableSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__File_t = {"_p_std__shared_ptrT_lldb_private__File_t", "lldb::FileSP *|std::shared_ptr< lldb_private::File > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__FuncUnwinders_t = {"_p_std__shared_ptrT_lldb_private__FuncUnwinders_t", "std::shared_ptr< lldb_private::FuncUnwinders > *|lldb::FuncUnwindersSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__FunctionCaller_t = {"_p_std__shared_ptrT_lldb_private__FunctionCaller_t", "std::shared_ptr< lldb_private::FunctionCaller > *|lldb::FunctionCallerSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Function_t = {"_p_std__shared_ptrT_lldb_private__Function_t", "lldb::FunctionSP *|std::shared_ptr< lldb_private::Function > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__IOHandler_t = {"_p_std__shared_ptrT_lldb_private__IOHandler_t", "std::shared_ptr< lldb_private::IOHandler > *|lldb::IOHandlerSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__IOObject_t = {"_p_std__shared_ptrT_lldb_private__IOObject_t", "lldb::IOObjectSP *|std::shared_ptr< lldb_private::IOObject > *", 0, 0, (void*)0, 0};
@@ -71548,34 +72229,17 @@ static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Instruction_t = {
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t = {"_p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t", "lldb::InstrumentationRuntimeSP *|std::shared_ptr< lldb_private::InstrumentationRuntime > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__JITLoader_t = {"_p_std__shared_ptrT_lldb_private__JITLoader_t", "std::shared_ptr< lldb_private::JITLoader > *|lldb::JITLoaderSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__LanguageRuntime_t = {"_p_std__shared_ptrT_lldb_private__LanguageRuntime_t", "std::shared_ptr< lldb_private::LanguageRuntime > *|lldb::LanguageRuntimeSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__LineTable_t = {"_p_std__shared_ptrT_lldb_private__LineTable_t", "lldb::LineTableSP *|std::shared_ptr< lldb_private::LineTable > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Listener_t = {"_p_std__shared_ptrT_lldb_private__Listener_t", "std::shared_ptr< lldb_private::Listener > *|lldb::ListenerSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__MemoryHistory_t = {"_p_std__shared_ptrT_lldb_private__MemoryHistory_t", "lldb::MemoryHistorySP *|std::shared_ptr< lldb_private::MemoryHistory > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t = {"_p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t", "std::shared_ptr< lldb_private::MemoryRegionInfo > *|lldb::MemoryRegionInfoSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Module_t = {"_p_std__shared_ptrT_lldb_private__Module_t", "lldb::ModuleSP *|std::shared_ptr< lldb_private::Module > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t = {"_p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t", "lldb::ObjectFileJITDelegateSP *|std::shared_ptr< lldb_private::ObjectFileJITDelegate > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ObjectFile_t = {"_p_std__shared_ptrT_lldb_private__ObjectFile_t", "lldb::ObjectFileSP *|std::shared_ptr< lldb_private::ObjectFile > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueArch_t = {"_p_std__shared_ptrT_lldb_private__OptionValueArch_t", "std::shared_ptr< lldb_private::OptionValueArch > *|lldb::OptionValueArchSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueArgs_t = {"_p_std__shared_ptrT_lldb_private__OptionValueArgs_t", "std::shared_ptr< lldb_private::OptionValueArgs > *|lldb::OptionValueArgsSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueArray_t = {"_p_std__shared_ptrT_lldb_private__OptionValueArray_t", "std::shared_ptr< lldb_private::OptionValueArray > *|lldb::OptionValueArraySP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueBoolean_t = {"_p_std__shared_ptrT_lldb_private__OptionValueBoolean_t", "lldb::OptionValueBooleanSP *|std::shared_ptr< lldb_private::OptionValueBoolean > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueDictionary_t = {"_p_std__shared_ptrT_lldb_private__OptionValueDictionary_t", "lldb::OptionValueDictionarySP *|std::shared_ptr< lldb_private::OptionValueDictionary > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_t = {"_p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_t", "lldb::OptionValueFileSpecListSP *|std::shared_ptr< lldb_private::OptionValueFileSpecList > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueFileSpec_t = {"_p_std__shared_ptrT_lldb_private__OptionValueFileSpec_t", "lldb::OptionValueFileSpecSP *|std::shared_ptr< lldb_private::OptionValueFileSpec > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueFormat_t = {"_p_std__shared_ptrT_lldb_private__OptionValueFormat_t", "std::shared_ptr< lldb_private::OptionValueFormat > *|lldb::OptionValueFormatSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValuePathMappings_t = {"_p_std__shared_ptrT_lldb_private__OptionValuePathMappings_t", "std::shared_ptr< lldb_private::OptionValuePathMappings > *|lldb::OptionValuePathMappingsSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueProperties_t = {"_p_std__shared_ptrT_lldb_private__OptionValueProperties_t", "lldb::OptionValuePropertiesSP *|std::shared_ptr< lldb_private::OptionValueProperties > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueRegex_t = {"_p_std__shared_ptrT_lldb_private__OptionValueRegex_t", "std::shared_ptr< lldb_private::OptionValueRegex > *|lldb::OptionValueRegexSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueSInt64_t = {"_p_std__shared_ptrT_lldb_private__OptionValueSInt64_t", "std::shared_ptr< lldb_private::OptionValueSInt64 > *|lldb::OptionValueSInt64SP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueString_t = {"_p_std__shared_ptrT_lldb_private__OptionValueString_t", "std::shared_ptr< lldb_private::OptionValueString > *|lldb::OptionValueStringSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueUInt64_t = {"_p_std__shared_ptrT_lldb_private__OptionValueUInt64_t", "std::shared_ptr< lldb_private::OptionValueUInt64 > *|lldb::OptionValueUInt64SP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValueUUID_t = {"_p_std__shared_ptrT_lldb_private__OptionValueUUID_t", "std::shared_ptr< lldb_private::OptionValueUUID > *|lldb::OptionValueUUIDSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__OptionValue_t = {"_p_std__shared_ptrT_lldb_private__OptionValue_t", "std::shared_ptr< lldb_private::OptionValue > *|lldb::OptionValueSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Platform_t = {"_p_std__shared_ptrT_lldb_private__Platform_t", "std::shared_ptr< lldb_private::Platform > *|lldb::PlatformSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t = {"_p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t", "lldb::ProcessAttachInfoSP *|std::shared_ptr< lldb_private::ProcessAttachInfo > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_t = {"_p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_t", "lldb::ProcessLaunchInfoSP *|std::shared_ptr< lldb_private::ProcessLaunchInfo > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Process_t = {"_p_std__shared_ptrT_lldb_private__Process_t", "lldb::ProcessSP *|std::shared_ptr< lldb_private::Process > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Property_t = {"_p_std__shared_ptrT_lldb_private__Property_t", "lldb::PropertySP *|std::shared_ptr< lldb_private::Property > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__QueueItem_t = {"_p_std__shared_ptrT_lldb_private__QueueItem_t", "std::shared_ptr< lldb_private::QueueItem > *|lldb::QueueItemSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Queue_t = {"_p_std__shared_ptrT_lldb_private__Queue_t", "std::shared_ptr< lldb_private::Queue > *|lldb::QueueSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__REPL_t = {"_p_std__shared_ptrT_lldb_private__REPL_t", "lldb::REPLSP *|std::shared_ptr< lldb_private::REPL > *", 0, 0, (void*)0, 0};
@@ -71586,10 +72250,10 @@ static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__RegularExpression
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ScriptInterpreter_t = {"_p_std__shared_ptrT_lldb_private__ScriptInterpreter_t", "std::shared_ptr< lldb_private::ScriptInterpreter > *|lldb::ScriptInterpreterSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t = {"_p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t", "lldb::ScriptSummaryFormatSP *|std::shared_ptr< lldb_private::ScriptSummaryFormat > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t = {"_p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t", "std::shared_ptr< lldb_private::ScriptedSyntheticChildren > *|lldb::ScriptedSyntheticChildrenSP *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ScriptedThreadInterface_t = {"_p_std__shared_ptrT_lldb_private__ScriptedThreadInterface_t", "lldb::ScriptedThreadInterfaceSP *|std::shared_ptr< lldb_private::ScriptedThreadInterface > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SearchFilter_t = {"_p_std__shared_ptrT_lldb_private__SearchFilter_t", "std::shared_ptr< lldb_private::SearchFilter > *|lldb::SearchFilterSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SectionLoadList_t = {"_p_std__shared_ptrT_lldb_private__SectionLoadList_t", "std::shared_ptr< lldb_private::SectionLoadList > *|lldb::SectionLoadListSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Section_t = {"_p_std__shared_ptrT_lldb_private__Section_t", "lldb::SectionSP *|std::shared_ptr< lldb_private::Section > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Settings_t = {"_p_std__shared_ptrT_lldb_private__Settings_t", "std::shared_ptr< lldb_private::Settings > *|lldb::SettingsSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__StackFrameList_t = {"_p_std__shared_ptrT_lldb_private__StackFrameList_t", "std::shared_ptr< lldb_private::StackFrameList > *|lldb::StackFrameListSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t = {"_p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t", "std::shared_ptr< lldb_private::StackFrameRecognizer > *|lldb::StackFrameRecognizerSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__StackFrame_t = {"_p_std__shared_ptrT_lldb_private__StackFrame_t", "std::shared_ptr< lldb_private::StackFrame > *|lldb::StackFrameSP *", 0, 0, (void*)0, 0};
@@ -71600,11 +72264,8 @@ static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__StringSummaryForm
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t = {"_p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t", "lldb::StructuredDataPluginSP *|std::shared_ptr< lldb_private::StructuredDataPlugin > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t = {"_p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t", "lldb::SymbolContextSpecifierSP *|std::shared_ptr< lldb_private::SymbolContextSpecifier > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SymbolFileType_t = {"_p_std__shared_ptrT_lldb_private__SymbolFileType_t", "lldb::SymbolFileTypeSP *|std::shared_ptr< lldb_private::SymbolFileType > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SymbolFile_t = {"_p_std__shared_ptrT_lldb_private__SymbolFile_t", "lldb::SymbolFileSP *|std::shared_ptr< lldb_private::SymbolFile > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t = {"_p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t", "lldb::SyntheticChildrenFrontEndSP *|std::shared_ptr< lldb_private::SyntheticChildrenFrontEnd > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SyntheticChildren_t = {"_p_std__shared_ptrT_lldb_private__SyntheticChildren_t", "std::shared_ptr< lldb_private::SyntheticChildren > *|lldb::SyntheticChildrenSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__SystemRuntime_t = {"_p_std__shared_ptrT_lldb_private__SystemRuntime_t", "std::shared_ptr< lldb_private::SystemRuntime > *|lldb::SystemRuntimeSP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__TargetProperties_t = {"_p_std__shared_ptrT_lldb_private__TargetProperties_t", "std::shared_ptr< lldb_private::TargetProperties > *|lldb::TargetPropertiesSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Target_t = {"_p_std__shared_ptrT_lldb_private__Target_t", "std::shared_ptr< lldb_private::Target > *|lldb::TargetSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ThreadCollection_t = {"_p_std__shared_ptrT_lldb_private__ThreadCollection_t", "std::shared_ptr< lldb_private::ThreadCollection > *|lldb::ThreadCollectionSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t = {"_p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t", "std::shared_ptr< lldb_private::ThreadPlanTracer > *|lldb::ThreadPlanTracerSP *", 0, 0, (void*)0, 0};
@@ -71627,8 +72288,6 @@ static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__UnixSignals_t = {
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__UnwindAssembly_t = {"_p_std__shared_ptrT_lldb_private__UnwindAssembly_t", "std::shared_ptr< lldb_private::UnwindAssembly > *|lldb::UnwindAssemblySP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__UnwindPlan_t = {"_p_std__shared_ptrT_lldb_private__UnwindPlan_t", "lldb::UnwindPlanSP *|std::shared_ptr< lldb_private::UnwindPlan > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__UserExpression_t = {"_p_std__shared_ptrT_lldb_private__UserExpression_t", "lldb::UserExpressionSP *|std::shared_ptr< lldb_private::UserExpression > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__UtilityFunction_t = {"_p_std__shared_ptrT_lldb_private__UtilityFunction_t", "lldb::UtilityFunctionSP *|std::shared_ptr< lldb_private::UtilityFunction > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ValueList_t = {"_p_std__shared_ptrT_lldb_private__ValueList_t", "std::shared_ptr< lldb_private::ValueList > *|lldb::ValueListSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ValueObjectList_t = {"_p_std__shared_ptrT_lldb_private__ValueObjectList_t", "std::shared_ptr< lldb_private::ValueObjectList > *|lldb::ValueObjectListSP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__ValueObject_t = {"_p_std__shared_ptrT_lldb_private__ValueObject_t", "lldb::ValueObjectSP *|std::shared_ptr< lldb_private::ValueObject > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_lldb_private__Value_t = {"_p_std__shared_ptrT_lldb_private__Value_t", "std::shared_ptr< lldb_private::Value > *|lldb::ValueSP *", 0, 0, (void*)0, 0};
@@ -71642,34 +72301,28 @@ static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__File_t = {"_p_std
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__JITLoaderList_t = {"_p_std__unique_ptrT_lldb_private__JITLoaderList_t", "lldb::JITLoaderListUP *|std::unique_ptr< lldb_private::JITLoaderList > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t = {"_p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t", "std::unique_ptr< lldb_private::MemoryRegionInfo > *|lldb::MemoryRegionInfoUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__OperatingSystem_t = {"_p_std__unique_ptrT_lldb_private__OperatingSystem_t", "lldb::OperatingSystemUP *|std::unique_ptr< lldb_private::OperatingSystem > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__ScriptInterpreter_t = {"_p_std__unique_ptrT_lldb_private__ScriptInterpreter_t", "std::unique_ptr< lldb_private::ScriptInterpreter > *|lldb::ScriptInterpreterUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t = {"_p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t", "std::unique_ptr< lldb_private::ScriptedProcessInterface > *|lldb::ScriptedProcessInterfaceUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__SectionList_t = {"_p_std__unique_ptrT_lldb_private__SectionList_t", "lldb::SectionListUP *|std::unique_ptr< lldb_private::SectionList > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__SourceManager_t = {"_p_std__unique_ptrT_lldb_private__SourceManager_t", "std::unique_ptr< lldb_private::SourceManager > *|lldb::SourceManagerUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t = {"_p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t", "std::unique_ptr< lldb_private::StackFrameRecognizerManager > *|lldb::StackFrameRecognizerManagerUP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__StackFrame_t = {"_p_std__unique_ptrT_lldb_private__StackFrame_t", "std::unique_ptr< lldb_private::StackFrame > *|lldb::StackFrameUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__StructuredDataImpl_t = {"_p_std__unique_ptrT_lldb_private__StructuredDataImpl_t", "std::unique_ptr< lldb_private::StructuredDataImpl > *|lldb::StructuredDataImplUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__SymbolVendor_t = {"_p_std__unique_ptrT_lldb_private__SymbolVendor_t", "std::unique_ptr< lldb_private::SymbolVendor > *|lldb::SymbolVendorUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__SystemRuntime_t = {"_p_std__unique_ptrT_lldb_private__SystemRuntime_t", "std::unique_ptr< lldb_private::SystemRuntime > *|lldb::SystemRuntimeUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__TraceCursor_t = {"_p_std__unique_ptrT_lldb_private__TraceCursor_t", "std::unique_ptr< lldb_private::TraceCursor > *|lldb::TraceCursorUP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__unique_ptrT_lldb_private__TraceExporter_t = {"_p_std__unique_ptrT_lldb_private__TraceExporter_t", "lldb::TraceExporterUP *|std::unique_ptr< lldb_private::TraceExporter > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__BreakpointLocation_t = {"_p_std__weak_ptrT_lldb_private__BreakpointLocation_t", "std::weak_ptr< lldb_private::BreakpointLocation > *|lldb::BreakpointLocationWP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__BreakpointSite_t = {"_p_std__weak_ptrT_lldb_private__BreakpointSite_t", "std::weak_ptr< lldb_private::BreakpointSite > *|lldb::BreakpointSiteWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Breakpoint_t = {"_p_std__weak_ptrT_lldb_private__Breakpoint_t", "std::weak_ptr< lldb_private::Breakpoint > *|lldb::BreakpointWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__BroadcasterManager_t = {"_p_std__weak_ptrT_lldb_private__BroadcasterManager_t", "std::weak_ptr< lldb_private::BroadcasterManager > *|lldb::BroadcasterManagerWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Debugger_t = {"_p_std__weak_ptrT_lldb_private__Debugger_t", "std::weak_ptr< lldb_private::Debugger > *|lldb::DebuggerWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Listener_t = {"_p_std__weak_ptrT_lldb_private__Listener_t", "std::weak_ptr< lldb_private::Listener > *|lldb::ListenerWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Module_t = {"_p_std__weak_ptrT_lldb_private__Module_t", "std::weak_ptr< lldb_private::Module > *|lldb::ModuleWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t = {"_p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t", "lldb::ObjectFileJITDelegateWP *|std::weak_ptr< lldb_private::ObjectFileJITDelegate > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__ObjectFile_t = {"_p_std__weak_ptrT_lldb_private__ObjectFile_t", "std::weak_ptr< lldb_private::ObjectFile > *|lldb::ObjectFileWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__OptionValue_t = {"_p_std__weak_ptrT_lldb_private__OptionValue_t", "std::weak_ptr< lldb_private::OptionValue > *|lldb::OptionValueWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Process_t = {"_p_std__weak_ptrT_lldb_private__Process_t", "std::weak_ptr< lldb_private::Process > *|lldb::ProcessWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Queue_t = {"_p_std__weak_ptrT_lldb_private__Queue_t", "std::weak_ptr< lldb_private::Queue > *|lldb::QueueWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Section_t = {"_p_std__weak_ptrT_lldb_private__Section_t", "std::weak_ptr< lldb_private::Section > *|lldb::SectionWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__StackFrame_t = {"_p_std__weak_ptrT_lldb_private__StackFrame_t", "std::weak_ptr< lldb_private::StackFrame > *|lldb::StackFrameWP *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Stream_t = {"_p_std__weak_ptrT_lldb_private__Stream_t", "std::weak_ptr< lldb_private::Stream > *|lldb::StreamWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t = {"_p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t", "lldb::StructuredDataPluginWP *|std::weak_ptr< lldb_private::StructuredDataPlugin > *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__SymbolFileType_t = {"_p_std__weak_ptrT_lldb_private__SymbolFileType_t", "std::weak_ptr< lldb_private::SymbolFileType > *|lldb::SymbolFileTypeWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Target_t = {"_p_std__weak_ptrT_lldb_private__Target_t", "std::weak_ptr< lldb_private::Target > *|lldb::TargetWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__ThreadPlan_t = {"_p_std__weak_ptrT_lldb_private__ThreadPlan_t", "std::weak_ptr< lldb_private::ThreadPlan > *|lldb::ThreadPlanWP *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__weak_ptrT_lldb_private__Thread_t = {"_p_std__weak_ptrT_lldb_private__Thread_t", "std::weak_ptr< lldb_private::Thread > *|lldb::ThreadWP *", 0, 0, (void*)0, 0};
@@ -71768,7 +72421,6 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_lldb__SBWatchpoint,
&_swigt__p_long_double,
&_swigt__p_long_long,
- &_swigt__p_p_char,
&_swigt__p_p_void,
&_swigt__p_pthread_rwlock_t,
&_swigt__p_pthread_t,
@@ -71786,14 +72438,12 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_std__shared_ptrT_lldb_private__BroadcasterManager_t,
&_swigt__p_std__shared_ptrT_lldb_private__Broadcaster_t,
&_swigt__p_std__shared_ptrT_lldb_private__CommandObject_t,
- &_swigt__p_std__shared_ptrT_lldb_private__Communication_t,
&_swigt__p_std__shared_ptrT_lldb_private__CompileUnit_t,
&_swigt__p_std__shared_ptrT_lldb_private__Connection_t,
&_swigt__p_std__shared_ptrT_lldb_private__DataBuffer_t,
&_swigt__p_std__shared_ptrT_lldb_private__DataExtractor_t,
&_swigt__p_std__shared_ptrT_lldb_private__Debugger_t,
&_swigt__p_std__shared_ptrT_lldb_private__Disassembler_t,
- &_swigt__p_std__shared_ptrT_lldb_private__DynamicLoader_t,
&_swigt__p_std__shared_ptrT_lldb_private__EventDataStructuredData_t,
&_swigt__p_std__shared_ptrT_lldb_private__EventData_t,
&_swigt__p_std__shared_ptrT_lldb_private__Event_t,
@@ -71801,7 +72451,6 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_std__shared_ptrT_lldb_private__ExpressionVariable_t,
&_swigt__p_std__shared_ptrT_lldb_private__File_t,
&_swigt__p_std__shared_ptrT_lldb_private__FuncUnwinders_t,
- &_swigt__p_std__shared_ptrT_lldb_private__FunctionCaller_t,
&_swigt__p_std__shared_ptrT_lldb_private__Function_t,
&_swigt__p_std__shared_ptrT_lldb_private__IOHandler_t,
&_swigt__p_std__shared_ptrT_lldb_private__IOObject_t,
@@ -71811,34 +72460,17 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t,
&_swigt__p_std__shared_ptrT_lldb_private__JITLoader_t,
&_swigt__p_std__shared_ptrT_lldb_private__LanguageRuntime_t,
- &_swigt__p_std__shared_ptrT_lldb_private__LineTable_t,
&_swigt__p_std__shared_ptrT_lldb_private__Listener_t,
&_swigt__p_std__shared_ptrT_lldb_private__MemoryHistory_t,
&_swigt__p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t,
&_swigt__p_std__shared_ptrT_lldb_private__Module_t,
&_swigt__p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t,
&_swigt__p_std__shared_ptrT_lldb_private__ObjectFile_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueArch_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueArgs_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueArray_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueBoolean_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueDictionary_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueFileSpec_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueFormat_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValuePathMappings_t,
&_swigt__p_std__shared_ptrT_lldb_private__OptionValueProperties_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueRegex_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueSInt64_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueString_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueUInt64_t,
- &_swigt__p_std__shared_ptrT_lldb_private__OptionValueUUID_t,
&_swigt__p_std__shared_ptrT_lldb_private__OptionValue_t,
&_swigt__p_std__shared_ptrT_lldb_private__Platform_t,
&_swigt__p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t,
- &_swigt__p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_t,
&_swigt__p_std__shared_ptrT_lldb_private__Process_t,
- &_swigt__p_std__shared_ptrT_lldb_private__Property_t,
&_swigt__p_std__shared_ptrT_lldb_private__QueueItem_t,
&_swigt__p_std__shared_ptrT_lldb_private__Queue_t,
&_swigt__p_std__shared_ptrT_lldb_private__REPL_t,
@@ -71849,10 +72481,10 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_std__shared_ptrT_lldb_private__ScriptInterpreter_t,
&_swigt__p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t,
&_swigt__p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t,
+ &_swigt__p_std__shared_ptrT_lldb_private__ScriptedThreadInterface_t,
&_swigt__p_std__shared_ptrT_lldb_private__SearchFilter_t,
&_swigt__p_std__shared_ptrT_lldb_private__SectionLoadList_t,
&_swigt__p_std__shared_ptrT_lldb_private__Section_t,
- &_swigt__p_std__shared_ptrT_lldb_private__Settings_t,
&_swigt__p_std__shared_ptrT_lldb_private__StackFrameList_t,
&_swigt__p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t,
&_swigt__p_std__shared_ptrT_lldb_private__StackFrame_t,
@@ -71863,11 +72495,8 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t,
&_swigt__p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t,
&_swigt__p_std__shared_ptrT_lldb_private__SymbolFileType_t,
- &_swigt__p_std__shared_ptrT_lldb_private__SymbolFile_t,
&_swigt__p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t,
&_swigt__p_std__shared_ptrT_lldb_private__SyntheticChildren_t,
- &_swigt__p_std__shared_ptrT_lldb_private__SystemRuntime_t,
- &_swigt__p_std__shared_ptrT_lldb_private__TargetProperties_t,
&_swigt__p_std__shared_ptrT_lldb_private__Target_t,
&_swigt__p_std__shared_ptrT_lldb_private__ThreadCollection_t,
&_swigt__p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t,
@@ -71890,8 +72519,6 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_std__shared_ptrT_lldb_private__UnwindAssembly_t,
&_swigt__p_std__shared_ptrT_lldb_private__UnwindPlan_t,
&_swigt__p_std__shared_ptrT_lldb_private__UserExpression_t,
- &_swigt__p_std__shared_ptrT_lldb_private__UtilityFunction_t,
- &_swigt__p_std__shared_ptrT_lldb_private__ValueList_t,
&_swigt__p_std__shared_ptrT_lldb_private__ValueObjectList_t,
&_swigt__p_std__shared_ptrT_lldb_private__ValueObject_t,
&_swigt__p_std__shared_ptrT_lldb_private__Value_t,
@@ -71905,34 +72532,28 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_std__unique_ptrT_lldb_private__JITLoaderList_t,
&_swigt__p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t,
&_swigt__p_std__unique_ptrT_lldb_private__OperatingSystem_t,
- &_swigt__p_std__unique_ptrT_lldb_private__ScriptInterpreter_t,
&_swigt__p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t,
&_swigt__p_std__unique_ptrT_lldb_private__SectionList_t,
&_swigt__p_std__unique_ptrT_lldb_private__SourceManager_t,
&_swigt__p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t,
- &_swigt__p_std__unique_ptrT_lldb_private__StackFrame_t,
&_swigt__p_std__unique_ptrT_lldb_private__StructuredDataImpl_t,
&_swigt__p_std__unique_ptrT_lldb_private__SymbolVendor_t,
&_swigt__p_std__unique_ptrT_lldb_private__SystemRuntime_t,
&_swigt__p_std__unique_ptrT_lldb_private__TraceCursor_t,
&_swigt__p_std__unique_ptrT_lldb_private__TraceExporter_t,
&_swigt__p_std__weak_ptrT_lldb_private__BreakpointLocation_t,
- &_swigt__p_std__weak_ptrT_lldb_private__BreakpointSite_t,
&_swigt__p_std__weak_ptrT_lldb_private__Breakpoint_t,
&_swigt__p_std__weak_ptrT_lldb_private__BroadcasterManager_t,
&_swigt__p_std__weak_ptrT_lldb_private__Debugger_t,
&_swigt__p_std__weak_ptrT_lldb_private__Listener_t,
&_swigt__p_std__weak_ptrT_lldb_private__Module_t,
&_swigt__p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t,
- &_swigt__p_std__weak_ptrT_lldb_private__ObjectFile_t,
&_swigt__p_std__weak_ptrT_lldb_private__OptionValue_t,
&_swigt__p_std__weak_ptrT_lldb_private__Process_t,
&_swigt__p_std__weak_ptrT_lldb_private__Queue_t,
&_swigt__p_std__weak_ptrT_lldb_private__Section_t,
&_swigt__p_std__weak_ptrT_lldb_private__StackFrame_t,
- &_swigt__p_std__weak_ptrT_lldb_private__Stream_t,
&_swigt__p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t,
- &_swigt__p_std__weak_ptrT_lldb_private__SymbolFileType_t,
&_swigt__p_std__weak_ptrT_lldb_private__Target_t,
&_swigt__p_std__weak_ptrT_lldb_private__ThreadPlan_t,
&_swigt__p_std__weak_ptrT_lldb_private__Thread_t,
@@ -72031,7 +72652,6 @@ static swig_cast_info _swigc__p_lldb__SBVariablesOptions[] = { {&_swigt__p_lldb
static swig_cast_info _swigc__p_lldb__SBWatchpoint[] = { {&_swigt__p_lldb__SBWatchpoint, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long_double[] = { {&_swigt__p_long_double, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_void[] = { {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pthread_rwlock_t[] = { {&_swigt__p_pthread_rwlock_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pthread_t[] = { {&_swigt__p_pthread_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72049,14 +72669,12 @@ static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Breakpoint_t[] =
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__BroadcasterManager_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__BroadcasterManager_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Broadcaster_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Broadcaster_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__CommandObject_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__CommandObject_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Communication_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Communication_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__CompileUnit_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__CompileUnit_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Connection_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Connection_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__DataBuffer_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__DataBuffer_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__DataExtractor_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__DataExtractor_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Debugger_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Debugger_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Disassembler_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Disassembler_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__DynamicLoader_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__DynamicLoader_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__EventDataStructuredData_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__EventDataStructuredData_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__EventData_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__EventData_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Event_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Event_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72064,7 +72682,6 @@ static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ExecutionContextR
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ExpressionVariable_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ExpressionVariable_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__File_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__File_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__FuncUnwinders_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__FuncUnwinders_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__FunctionCaller_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__FunctionCaller_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Function_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Function_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__IOHandler_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__IOHandler_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__IOObject_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__IOObject_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72074,34 +72691,17 @@ static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Instruction_t[] =
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__JITLoader_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__JITLoader_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__LanguageRuntime_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__LanguageRuntime_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__LineTable_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__LineTable_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Listener_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Listener_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__MemoryHistory_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__MemoryHistory_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Module_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Module_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ObjectFile_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ObjectFile_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueArch_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueArch_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueArgs_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueArgs_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueArray_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueArray_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueBoolean_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueBoolean_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueDictionary_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueDictionary_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueFileSpec_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueFileSpec_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueFormat_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueFormat_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValuePathMappings_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValuePathMappings_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueProperties_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueProperties_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueRegex_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueRegex_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueSInt64_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueSInt64_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueString_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueString_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueUInt64_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueUInt64_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValueUUID_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValueUUID_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__OptionValue_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__OptionValue_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Platform_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Platform_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Process_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Process_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Property_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Property_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__QueueItem_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__QueueItem_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Queue_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Queue_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__REPL_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__REPL_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72112,10 +72712,10 @@ static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__RegularExpression
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ScriptInterpreter_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ScriptInterpreter_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ScriptedThreadInterface_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ScriptedThreadInterface_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SearchFilter_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SearchFilter_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SectionLoadList_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SectionLoadList_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Section_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Section_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Settings_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Settings_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__StackFrameList_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__StackFrameList_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__StackFrame_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__StackFrame_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72126,11 +72726,8 @@ static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__StringSummaryForm
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SymbolFileType_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SymbolFileType_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SymbolFile_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SymbolFile_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SyntheticChildren_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SyntheticChildren_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__SystemRuntime_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__SystemRuntime_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__TargetProperties_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__TargetProperties_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Target_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Target_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ThreadCollection_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ThreadCollection_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72153,8 +72750,6 @@ static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__UnixSignals_t[] =
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__UnwindAssembly_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__UnwindAssembly_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__UnwindPlan_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__UnwindPlan_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__UserExpression_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__UserExpression_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__UtilityFunction_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__UtilityFunction_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ValueList_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ValueList_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ValueObjectList_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ValueObjectList_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__ValueObject_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__ValueObject_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_lldb_private__Value_t[] = { {&_swigt__p_std__shared_ptrT_lldb_private__Value_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72168,34 +72763,28 @@ static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__File_t[] = { {&_
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__JITLoaderList_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__JITLoaderList_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__OperatingSystem_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__OperatingSystem_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__ScriptInterpreter_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__ScriptInterpreter_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__SectionList_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__SectionList_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__SourceManager_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__SourceManager_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__StackFrame_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__StackFrame_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__StructuredDataImpl_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__StructuredDataImpl_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__SymbolVendor_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__SymbolVendor_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__SystemRuntime_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__SystemRuntime_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__TraceCursor_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__TraceCursor_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__unique_ptrT_lldb_private__TraceExporter_t[] = { {&_swigt__p_std__unique_ptrT_lldb_private__TraceExporter_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__BreakpointLocation_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__BreakpointLocation_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__BreakpointSite_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__BreakpointSite_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Breakpoint_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Breakpoint_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__BroadcasterManager_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__BroadcasterManager_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Debugger_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Debugger_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Listener_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Listener_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Module_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Module_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__ObjectFile_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__ObjectFile_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__OptionValue_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__OptionValue_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Process_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Process_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Queue_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Queue_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Section_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Section_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__StackFrame_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__StackFrame_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Stream_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Stream_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__SymbolFileType_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__SymbolFileType_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Target_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Target_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__ThreadPlan_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__ThreadPlan_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__weak_ptrT_lldb_private__Thread_t[] = { {&_swigt__p_std__weak_ptrT_lldb_private__Thread_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -72294,7 +72883,6 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_lldb__SBWatchpoint,
_swigc__p_long_double,
_swigc__p_long_long,
- _swigc__p_p_char,
_swigc__p_p_void,
_swigc__p_pthread_rwlock_t,
_swigc__p_pthread_t,
@@ -72312,14 +72900,12 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_std__shared_ptrT_lldb_private__BroadcasterManager_t,
_swigc__p_std__shared_ptrT_lldb_private__Broadcaster_t,
_swigc__p_std__shared_ptrT_lldb_private__CommandObject_t,
- _swigc__p_std__shared_ptrT_lldb_private__Communication_t,
_swigc__p_std__shared_ptrT_lldb_private__CompileUnit_t,
_swigc__p_std__shared_ptrT_lldb_private__Connection_t,
_swigc__p_std__shared_ptrT_lldb_private__DataBuffer_t,
_swigc__p_std__shared_ptrT_lldb_private__DataExtractor_t,
_swigc__p_std__shared_ptrT_lldb_private__Debugger_t,
_swigc__p_std__shared_ptrT_lldb_private__Disassembler_t,
- _swigc__p_std__shared_ptrT_lldb_private__DynamicLoader_t,
_swigc__p_std__shared_ptrT_lldb_private__EventDataStructuredData_t,
_swigc__p_std__shared_ptrT_lldb_private__EventData_t,
_swigc__p_std__shared_ptrT_lldb_private__Event_t,
@@ -72327,7 +72913,6 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_std__shared_ptrT_lldb_private__ExpressionVariable_t,
_swigc__p_std__shared_ptrT_lldb_private__File_t,
_swigc__p_std__shared_ptrT_lldb_private__FuncUnwinders_t,
- _swigc__p_std__shared_ptrT_lldb_private__FunctionCaller_t,
_swigc__p_std__shared_ptrT_lldb_private__Function_t,
_swigc__p_std__shared_ptrT_lldb_private__IOHandler_t,
_swigc__p_std__shared_ptrT_lldb_private__IOObject_t,
@@ -72337,34 +72922,17 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_std__shared_ptrT_lldb_private__InstrumentationRuntime_t,
_swigc__p_std__shared_ptrT_lldb_private__JITLoader_t,
_swigc__p_std__shared_ptrT_lldb_private__LanguageRuntime_t,
- _swigc__p_std__shared_ptrT_lldb_private__LineTable_t,
_swigc__p_std__shared_ptrT_lldb_private__Listener_t,
_swigc__p_std__shared_ptrT_lldb_private__MemoryHistory_t,
_swigc__p_std__shared_ptrT_lldb_private__MemoryRegionInfo_t,
_swigc__p_std__shared_ptrT_lldb_private__Module_t,
_swigc__p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_t,
_swigc__p_std__shared_ptrT_lldb_private__ObjectFile_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueArch_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueArgs_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueArray_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueBoolean_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueDictionary_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueFileSpec_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueFormat_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValuePathMappings_t,
_swigc__p_std__shared_ptrT_lldb_private__OptionValueProperties_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueRegex_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueSInt64_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueString_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueUInt64_t,
- _swigc__p_std__shared_ptrT_lldb_private__OptionValueUUID_t,
_swigc__p_std__shared_ptrT_lldb_private__OptionValue_t,
_swigc__p_std__shared_ptrT_lldb_private__Platform_t,
_swigc__p_std__shared_ptrT_lldb_private__ProcessAttachInfo_t,
- _swigc__p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_t,
_swigc__p_std__shared_ptrT_lldb_private__Process_t,
- _swigc__p_std__shared_ptrT_lldb_private__Property_t,
_swigc__p_std__shared_ptrT_lldb_private__QueueItem_t,
_swigc__p_std__shared_ptrT_lldb_private__Queue_t,
_swigc__p_std__shared_ptrT_lldb_private__REPL_t,
@@ -72375,10 +72943,10 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_std__shared_ptrT_lldb_private__ScriptInterpreter_t,
_swigc__p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_t,
_swigc__p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_t,
+ _swigc__p_std__shared_ptrT_lldb_private__ScriptedThreadInterface_t,
_swigc__p_std__shared_ptrT_lldb_private__SearchFilter_t,
_swigc__p_std__shared_ptrT_lldb_private__SectionLoadList_t,
_swigc__p_std__shared_ptrT_lldb_private__Section_t,
- _swigc__p_std__shared_ptrT_lldb_private__Settings_t,
_swigc__p_std__shared_ptrT_lldb_private__StackFrameList_t,
_swigc__p_std__shared_ptrT_lldb_private__StackFrameRecognizer_t,
_swigc__p_std__shared_ptrT_lldb_private__StackFrame_t,
@@ -72389,11 +72957,8 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_std__shared_ptrT_lldb_private__StructuredDataPlugin_t,
_swigc__p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_t,
_swigc__p_std__shared_ptrT_lldb_private__SymbolFileType_t,
- _swigc__p_std__shared_ptrT_lldb_private__SymbolFile_t,
_swigc__p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_t,
_swigc__p_std__shared_ptrT_lldb_private__SyntheticChildren_t,
- _swigc__p_std__shared_ptrT_lldb_private__SystemRuntime_t,
- _swigc__p_std__shared_ptrT_lldb_private__TargetProperties_t,
_swigc__p_std__shared_ptrT_lldb_private__Target_t,
_swigc__p_std__shared_ptrT_lldb_private__ThreadCollection_t,
_swigc__p_std__shared_ptrT_lldb_private__ThreadPlanTracer_t,
@@ -72416,8 +72981,6 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_std__shared_ptrT_lldb_private__UnwindAssembly_t,
_swigc__p_std__shared_ptrT_lldb_private__UnwindPlan_t,
_swigc__p_std__shared_ptrT_lldb_private__UserExpression_t,
- _swigc__p_std__shared_ptrT_lldb_private__UtilityFunction_t,
- _swigc__p_std__shared_ptrT_lldb_private__ValueList_t,
_swigc__p_std__shared_ptrT_lldb_private__ValueObjectList_t,
_swigc__p_std__shared_ptrT_lldb_private__ValueObject_t,
_swigc__p_std__shared_ptrT_lldb_private__Value_t,
@@ -72431,34 +72994,28 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_std__unique_ptrT_lldb_private__JITLoaderList_t,
_swigc__p_std__unique_ptrT_lldb_private__MemoryRegionInfo_t,
_swigc__p_std__unique_ptrT_lldb_private__OperatingSystem_t,
- _swigc__p_std__unique_ptrT_lldb_private__ScriptInterpreter_t,
_swigc__p_std__unique_ptrT_lldb_private__ScriptedProcessInterface_t,
_swigc__p_std__unique_ptrT_lldb_private__SectionList_t,
_swigc__p_std__unique_ptrT_lldb_private__SourceManager_t,
_swigc__p_std__unique_ptrT_lldb_private__StackFrameRecognizerManager_t,
- _swigc__p_std__unique_ptrT_lldb_private__StackFrame_t,
_swigc__p_std__unique_ptrT_lldb_private__StructuredDataImpl_t,
_swigc__p_std__unique_ptrT_lldb_private__SymbolVendor_t,
_swigc__p_std__unique_ptrT_lldb_private__SystemRuntime_t,
_swigc__p_std__unique_ptrT_lldb_private__TraceCursor_t,
_swigc__p_std__unique_ptrT_lldb_private__TraceExporter_t,
_swigc__p_std__weak_ptrT_lldb_private__BreakpointLocation_t,
- _swigc__p_std__weak_ptrT_lldb_private__BreakpointSite_t,
_swigc__p_std__weak_ptrT_lldb_private__Breakpoint_t,
_swigc__p_std__weak_ptrT_lldb_private__BroadcasterManager_t,
_swigc__p_std__weak_ptrT_lldb_private__Debugger_t,
_swigc__p_std__weak_ptrT_lldb_private__Listener_t,
_swigc__p_std__weak_ptrT_lldb_private__Module_t,
_swigc__p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_t,
- _swigc__p_std__weak_ptrT_lldb_private__ObjectFile_t,
_swigc__p_std__weak_ptrT_lldb_private__OptionValue_t,
_swigc__p_std__weak_ptrT_lldb_private__Process_t,
_swigc__p_std__weak_ptrT_lldb_private__Queue_t,
_swigc__p_std__weak_ptrT_lldb_private__Section_t,
_swigc__p_std__weak_ptrT_lldb_private__StackFrame_t,
- _swigc__p_std__weak_ptrT_lldb_private__Stream_t,
_swigc__p_std__weak_ptrT_lldb_private__StructuredDataPlugin_t,
- _swigc__p_std__weak_ptrT_lldb_private__SymbolFileType_t,
_swigc__p_std__weak_ptrT_lldb_private__Target_t,
_swigc__p_std__weak_ptrT_lldb_private__ThreadPlan_t,
_swigc__p_std__weak_ptrT_lldb_private__Thread_t,
diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile
index ef0bc3e1e785..a8e9d3cecddd 100644
--- a/lib/clang/liblldb/Makefile
+++ b/lib/clang/liblldb/Makefile
@@ -247,7 +247,6 @@ SRCS+= Host/common/ProcessRunLock.cpp
SRCS+= Host/common/PseudoTerminal.cpp
SRCS+= Host/common/Socket.cpp
SRCS+= Host/common/SocketAddress.cpp
-SRCS+= Host/common/StringConvert.cpp
SRCS+= Host/common/TCPSocket.cpp
SRCS+= Host/common/Terminal.cpp
SRCS+= Host/common/ThreadLauncher.cpp
@@ -325,6 +324,7 @@ SRCS+= Plugins/ABI/PowerPC/ABISysV_ppc64.cpp
SRCS+= Plugins/ABI/X86/ABISysV_i386.cpp
SRCS+= Plugins/ABI/X86/ABISysV_x86_64.cpp
SRCS+= Plugins/ABI/X86/ABIX86.cpp
+SRCS+= Plugins/ABI/X86/ABIX86_i386.cpp
SRCS+= Plugins/Architecture/AArch64/ArchitectureAArch64.cpp
SRCS+= Plugins/Architecture/Arm/ArchitectureArm.cpp
SRCS+= Plugins/Architecture/Mips/ArchitectureMips.cpp
@@ -372,9 +372,9 @@ SRCS+= Plugins/Language/CPlusPlus/BlockPointer.cpp
SRCS+= Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
SRCS+= Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
SRCS+= Plugins/Language/CPlusPlus/CxxStringTypes.cpp
+SRCS+= Plugins/Language/CPlusPlus/GenericBitset.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxx.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxAtomic.cpp
-SRCS+= Plugins/Language/CPlusPlus/LibCxxBitset.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxInitializerList.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxList.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxMap.cpp
@@ -430,10 +430,8 @@ SRCS+= Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.cpp
SRCS+= Plugins/Process/FreeBSD/NativeThreadFreeBSD.cpp
SRCS+= Plugins/Process/POSIX/CrashReason.cpp
SRCS+= Plugins/Process/POSIX/NativeProcessELF.cpp
-SRCS+= Plugins/Process/POSIX/ProcessMessage.cpp
SRCS+= Plugins/Process/POSIX/ProcessPOSIXLog.cpp
SRCS+= Plugins/Process/Utility/AuxVector.cpp
-SRCS+= Plugins/Process/Utility/DynamicRegisterInfo.cpp
SRCS+= Plugins/Process/Utility/FreeBSDSignals.cpp
SRCS+= Plugins/Process/Utility/GDBRemoteSignals.cpp
SRCS+= Plugins/Process/Utility/HistoryThread.cpp
@@ -498,6 +496,7 @@ SRCS+= Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
SRCS+= Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp
SRCS+= Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
SRCS+= Plugins/Process/scripted/ScriptedProcess.cpp
+SRCS+= Plugins/Process/scripted/ScriptedThread.cpp
SRCS+= Plugins/ScriptInterpreter/Lua/Lua.cpp
SRCS+= Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
SRCS+= Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp
@@ -572,6 +571,7 @@ SRCS+= Symbol/Variable.cpp
SRCS+= Symbol/VariableList.cpp
SRCS+= Target/ABI.cpp
SRCS+= Target/AssertFrameRecognizer.cpp
+SRCS+= Target/DynamicRegisterInfo.cpp
SRCS+= Target/ExecutionContext.cpp
SRCS+= Target/InstrumentationRuntime.cpp
SRCS+= Target/InstrumentationRuntimeStopInfo.cpp
@@ -601,6 +601,7 @@ SRCS+= Target/StackFrame.cpp
SRCS+= Target/StackFrameList.cpp
SRCS+= Target/StackFrameRecognizer.cpp
SRCS+= Target/StackID.cpp
+SRCS+= Target/Statistics.cpp
SRCS+= Target/StopInfo.cpp
SRCS+= Target/SystemRuntime.cpp
SRCS+= Target/Target.cpp
diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile
index 6df32d8b452a..f78a0bf97343 100644
--- a/lib/clang/libllvm/Makefile
+++ b/lib/clang/libllvm/Makefile
@@ -209,6 +209,7 @@ SRCS_MIN+= CodeGen/CFIInstrInserter.cpp
SRCS_MIN+= CodeGen/CalcSpillWeights.cpp
SRCS_MIN+= CodeGen/CallingConvLower.cpp
SRCS_MIN+= CodeGen/CodeGen.cpp
+SRCS_MIN+= CodeGen/CodeGenCommonISel.cpp
SRCS_MIN+= CodeGen/CodeGenPrepare.cpp
SRCS_EXL+= CodeGen/CommandFlags.cpp
SRCS_MIN+= CodeGen/CriticalAntiDepBreaker.cpp
@@ -250,6 +251,7 @@ SRCS_MIN+= CodeGen/GlobalISel/LegalizeMutations.cpp
SRCS_MIN+= CodeGen/GlobalISel/Legalizer.cpp
SRCS_MIN+= CodeGen/GlobalISel/LegalizerHelper.cpp
SRCS_MIN+= CodeGen/GlobalISel/LegalizerInfo.cpp
+SRCS_MIN+= CodeGen/GlobalISel/LoadStoreOpt.cpp
SRCS_MIN+= CodeGen/GlobalISel/Localizer.cpp
SRCS_MIN+= CodeGen/GlobalISel/LostDebugLocObserver.cpp
SRCS_MIN+= CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -300,6 +302,7 @@ SRCS_EXT+= CodeGen/MIRParser/MIParser.cpp
SRCS_EXT+= CodeGen/MIRParser/MIRParser.cpp
SRCS_MIN+= CodeGen/MIRPrinter.cpp
SRCS_MIN+= CodeGen/MIRPrintingPass.cpp
+SRCS_MIN+= CodeGen/MIRSampleProfile.cpp
SRCS_MIN+= CodeGen/MIRVRegNamerUtils.cpp
SRCS_MIN+= CodeGen/MachineBasicBlock.cpp
SRCS_MIN+= CodeGen/MachineBlockFrequencyInfo.cpp
@@ -454,7 +457,7 @@ SRCS_MIN+= DebugInfo/CodeView/DebugFrameDataSubsection.cpp
SRCS_MIN+= DebugInfo/CodeView/DebugInlineeLinesSubsection.cpp
SRCS_MIN+= DebugInfo/CodeView/DebugLinesSubsection.cpp
SRCS_MIN+= DebugInfo/CodeView/DebugStringTableSubsection.cpp
-SRCS_MIN+= DebugInfo/CodeView/DebugSubsection.cpp
+SRCS_MIW+= DebugInfo/CodeView/DebugSubsection.cpp
SRCS_EXT+= DebugInfo/CodeView/DebugSubsectionRecord.cpp
SRCS_EXT+= DebugInfo/CodeView/DebugSubsectionVisitor.cpp
SRCS_EXT+= DebugInfo/CodeView/DebugSymbolRVASubsection.cpp
@@ -604,11 +607,12 @@ SRCS_EXT+= DebugInfo/PDB/UDTLayout.cpp
SRCS_MIW+= DebugInfo/Symbolize/DIPrinter.cpp
SRCS_MIW+= DebugInfo/Symbolize/SymbolizableObjectFile.cpp
SRCS_MIW+= DebugInfo/Symbolize/Symbolize.cpp
-SRCS_MIW+= Demangle/Demangle.cpp
+SRCS_MIN+= Demangle/DLangDemangle.cpp
+SRCS_MIN+= Demangle/Demangle.cpp
SRCS_MIN+= Demangle/ItaniumDemangle.cpp
-SRCS_MIW+= Demangle/MicrosoftDemangle.cpp
-SRCS_MIW+= Demangle/MicrosoftDemangleNodes.cpp
-SRCS_MIW+= Demangle/RustDemangle.cpp
+SRCS_MIN+= Demangle/MicrosoftDemangle.cpp
+SRCS_MIN+= Demangle/MicrosoftDemangleNodes.cpp
+SRCS_MIN+= Demangle/RustDemangle.cpp
SRCS_XDB+= ExecutionEngine/ExecutionEngine.cpp
SRCS_XDB+= ExecutionEngine/ExecutionEngineBindings.cpp
SRCS_XDB+= ExecutionEngine/GDBRegistrationListener.cpp
@@ -617,6 +621,7 @@ SRCS_XDB+= ExecutionEngine/Interpreter/ExternalFunctions.cpp
SRCS_XDB+= ExecutionEngine/Interpreter/Interpreter.cpp
SRCS_EXT+= ExecutionEngine/JITLink/EHFrameSupport.cpp
SRCS_EXT+= ExecutionEngine/JITLink/ELF.cpp
+SRCS_EXT+= ExecutionEngine/JITLink/ELF_aarch64.cpp
SRCS_EXT+= ExecutionEngine/JITLink/ELF_riscv.cpp
SRCS_EXT+= ExecutionEngine/JITLink/ELF_x86_64.cpp
SRCS_EXT+= ExecutionEngine/JITLink/ELFLinkGraphBuilder.cpp
@@ -627,6 +632,8 @@ SRCS_EXT+= ExecutionEngine/JITLink/MachO.cpp
SRCS_EXT+= ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
SRCS_EXT+= ExecutionEngine/JITLink/MachO_arm64.cpp
SRCS_EXT+= ExecutionEngine/JITLink/MachO_x86_64.cpp
+SRCS_EXT+= ExecutionEngine/JITLink/MemoryFlags.cpp
+SRCS_EXT+= ExecutionEngine/JITLink/aarch64.cpp
SRCS_EXT+= ExecutionEngine/JITLink/riscv.cpp
SRCS_EXT+= ExecutionEngine/JITLink/x86_64.cpp
SRCS_XDB+= ExecutionEngine/MCJIT/MCJIT.cpp
@@ -635,8 +642,12 @@ SRCS_EXT+= ExecutionEngine/Orc/CompileUtils.cpp
SRCS_EXT+= ExecutionEngine/Orc/Core.cpp
SRCS_EXT+= ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
SRCS_EXT+= ExecutionEngine/Orc/DebugUtils.cpp
+SRCS_EXT+= ExecutionEngine/Orc/ELFNixPlatform.cpp
SRCS_EXT+= ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp
SRCS_EXT+= ExecutionEngine/Orc/EPCEHFrameRegistrar.cpp
+SRCS_EXT+= ExecutionEngine/Orc/EPCGenericDylibManager.cpp
+SRCS_EXT+= ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.cpp
+SRCS_EXT+= ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp
SRCS_EXT+= ExecutionEngine/Orc/ExecutionUtils.cpp
SRCS_EXT+= ExecutionEngine/Orc/ExecutorProcessControl.cpp
SRCS_EXT+= ExecutionEngine/Orc/IRCompileLayer.cpp
@@ -653,11 +664,14 @@ SRCS_EXT+= ExecutionEngine/Orc/ObjectTransformLayer.cpp
SRCS_EXT+= ExecutionEngine/Orc/OrcABISupport.cpp
SRCS_EXT+= ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
SRCS_EXT+= ExecutionEngine/Orc/Shared/OrcError.cpp
-SRCS_EXT+= ExecutionEngine/Orc/Shared/RPCError.cpp
+SRCS_EXT+= ExecutionEngine/Orc/Shared/OrcRTBridge.cpp
+SRCS_EXT+= ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp
+SRCS_EXT+= ExecutionEngine/Orc/SimpleRemoteEPC.cpp
SRCS_EXT+= ExecutionEngine/Orc/Speculation.cpp
SRCS_XDB+= ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp
SRCS_EXT+= ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.cpp
SRCS_EXT+= ExecutionEngine/Orc/TargetProcess/TargetExecutionUtils.cpp
+SRCS_EXT+= ExecutionEngine/Orc/TaskDispatch.cpp
SRCS_EXT+= ExecutionEngine/Orc/ThreadSafeModule.cpp
SRCS_XDB+= ExecutionEngine/RuntimeDyld/JITSymbol.cpp
SRCS_XDB+= ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
@@ -734,7 +748,6 @@ SRCS_MIN+= IR/Value.cpp
SRCS_MIN+= IR/ValueSymbolTable.cpp
SRCS_MIN+= IR/Verifier.cpp
SRCS_MIN+= IRReader/IRReader.cpp
-SRCS_EXL+= LTO/Caching.cpp
SRCS_MIN+= LTO/LTO.cpp
SRCS_MIN+= LTO/LTOBackend.cpp
SRCS_EXL+= LTO/LTOCodeGenerator.cpp
@@ -787,6 +800,7 @@ SRCS_MIN+= MC/MCParser/AsmParser.cpp
SRCS_MIN+= MC/MCParser/COFFAsmParser.cpp
SRCS_MIN+= MC/MCParser/DarwinAsmParser.cpp
SRCS_MIN+= MC/MCParser/ELFAsmParser.cpp
+SRCS_MIN+= MC/MCParser/GOFFAsmParser.cpp
SRCS_MIN+= MC/MCParser/MCAsmLexer.cpp
SRCS_MIN+= MC/MCParser/MCAsmParser.cpp
SRCS_MIN+= MC/MCParser/MCAsmParserExtension.cpp
@@ -819,6 +833,7 @@ SRCS_MIN+= MC/MCXCOFFObjectTargetWriter.cpp
SRCS_MIN+= MC/MachObjectWriter.cpp
SRCS_MIN+= MC/StringTableBuilder.cpp
SRCS_MIN+= MC/SubtargetFeature.cpp
+SRCS_MIN+= MC/TargetRegistry.cpp
SRCS_MIN+= MC/WasmObjectWriter.cpp
SRCS_MIN+= MC/WinCOFFObjectWriter.cpp
SRCS_MIN+= MC/XCOFFObjectWriter.cpp
@@ -844,6 +859,7 @@ SRCS_EXT+= MCA/Stages/MicroOpQueueStage.cpp
SRCS_EXT+= MCA/Stages/RetireStage.cpp
SRCS_EXT+= MCA/Stages/Stage.cpp
SRCS_EXT+= MCA/Support.cpp
+SRCS_EXT+= MCA/View.cpp
SRCS_MIN+= Object/Archive.cpp
SRCS_MIN+= Object/ArchiveWriter.cpp
SRCS_MIN+= Object/Binary.cpp
@@ -886,7 +902,9 @@ SRCS_MIN+= Option/Arg.cpp
SRCS_MIN+= Option/ArgList.cpp
SRCS_MIN+= Option/OptTable.cpp
SRCS_MIN+= Option/Option.cpp
+SRCS_MIN+= Passes/OptimizationLevel.cpp
SRCS_MIN+= Passes/PassBuilder.cpp
+SRCS_MIN+= Passes/PassBuilderPipelines.cpp
SRCS_MIN+= Passes/PassPlugin.cpp
SRCS_MIN+= Passes/StandardInstrumentations.cpp
SRCS_MIN+= ProfileData/Coverage/CoverageMapping.cpp
@@ -928,6 +946,7 @@ SRCS_MIN+= Support/BlockFrequency.cpp
SRCS_MIN+= Support/BranchProbability.cpp
SRCS_MIN+= Support/BuryPointer.cpp
SRCS_MIN+= Support/CachePruning.cpp
+SRCS_EXL+= Support/Caching.cpp
SRCS_MIW+= Support/COM.cpp
SRCS_MIN+= Support/CRC.cpp
SRCS_MIN+= Support/Chrono.cpp
@@ -943,6 +962,7 @@ SRCS_MIN+= Support/DataExtractor.cpp
SRCS_MIN+= Support/Debug.cpp
SRCS_MIN+= Support/DebugCounter.cpp
SRCS_MIN+= Support/DeltaAlgorithm.cpp
+SRCS_MIN+= Support/DivisionByConstantInfo.cpp
SRCS_MIN+= Support/DynamicLibrary.cpp
SRCS_MIN+= Support/ELFAttributeParser.cpp
SRCS_MIN+= Support/ELFAttributes.cpp
@@ -973,6 +993,8 @@ SRCS_MIN+= Support/Locale.cpp
SRCS_MIN+= Support/LockFileManager.cpp
SRCS_MIN+= Support/LowLevelType.cpp
SRCS_MIN+= Support/MD5.cpp
+SRCS_MIW+= Support/MSP430AttributeParser.cpp
+SRCS_MIW+= Support/MSP430Attributes.cpp
SRCS_MIN+= Support/ManagedStatic.cpp
SRCS_MIN+= Support/MathExtras.cpp
SRCS_MIN+= Support/MemAlloc.cpp
@@ -990,10 +1012,12 @@ SRCS_MIN+= Support/Process.cpp
SRCS_MIN+= Support/Program.cpp
SRCS_MIN+= Support/RISCVAttributeParser.cpp
SRCS_MIN+= Support/RISCVAttributes.cpp
+SRCS_MIN+= Support/RISCVISAInfo.cpp
SRCS_MIN+= Support/RWMutex.cpp
SRCS_MIN+= Support/RandomNumberGenerator.cpp
SRCS_MIN+= Support/Regex.cpp
SRCS_MIN+= Support/SHA1.cpp
+SRCS_MIN+= Support/SHA256.cpp
SRCS_MIN+= Support/ScaledNumber.cpp
SRCS_MIN+= Support/ScopedPrinter.cpp
SRCS_MIN+= Support/Signals.cpp
@@ -1012,7 +1036,6 @@ SRCS_MIN+= Support/SymbolRemappingReader.cpp
SRCS_EXT+= Support/SystemUtils.cpp
SRCS_LLD+= Support/TarWriter.cpp
SRCS_MIN+= Support/TargetParser.cpp
-SRCS_MIN+= Support/TargetRegistry.cpp
SRCS_MIN+= Support/ThreadLocal.cpp
SRCS_MIW+= Support/ThreadPool.cpp
SRCS_MIN+= Support/Threading.cpp
@@ -1078,6 +1101,7 @@ SRCS_MIN+= Target/AArch64/AArch64InstrInfo.cpp
SRCS_MIN+= Target/AArch64/AArch64LoadStoreOptimizer.cpp
SRCS_MIN+= Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp
SRCS_MIN+= Target/AArch64/AArch64MCInstLower.cpp
+SRCS_MIN+= Target/AArch64/AArch64MIPeepholeOpt.cpp
SRCS_MIN+= Target/AArch64/AArch64MachineFunctionInfo.cpp
SRCS_MIN+= Target/AArch64/AArch64MacroFusion.cpp
SRCS_MIN+= Target/AArch64/AArch64PBQPRegAlloc.cpp
@@ -1197,6 +1221,7 @@ SRCS_MIN+= Target/BPF/BPFAdjustOpt.cpp
SRCS_MIN+= Target/BPF/BPFAsmPrinter.cpp
SRCS_MIN+= Target/BPF/BPFCheckAndAdjustIR.cpp
SRCS_MIN+= Target/BPF/BPFFrameLowering.cpp
+SRCS_MIN+= Target/BPF/BPFIRPeephole.cpp
SRCS_MIN+= Target/BPF/BPFISelDAGToDAG.cpp
SRCS_MIN+= Target/BPF/BPFISelLowering.cpp
SRCS_MIN+= Target/BPF/BPFInstrInfo.cpp
@@ -1342,6 +1367,7 @@ SRCS_MIN+= Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
SRCS_MIN+= Target/RISCV/MCTargetDesc/RISCVMCAsmInfo.cpp
SRCS_MIN+= Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
SRCS_MIN+= Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
+SRCS_MIN+= Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.cpp
SRCS_MIN+= Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp
SRCS_MIN+= Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
SRCS_MIN+= Target/RISCV/RISCVAsmPrinter.cpp
@@ -1349,6 +1375,7 @@ SRCS_MIN+= Target/RISCV/RISCVCallLowering.cpp
SRCS_MIN+= Target/RISCV/RISCVExpandAtomicPseudoInsts.cpp
SRCS_MIN+= Target/RISCV/RISCVExpandPseudoInsts.cpp
SRCS_MIN+= Target/RISCV/RISCVFrameLowering.cpp
+SRCS_MIN+= Target/RISCV/RISCVGatherScatterLowering.cpp
SRCS_MIN+= Target/RISCV/RISCVInsertVSETVLI.cpp
SRCS_MIN+= Target/RISCV/RISCVInstrInfo.cpp
SRCS_MIN+= Target/RISCV/RISCVInstructionSelector.cpp
@@ -1396,6 +1423,7 @@ SRCS_MIN+= Target/X86/X86CallingConv.cpp
SRCS_MIN+= Target/X86/X86CmovConversion.cpp
SRCS_MIN+= Target/X86/X86DiscriminateMemOps.cpp
SRCS_MIN+= Target/X86/X86DomainReassignment.cpp
+SRCS_MIN+= Target/X86/X86DynAllocaExpander.cpp
SRCS_MIN+= Target/X86/X86EvexToVex.cpp
SRCS_MIN+= Target/X86/X86ExpandPseudo.cpp
SRCS_MIN+= Target/X86/X86FastISel.cpp
@@ -1444,7 +1472,6 @@ SRCS_MIN+= Target/X86/X86TargetObjectFile.cpp
SRCS_MIN+= Target/X86/X86TargetTransformInfo.cpp
SRCS_MIN+= Target/X86/X86TileConfig.cpp
SRCS_MIN+= Target/X86/X86VZeroUpper.cpp
-SRCS_MIN+= Target/X86/X86WinAllocaExpander.cpp
SRCS_MIN+= Target/X86/X86WinEHState.cpp
.endif # MK_LLVM_TARGET_X86
SRCS_MIW+= TextAPI/Architecture.cpp
@@ -1496,6 +1523,7 @@ SRCS_MIN+= Transforms/IPO/Internalize.cpp
SRCS_MIN+= Transforms/IPO/LoopExtractor.cpp
SRCS_MIN+= Transforms/IPO/LowerTypeTests.cpp
SRCS_MIN+= Transforms/IPO/MergeFunctions.cpp
+SRCS_MIN+= Transforms/IPO/ModuleInliner.cpp
SRCS_MIN+= Transforms/IPO/OpenMPOpt.cpp
SRCS_MIN+= Transforms/IPO/PartialInlining.cpp
SRCS_MIN+= Transforms/IPO/PassManagerBuilder.cpp
diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile
index fd43983481b2..4df9edaa1fd5 100644
--- a/lib/libc++/Makefile
+++ b/lib/libc++/Makefile
@@ -37,6 +37,7 @@ SRCS+= hash.cpp
SRCS+= ios.cpp
SRCS+= ios.instantiations.cpp
SRCS+= iostream.cpp
+SRCS+= legacy_pointer_safety.cpp
SRCS+= locale.cpp
SRCS+= memory.cpp
SRCS+= mutex.cpp
@@ -104,6 +105,7 @@ STD_HEADERS+= __functional_base
STD_HEADERS+= __hash_table
STD_HEADERS+= __libcpp_version
STD_HEADERS+= __locale
+STD_HEADERS+= __mbstate_t.h
STD_HEADERS+= __mutex_base
STD_HEADERS+= __node_handle
STD_HEADERS+= __nullptr
@@ -140,6 +142,7 @@ STD_HEADERS+= complex
STD_HEADERS+= complex.h
STD_HEADERS+= concepts
STD_HEADERS+= condition_variable
+STD_HEADERS+= coroutine
STD_HEADERS+= csetjmp
STD_HEADERS+= csignal
STD_HEADERS+= cstdarg
@@ -342,10 +345,90 @@ ALG_HEADERS+= upper_bound.h
ALG+= ${HDRDIR}/__algorithm/${hdr}
.endfor
+INCSGROUPS+= BIT
+BITDIR= ${CXXINCLUDEDIR}/__bit
+BIT_HEADERS+= bit_cast.h
+.for hdr in ${BIT_HEADERS}
+BIT+= ${HDRDIR}/__bit/${hdr}
+.endfor
+
+INCSGROUPS+= CHC
+CHCDIR= ${CXXINCLUDEDIR}/__charconv
+CHC_HEADERS+= chars_format.h
+CHC_HEADERS+= from_chars_result.h
+CHC_HEADERS+= to_chars_result.h
+.for hdr in ${CHC_HEADERS}
+CHC+= ${HDRDIR}/__charconv/${hdr}
+.endfor
+
+INCSGROUPS+= CMP
+CMPDIR= ${CXXINCLUDEDIR}/__compare
+CMP_HEADERS+= common_comparison_category.h
+CMP_HEADERS+= compare_three_way.h
+CMP_HEADERS+= compare_three_way_result.h
+CMP_HEADERS+= is_eq.h
+CMP_HEADERS+= ordering.h
+CMP_HEADERS+= synth_three_way.h
+CMP_HEADERS+= three_way_comparable.h
+.for hdr in ${CMP_HEADERS}
+CMP+= ${HDRDIR}/__compare/${hdr}
+.endfor
+
+INCSGROUPS+= CON
+CONDIR= ${CXXINCLUDEDIR}/__concepts
+CON_HEADERS+= arithmetic.h
+CON_HEADERS+= assignable.h
+CON_HEADERS+= boolean_testable.h
+CON_HEADERS+= class_or_enum.h
+CON_HEADERS+= common_reference_with.h
+CON_HEADERS+= common_with.h
+CON_HEADERS+= constructible.h
+CON_HEADERS+= convertible_to.h
+CON_HEADERS+= copyable.h
+CON_HEADERS+= derived_from.h
+CON_HEADERS+= destructible.h
+CON_HEADERS+= different_from.h
+CON_HEADERS+= equality_comparable.h
+CON_HEADERS+= invocable.h
+CON_HEADERS+= movable.h
+CON_HEADERS+= predicate.h
+CON_HEADERS+= regular.h
+CON_HEADERS+= relation.h
+CON_HEADERS+= same_as.h
+CON_HEADERS+= semiregular.h
+CON_HEADERS+= swappable.h
+CON_HEADERS+= totally_ordered.h
+.for hdr in ${CON_HEADERS}
+CON+= ${HDRDIR}/__concepts/${hdr}
+.endfor
+
+INCSGROUPS+= COR
+CORDIR= ${CXXINCLUDEDIR}/__coroutine
+COR_HEADERS+= coroutine_handle.h
+COR_HEADERS+= coroutine_traits.h
+COR_HEADERS+= noop_coroutine_handle.h
+COR_HEADERS+= trivial_awaitables.h
+.for hdr in ${COR_HEADERS}
+COR+= ${HDRDIR}/__coroutine/${hdr}
+.endfor
+
INCSGROUPS+= FMT
FMTDIR= ${CXXINCLUDEDIR}/__format
+FMT_HEADERS+= format_arg.h
+FMT_HEADERS+= format_args.h
+FMT_HEADERS+= format_context.h
FMT_HEADERS+= format_error.h
+FMT_HEADERS+= format_fwd.h
FMT_HEADERS+= format_parse_context.h
+FMT_HEADERS+= format_string.h
+FMT_HEADERS+= format_to_n_result.h
+FMT_HEADERS+= formatter.h
+FMT_HEADERS+= formatter_bool.h
+FMT_HEADERS+= formatter_char.h
+FMT_HEADERS+= formatter_integer.h
+FMT_HEADERS+= formatter_integral.h
+FMT_HEADERS+= formatter_string.h
+FMT_HEADERS+= parser_std_format_spec.h
.for hdr in ${FMT_HEADERS}
FMT+= ${HDRDIR}/__format/${hdr}
.endfor
@@ -355,9 +438,11 @@ FUNDIR= ${CXXINCLUDEDIR}/__functional
FUN_HEADERS+= binary_function.h
FUN_HEADERS+= binary_negate.h
FUN_HEADERS+= bind.h
+FUN_HEADERS+= bind_back.h
FUN_HEADERS+= bind_front.h
FUN_HEADERS+= binder1st.h
FUN_HEADERS+= binder2nd.h
+FUN_HEADERS+= compose.h
FUN_HEADERS+= default_searcher.h
FUN_HEADERS+= function.h
FUN_HEADERS+= hash.h
@@ -413,6 +498,7 @@ IT_HEADERS+= readable_traits.h
IT_HEADERS+= reverse_access.h
IT_HEADERS+= reverse_iterator.h
IT_HEADERS+= size.h
+IT_HEADERS+= unreachable_sentinel.h
IT_HEADERS+= wrap_iter.h
.for hdr in ${IT_HEADERS}
IT+= ${HDRDIR}/__iterator/${hdr}
@@ -428,7 +514,6 @@ MEM_HEADERS+= allocator_traits.h
MEM_HEADERS+= auto_ptr.h
MEM_HEADERS+= compressed_pair.h
MEM_HEADERS+= construct_at.h
-MEM_HEADERS+= pointer_safety.h
MEM_HEADERS+= pointer_traits.h
MEM_HEADERS+= raw_storage_iterator.h
MEM_HEADERS+= shared_ptr.h
@@ -454,6 +539,7 @@ RNG_HEADERS+= all.h
RNG_HEADERS+= common_view.h
RNG_HEADERS+= concepts.h
RNG_HEADERS+= copyable_box.h
+RNG_HEADERS+= counted.h
RNG_HEADERS+= dangling.h
RNG_HEADERS+= data.h
RNG_HEADERS+= drop_view.h
@@ -461,21 +547,35 @@ RNG_HEADERS+= empty.h
RNG_HEADERS+= empty_view.h
RNG_HEADERS+= enable_borrowed_range.h
RNG_HEADERS+= enable_view.h
+RNG_HEADERS+= iota_view.h
+RNG_HEADERS+= join_view.h
RNG_HEADERS+= non_propagating_cache.h
+RNG_HEADERS+= range_adaptor.h
RNG_HEADERS+= ref_view.h
+RNG_HEADERS+= reverse_view.h
+RNG_HEADERS+= single_view.h
RNG_HEADERS+= size.h
RNG_HEADERS+= subrange.h
+RNG_HEADERS+= take_view.h
RNG_HEADERS+= transform_view.h
RNG_HEADERS+= view_interface.h
.for hdr in ${RNG_HEADERS}
RNG+= ${HDRDIR}/__ranges/${hdr}
.endfor
+
+INCSGROUPS+= THR
+THRDIR= ${CXXINCLUDEDIR}/__thread
+THR_HEADERS+= poll_with_backoff.h
+.for hdr in ${THR_HEADERS}
+THR+= ${HDRDIR}/__thread/${hdr}
+.endfor
+
INCSGROUPS+= UTL
UTLDIR= ${CXXINCLUDEDIR}/__utility
-UTL_HEADERS+= __decay_copy.h
UTL_HEADERS+= as_const.h
UTL_HEADERS+= cmp.h
+UTL_HEADERS+= decay_copy.h
UTL_HEADERS+= declval.h
UTL_HEADERS+= exchange.h
UTL_HEADERS+= forward.h
diff --git a/lib/libc++/__config_site b/lib/libc++/__config_site
index cb195721d10e..69629625b697 100644
--- a/lib/libc++/__config_site
+++ b/lib/libc++/__config_site
@@ -14,12 +14,8 @@
/* #undef _LIBCPP_ABI_FORCE_ITANIUM */
/* #undef _LIBCPP_ABI_FORCE_MICROSOFT */
/* #undef _LIBCPP_HIDE_FROM_ABI_PER_TU_BY_DEFAULT */
-/* #undef _LIBCPP_HAS_NO_GLOBAL_FILESYSTEM_NAMESPACE */
-/* #undef _LIBCPP_HAS_NO_STDIN */
-/* #undef _LIBCPP_HAS_NO_STDOUT */
/* #undef _LIBCPP_HAS_NO_THREADS */
/* #undef _LIBCPP_HAS_NO_MONOTONIC_CLOCK */
-/* #undef _LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS */
/* #undef _LIBCPP_HAS_MUSL_LIBC */
/* #undef _LIBCPP_HAS_THREAD_API_PTHREAD */
/* #undef _LIBCPP_HAS_THREAD_API_EXTERNAL */
@@ -34,6 +30,7 @@
/* #undef _LIBCPP_HAS_PARALLEL_ALGORITHMS */
/* #undef _LIBCPP_HAS_NO_RANDOM_DEVICE */
/* #undef _LIBCPP_HAS_NO_LOCALIZATION */
+/* #undef _LIBCPP_HAS_NO_WIDE_CHARACTERS */
/* #undef _LIBCPP_HAS_NO_INCOMPLETE_FORMAT */
/* #undef _LIBCPP_HAS_NO_INCOMPLETE_RANGES */
diff --git a/lib/libclang_rt/asan/Makefile b/lib/libclang_rt/asan/Makefile
index 149130e3c5f2..66641c7e9121 100644
--- a/lib/libclang_rt/asan/Makefile
+++ b/lib/libclang_rt/asan/Makefile
@@ -49,7 +49,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -58,6 +57,7 @@ SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_printf.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp
+SRCS+= sanitizer_common/sanitizer_stack_store.cpp
SRCS+= sanitizer_common/sanitizer_stackdepot.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cpp
diff --git a/lib/libclang_rt/asan_dynamic/Makefile b/lib/libclang_rt/asan_dynamic/Makefile
index 0bc0bd898c3c..086af9ee93b3 100644
--- a/lib/libclang_rt/asan_dynamic/Makefile
+++ b/lib/libclang_rt/asan_dynamic/Makefile
@@ -52,7 +52,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -61,6 +60,7 @@ SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_printf.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp
+SRCS+= sanitizer_common/sanitizer_stack_store.cpp
SRCS+= sanitizer_common/sanitizer_stackdepot.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cpp
diff --git a/lib/libclang_rt/cfi/Makefile b/lib/libclang_rt/cfi/Makefile
index 679ace661496..9910565b2f38 100644
--- a/lib/libclang_rt/cfi/Makefile
+++ b/lib/libclang_rt/cfi/Makefile
@@ -22,7 +22,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
diff --git a/lib/libclang_rt/cfi_diag/Makefile b/lib/libclang_rt/cfi_diag/Makefile
index 0cc2a3941924..8c465a9e4e96 100644
--- a/lib/libclang_rt/cfi_diag/Makefile
+++ b/lib/libclang_rt/cfi_diag/Makefile
@@ -26,7 +26,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -35,6 +34,7 @@ SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_printf.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp
+SRCS+= sanitizer_common/sanitizer_stack_store.cpp
SRCS+= sanitizer_common/sanitizer_stackdepot.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cpp
diff --git a/lib/libclang_rt/compiler-rt-vars.mk b/lib/libclang_rt/compiler-rt-vars.mk
index c4a574c6c87c..91d2fb4b228a 100644
--- a/lib/libclang_rt/compiler-rt-vars.mk
+++ b/lib/libclang_rt/compiler-rt-vars.mk
@@ -1,4 +1,4 @@
-CLANG_SUBDIR=clang/13.0.0
+CLANG_SUBDIR=clang/14.0.0
CLANGDIR= /usr/lib/${CLANG_SUBDIR}
SANITIZER_LIBDIR= ${CLANGDIR}/lib/freebsd
diff --git a/lib/libclang_rt/dd/Makefile b/lib/libclang_rt/dd/Makefile
index 1f4f1ea7e7e3..8786eb6d6330 100644
--- a/lib/libclang_rt/dd/Makefile
+++ b/lib/libclang_rt/dd/Makefile
@@ -21,7 +21,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
diff --git a/lib/libclang_rt/msan/Makefile b/lib/libclang_rt/msan/Makefile
index 6871b492d6e0..76e05af7462c 100644
--- a/lib/libclang_rt/msan/Makefile
+++ b/lib/libclang_rt/msan/Makefile
@@ -33,7 +33,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -42,6 +41,7 @@ SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_printf.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp
+SRCS+= sanitizer_common/sanitizer_stack_store.cpp
SRCS+= sanitizer_common/sanitizer_stackdepot.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cpp
diff --git a/lib/libclang_rt/stats/Makefile b/lib/libclang_rt/stats/Makefile
index 117af21707a7..b521c9305ac4 100644
--- a/lib/libclang_rt/stats/Makefile
+++ b/lib/libclang_rt/stats/Makefile
@@ -21,7 +21,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -30,6 +29,7 @@ SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_printf.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp
+SRCS+= sanitizer_common/sanitizer_stack_store.cpp
SRCS+= sanitizer_common/sanitizer_stackdepot.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cpp
diff --git a/lib/libclang_rt/tsan/Makefile b/lib/libclang_rt/tsan/Makefile
index a41eb6f38aeb..a04a331bcbad 100644
--- a/lib/libclang_rt/tsan/Makefile
+++ b/lib/libclang_rt/tsan/Makefile
@@ -25,7 +25,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -34,6 +33,7 @@ SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_printf.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp
+SRCS+= sanitizer_common/sanitizer_stack_store.cpp
SRCS+= sanitizer_common/sanitizer_stackdepot.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cpp
@@ -68,6 +68,7 @@ SRCS+= tsan/rtl/tsan_platform_posix.cpp
SRCS+= tsan/rtl/tsan_preinit.cpp
SRCS+= tsan/rtl/tsan_report.cpp
SRCS+= tsan/rtl/tsan_rtl.cpp
+SRCS+= tsan/rtl/tsan_rtl_access.cpp
SRCS+= tsan/rtl/tsan_rtl_amd64.S
SRCS+= tsan/rtl/tsan_rtl_mutex.cpp
SRCS+= tsan/rtl/tsan_rtl_proc.cpp
@@ -77,6 +78,7 @@ SRCS+= tsan/rtl/tsan_stack_trace.cpp
SRCS+= tsan/rtl/tsan_suppressions.cpp
SRCS+= tsan/rtl/tsan_symbolize.cpp
SRCS+= tsan/rtl/tsan_sync.cpp
+SRCS+= tsan/rtl/tsan_vector_clock.cpp
SRCS+= ubsan/ubsan_diag.cpp
SRCS+= ubsan/ubsan_flags.cpp
SRCS+= ubsan/ubsan_handlers.cpp
diff --git a/lib/libclang_rt/ubsan_standalone/Makefile b/lib/libclang_rt/ubsan_standalone/Makefile
index 9da97cacc20b..53f27fad2579 100644
--- a/lib/libclang_rt/ubsan_standalone/Makefile
+++ b/lib/libclang_rt/ubsan_standalone/Makefile
@@ -25,7 +25,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -34,6 +33,7 @@ SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_printf.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp
SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp
+SRCS+= sanitizer_common/sanitizer_stack_store.cpp
SRCS+= sanitizer_common/sanitizer_stackdepot.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace.cpp
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cpp
diff --git a/lib/libclang_rt/xray/Makefile b/lib/libclang_rt/xray/Makefile
index 60ed642d330a..ce2d725710e8 100644
--- a/lib/libclang_rt/xray/Makefile
+++ b/lib/libclang_rt/xray/Makefile
@@ -19,7 +19,6 @@ SRCS+= sanitizer_common/sanitizer_libignore.cpp
SRCS+= sanitizer_common/sanitizer_linux.cpp
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp
SRCS+= sanitizer_common/sanitizer_mutex.cpp
-SRCS+= sanitizer_common/sanitizer_persistent_allocator.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cpp
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cpp
diff --git a/lib/libomp/kmp_config.h b/lib/libomp/kmp_config.h
index 81af653b5327..fd25b7404178 100644
--- a/lib/libomp/kmp_config.h
+++ b/lib/libomp/kmp_config.h
@@ -85,6 +85,16 @@
#define KMP_HAVE_ATTRIBUTE_RTM LIBOMP_HAVE_ATTRIBUTE_RTM
#define LIBOMP_ARCH_AARCH64_A64FX 0
#define KMP_ARCH_AARCH64_A64FX LIBOMP_ARCH_AARCH64_A64FX
+#define LIBOMP_HAVE_XMMINTRIN_H 1
+#define KMP_HAVE_XMMINTRIN_H LIBOMP_HAVE_XMMINTRIN_H
+#define LIBOMP_HAVE__MM_MALLOC 1
+#define KMP_HAVE__MM_MALLOC LIBOMP_HAVE__MM_MALLOC
+#define LIBOMP_HAVE_ALIGNED_ALLOC 1
+#define KMP_HAVE_ALIGNED_ALLOC LIBOMP_HAVE_ALIGNED_ALLOC
+#define LIBOMP_HAVE_POSIX_MEMALIGN 1
+#define KMP_HAVE_POSIX_MEMALIGN LIBOMP_HAVE_POSIX_MEMALIGN
+#define LIBOMP_HAVE__ALIGNED_MALLOC 0
+#define KMP_HAVE__ALIGNED_MALLOC LIBOMP_HAVE__ALIGNED_MALLOC
// Configured cache line based on architecture
#if KMP_ARCH_PPC64
@@ -125,4 +135,9 @@
# define KMP_GOMP_COMPAT
#endif
+// use shared memory with dynamic library (except Android, where shm_*
+// functions don't exist).
+#if KMP_OS_UNIX && KMP_DYNAMIC_LIB && !__ANDROID__
+#define KMP_USE_SHM
+#endif
#endif // KMP_CONFIG_H
diff --git a/lib/libomp/kmp_i18n_default.inc b/lib/libomp/kmp_i18n_default.inc
index 807b3c4786e2..f10caed57de6 100644
--- a/lib/libomp/kmp_i18n_default.inc
+++ b/lib/libomp/kmp_i18n_default.inc
@@ -1,6 +1,6 @@
// $FreeBSD$
// Do not edit this file! //
-// The file was generated from en_US.txt by message-converter.pl on Thu Aug 26 11:36:17 2021. //
+// The file was generated from en_US.txt by message-converter.pl on Mon Nov 22 22:46:03 2021. //
static char const *
__kmp_i18n_default_meta[] =
@@ -224,6 +224,7 @@ __kmp_i18n_default_messages[] =
"%1$s value \"%2$u\" will be used.",
"%1$s value \"%2$s\" will be used.",
"%1$s value \"%2$s\" will be used.",
+ "Mixing other barrier patterns with dist is prohibited. Using dist for all barrier patterns.",
"%1$s maximum value \"%2$d\" will be used.",
"%1$s minimum value \"%2$d\" will be used.",
"Memory allocation failed.",
@@ -308,6 +309,7 @@ __kmp_i18n_default_messages[] =
"Allocator %1$s is not available, will use default allocator.",
"%1$s: %2$s (%3$d total cores)",
"%1$s: granularity setting: %2$s does not exist in topology. Using granularity=%3$s instead.",
+ "%1$s: hybrid core type detected: %2$d %3$s cores.",
"%1$s must be bound to a work-sharing or work-queuing construct with an \"ordered\" clause",
"Detected end of %1$s without first executing a corresponding beginning.",
"Iteration range too large in %1$s.",
@@ -403,6 +405,8 @@ __kmp_i18n_default_messages[] =
"KMP_HW_SUBSET ignored: %1$s, %2$s: layers are equivalent, please only specify one.",
"KMP_HW_SUBSET ignored: %1$s layer should come after %2$s.",
"%1$s: topology layer \"%2$s\" is equivalent to \"%3$s\".",
+ "%1$s: granularity=%2$s is too coarse, setting granularity=group.",
+ "%1$s: \"%2$s\" value is deprecated. Please use \"%3$s\" instead.",
NULL
};
@@ -454,7 +458,7 @@ __kmp_i18n_sections[] =
{ 5, __kmp_i18n_default_meta },
{ 79, __kmp_i18n_default_strings },
{ 6, __kmp_i18n_default_formats },
- { 286, __kmp_i18n_default_messages },
+ { 290, __kmp_i18n_default_messages },
{ 28, __kmp_i18n_default_hints },
{ 0, NULL }
};
diff --git a/lib/libomp/kmp_i18n_id.inc b/lib/libomp/kmp_i18n_id.inc
index bb542f544e0c..4ef2ea7a7c41 100644
--- a/lib/libomp/kmp_i18n_id.inc
+++ b/lib/libomp/kmp_i18n_id.inc
@@ -1,6 +1,6 @@
// $FreeBSD$
// Do not edit this file! //
-// The file was generated from en_US.txt by message-converter.pl on Thu Aug 26 11:36:17 2021. //
+// The file was generated from en_US.txt by message-converter.pl on Mon Nov 22 22:46:03 2021. //
enum kmp_i18n_id {
@@ -218,6 +218,7 @@ enum kmp_i18n_id {
kmp_i18n_msg_Using_uint_Value,
kmp_i18n_msg_Using_uint64_Value,
kmp_i18n_msg_Using_str_Value,
+ kmp_i18n_msg_BarrierPatternOverride,
kmp_i18n_msg_MaxValueUsing,
kmp_i18n_msg_MinValueUsing,
kmp_i18n_msg_MemoryAllocFailed,
@@ -302,6 +303,7 @@ enum kmp_i18n_id {
kmp_i18n_msg_OmpNoAllocator,
kmp_i18n_msg_TopologyGeneric,
kmp_i18n_msg_AffGranularityBad,
+ kmp_i18n_msg_TopologyHybrid,
kmp_i18n_msg_CnsBoundToWorksharing,
kmp_i18n_msg_CnsDetectedEnd,
kmp_i18n_msg_CnsIterationRangeTooLarge,
@@ -397,6 +399,8 @@ enum kmp_i18n_id {
kmp_i18n_msg_AffHWSubsetEqvLayers,
kmp_i18n_msg_AffHWSubsetOutOfOrder,
kmp_i18n_msg_AffEqualTopologyTypes,
+ kmp_i18n_msg_AffGranTooCoarseProcGroup,
+ kmp_i18n_msg_StgDeprecatedValue,
kmp_i18n_msg_last,
// Set #5, hints.
diff --git a/lib/libomp/omp.h b/lib/libomp/omp.h
index 586d13de399c..f36a6d6c7de0 100644
--- a/lib/libomp/omp.h
+++ b/lib/libomp/omp.h
@@ -432,14 +432,23 @@
extern omp_allocator_handle_t __KAI_KMPC_CONVENTION omp_get_default_allocator(void);
# ifdef __cplusplus
extern void *__KAI_KMPC_CONVENTION omp_alloc(size_t size, omp_allocator_handle_t a = omp_null_allocator);
- extern void *__KAI_KMPC_CONVENTION omp_calloc(size_t nmemb, size_t size, omp_allocator_handle_t a = omp_null_allocator);
+ extern void *__KAI_KMPC_CONVENTION omp_aligned_alloc(size_t align, size_t size,
+ omp_allocator_handle_t a = omp_null_allocator);
+ extern void *__KAI_KMPC_CONVENTION omp_calloc(size_t nmemb, size_t size,
+ omp_allocator_handle_t a = omp_null_allocator);
+ extern void *__KAI_KMPC_CONVENTION omp_aligned_calloc(size_t align, size_t nmemb, size_t size,
+ omp_allocator_handle_t a = omp_null_allocator);
extern void *__KAI_KMPC_CONVENTION omp_realloc(void *ptr, size_t size,
omp_allocator_handle_t allocator = omp_null_allocator,
omp_allocator_handle_t free_allocator = omp_null_allocator);
extern void __KAI_KMPC_CONVENTION omp_free(void * ptr, omp_allocator_handle_t a = omp_null_allocator);
# else
extern void *__KAI_KMPC_CONVENTION omp_alloc(size_t size, omp_allocator_handle_t a);
+ extern void *__KAI_KMPC_CONVENTION omp_aligned_alloc(size_t align, size_t size,
+ omp_allocator_handle_t a);
extern void *__KAI_KMPC_CONVENTION omp_calloc(size_t nmemb, size_t size, omp_allocator_handle_t a);
+ extern void *__KAI_KMPC_CONVENTION omp_aligned_calloc(size_t align, size_t nmemb, size_t size,
+ omp_allocator_handle_t a);
extern void *__KAI_KMPC_CONVENTION omp_realloc(void *ptr, size_t size, omp_allocator_handle_t allocator,
omp_allocator_handle_t free_allocator);
extern void __KAI_KMPC_CONVENTION omp_free(void *ptr, omp_allocator_handle_t a);
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index 1edd4887d262..6d254ed3027c 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -1187,301 +1187,305 @@ OLD_FILES+=usr/share/man/man1/llvm-symbolizer.1.gz
OLD_FILES+=usr/bin/clang
OLD_FILES+=usr/bin/clang++
OLD_FILES+=usr/bin/clang-cpp
-OLD_FILES+=usr/lib/clang/13.0.0/include/cuda_wrappers/algorithm
-OLD_FILES+=usr/lib/clang/13.0.0/include/cuda_wrappers/complex
-OLD_FILES+=usr/lib/clang/13.0.0/include/cuda_wrappers/new
-OLD_DIRS+=usr/lib/clang/13.0.0/include/cuda_wrappers
-OLD_FILES+=usr/lib/clang/13.0.0/include/fuzzer/FuzzedDataProvider.h
-OLD_DIRS+=usr/lib/clang/13.0.0/include/fuzzer
-OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/__clang_openmp_device_functions.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/cmath
-OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/complex
-OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/complex.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/complex_cmath.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/math.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/openmp_wrappers/new
-OLD_DIRS+=usr/lib/clang/13.0.0/include/openmp_wrappers
-OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/emmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/mm_malloc.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/mmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/pmmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/smmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/tmmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ppc_wrappers/xmmintrin.h
-OLD_DIRS+=usr/lib/clang/13.0.0/include/ppc_wrappers
-OLD_FILES+=usr/lib/clang/13.0.0/include/profile/InstrProfData.inc
-OLD_DIRS+=usr/lib/clang/13.0.0/include/profile
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/allocator_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/asan_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/common_interface_defs.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/coverage_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/dfsan_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/hwasan_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/linux_syscall_hooks.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/lsan_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/msan_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/netbsd_syscall_hooks.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/scudo_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/tsan_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/tsan_interface_atomic.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sanitizer/ubsan_interface.h
-OLD_DIRS+=usr/lib/clang/13.0.0/include/sanitizer
-OLD_FILES+=usr/lib/clang/13.0.0/include/xray/xray_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xray/xray_log_interface.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xray/xray_records.h
-OLD_DIRS+=usr/lib/clang/13.0.0/include/xray
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_builtin_vars.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_cmath.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_complex_builtins.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_device_functions.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_intrinsics.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_libdevice_declares.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_math.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_math_forward_declares.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_cuda_runtime_wrapper.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_cmath.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_libdevice_declares.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_math.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__clang_hip_runtime_wrapper.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__stddef_max_align_t.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__wmmintrin_aes.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/__wmmintrin_pclmul.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/adxintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/altivec.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ammintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/amxintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm64intr.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_acle.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_bf16.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_cde.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_cmse.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_fp16.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_mve.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_neon.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/arm_sve.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/armintr.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx2intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512bf16intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512bitalgintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512bwintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512cdintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512dqintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512erintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512fintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512ifmaintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512ifmavlintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512pfintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vbmi2intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vbmiintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vbmivlintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlbf16intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlbitalgintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlbwintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlcdintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vldqintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlvbmi2intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlvnniintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vlvp2intersectintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vnniintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vp2intersectintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vpopcntdqintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avx512vpopcntdqvlintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avxintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/avxvnniintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/bmi2intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/bmiintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/builtins.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/cet.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/cetintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/cldemoteintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/clflushoptintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/clwbintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/clzerointrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/cpuid.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/emmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/enqcmdintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/f16cintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/float.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/fma4intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/fmaintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/fxsrintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/gfniintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/hexagon_circ_brev_intrinsics.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/hexagon_protos.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/hexagon_types.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/hresetintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/htmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/htmxlintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/hvx_hexagon_protos.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ia32intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/immintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/inttypes.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/invpcidintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/iso646.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/keylockerintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/limits.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/lwpintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/lzcntintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/mm3dnow.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/mm_malloc.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/mmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/module.modulemap
-OLD_FILES+=usr/lib/clang/13.0.0/include/movdirintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/msa.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/mwaitxintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/nmmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/omp-tools.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/omp.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ompt.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/opencl-c-base.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/opencl-c.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/pconfigintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/pkuintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/pmmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/popcntintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/prfchwintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/ptwriteintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/rdseedintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/riscv_vector.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/rtmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/s390intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/serializeintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/sgxintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/shaintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/smmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/stdalign.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/stdarg.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/stdatomic.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/stdbool.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/stddef.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/stdint.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/stdnoreturn.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/tbmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/tgmath.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/tmmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/tsxldtrkintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/uintrintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/unwind.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/vadefs.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/vaesintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/varargs.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/vecintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/vpclmulqdqintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/waitpkgintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/wasm_simd128.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/wbnoinvdintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/wmmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/x86gprintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/x86intrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xmmintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xopintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xsavecintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xsaveintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xsaveoptintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xsavesintrin.h
-OLD_FILES+=usr/lib/clang/13.0.0/include/xtestintrin.h
-OLD_DIRS+=usr/lib/clang/13.0.0/include
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-aarch64.so
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-arm.so
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-armhf.so
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-i386.so
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-preinit-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan-x86_64.so
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.asan_cxx-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.cfi_diag-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.dd-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.dd-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer_no_main-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.fuzzer_no_main-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan_cxx-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.msan_cxx-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-powerpc.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-powerpc64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-powerpc64le.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.profile-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.safestack-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.safestack-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.safestack-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.stats_client-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan_cxx-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.tsan_cxx-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_minimal-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-i386.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-basic-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-fdr-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-aarch64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-arm.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-armhf.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-profiling-x86_64.a
-OLD_FILES+=usr/lib/clang/13.0.0/lib/freebsd/libclang_rt.xray-x86_64.a
-OLD_DIRS+=usr/lib/clang/13.0.0/lib/freebsd
-OLD_DIRS+=usr/lib/clang/13.0.0/lib
-OLD_DIRS+=usr/lib/clang/13.0.0
+OLD_FILES+=usr/lib/clang/14.0.0/include/cuda_wrappers/algorithm
+OLD_FILES+=usr/lib/clang/14.0.0/include/cuda_wrappers/complex
+OLD_FILES+=usr/lib/clang/14.0.0/include/cuda_wrappers/new
+OLD_DIRS+=usr/lib/clang/14.0.0/include/cuda_wrappers
+OLD_FILES+=usr/lib/clang/14.0.0/include/fuzzer/FuzzedDataProvider.h
+OLD_DIRS+=usr/lib/clang/14.0.0/include/fuzzer
+OLD_FILES+=usr/lib/clang/14.0.0/include/openmp_wrappers/__clang_openmp_device_functions.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/openmp_wrappers/cmath
+OLD_FILES+=usr/lib/clang/14.0.0/include/openmp_wrappers/complex
+OLD_FILES+=usr/lib/clang/14.0.0/include/openmp_wrappers/complex.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/openmp_wrappers/complex_cmath.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/openmp_wrappers/math.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/openmp_wrappers/new
+OLD_DIRS+=usr/lib/clang/14.0.0/include/openmp_wrappers
+OLD_FILES+=usr/lib/clang/14.0.0/include/ppc_wrappers/emmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ppc_wrappers/mm_malloc.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ppc_wrappers/mmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ppc_wrappers/pmmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ppc_wrappers/smmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ppc_wrappers/tmmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ppc_wrappers/xmmintrin.h
+OLD_DIRS+=usr/lib/clang/14.0.0/include/ppc_wrappers
+OLD_FILES+=usr/lib/clang/14.0.0/include/profile/InstrProfData.inc
+OLD_DIRS+=usr/lib/clang/14.0.0/include/profile
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/allocator_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/asan_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/common_interface_defs.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/coverage_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/dfsan_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/hwasan_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/linux_syscall_hooks.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/lsan_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/msan_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/netbsd_syscall_hooks.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/scudo_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/tsan_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/tsan_interface_atomic.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sanitizer/ubsan_interface.h
+OLD_DIRS+=usr/lib/clang/14.0.0/include/sanitizer
+OLD_FILES+=usr/lib/clang/14.0.0/include/xray/xray_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xray/xray_log_interface.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xray/xray_records.h
+OLD_DIRS+=usr/lib/clang/14.0.0/include/xray
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_builtin_vars.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_cmath.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_complex_builtins.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_device_functions.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_intrinsics.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_libdevice_declares.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_math.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_math_forward_declares.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_runtime_wrapper.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_cuda_texture_intrinsics.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_hip_cmath.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_hip_libdevice_declares.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_hip_math.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__clang_hip_runtime_wrapper.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__stddef_max_align_t.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__wmmintrin_aes.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/__wmmintrin_pclmul.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/adxintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/altivec.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ammintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/amxintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm64intr.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_acle.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_bf16.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_cde.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_cmse.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_fp16.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_mve.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_neon.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/arm_sve.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/armintr.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx2intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512bf16intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512bitalgintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512bwintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512cdintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512dqintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512erintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512fintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512fp16intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512ifmaintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512ifmavlintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512pfintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vbmi2intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vbmiintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vbmivlintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlbf16intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlbitalgintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlbwintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlcdintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vldqintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlfp16intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlvbmi2intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlvnniintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vlvp2intersectintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vnniintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vp2intersectintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vpopcntdqintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avx512vpopcntdqvlintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avxintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/avxvnniintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/bmi2intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/bmiintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/builtins.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/cet.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/cetintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/cldemoteintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/clflushoptintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/clwbintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/clzerointrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/cpuid.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/crc32intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/emmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/enqcmdintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/f16cintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/float.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/fma4intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/fmaintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/fxsrintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/gfniintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/hexagon_circ_brev_intrinsics.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/hexagon_protos.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/hexagon_types.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/hresetintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/htmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/htmxlintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/hvx_hexagon_protos.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ia32intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/immintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/inttypes.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/invpcidintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/iso646.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/keylockerintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/limits.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/lwpintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/lzcntintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/mm3dnow.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/mm_malloc.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/mmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/module.modulemap
+OLD_FILES+=usr/lib/clang/14.0.0/include/movdirintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/msa.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/mwaitxintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/nmmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/omp-tools.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/omp.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ompt.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/opencl-c-base.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/opencl-c.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/pconfigintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/pkuintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/pmmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/popcntintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/prfchwintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/ptwriteintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/rdseedintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/riscv_vector.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/rtmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/s390intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/serializeintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/sgxintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/shaintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/smmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/stdalign.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/stdarg.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/stdatomic.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/stdbool.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/stddef.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/stdint.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/stdnoreturn.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/tbmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/tgmath.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/tmmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/tsxldtrkintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/uintrintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/unwind.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/vadefs.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/vaesintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/varargs.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/vecintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/vpclmulqdqintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/waitpkgintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/wasm_simd128.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/wbnoinvdintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/wmmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/x86gprintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/x86intrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xmmintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xopintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xsavecintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xsaveintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xsaveoptintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xsavesintrin.h
+OLD_FILES+=usr/lib/clang/14.0.0/include/xtestintrin.h
+OLD_DIRS+=usr/lib/clang/14.0.0/include
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-aarch64.so
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-arm.so
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-armhf.so
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-i386.so
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-preinit-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-preinit-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-preinit-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-preinit-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-preinit-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan-x86_64.so
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan_cxx-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan_cxx-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan_cxx-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.asan_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi_diag-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi_diag-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi_diag-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi_diag-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.cfi_diag-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.dd-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.dd-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.fuzzer-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.fuzzer-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.fuzzer_no_main-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.fuzzer_no_main-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.msan-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.msan-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.msan_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.msan_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-powerpc.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-powerpc64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-powerpc64le.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.profile-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.safestack-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.safestack-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.safestack-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats_client-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats_client-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats_client-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats_client-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.stats_client-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.tsan-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.tsan-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.tsan_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.tsan_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_minimal-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_minimal-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_minimal-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_minimal-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_minimal-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-i386.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-basic-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-basic-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-basic-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-basic-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-fdr-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-fdr-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-fdr-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-fdr-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-profiling-aarch64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-profiling-arm.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-profiling-armhf.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-profiling-x86_64.a
+OLD_FILES+=usr/lib/clang/14.0.0/lib/freebsd/libclang_rt.xray-x86_64.a
+OLD_DIRS+=usr/lib/clang/14.0.0/lib/freebsd
+OLD_DIRS+=usr/lib/clang/14.0.0/lib
+OLD_DIRS+=usr/lib/clang/14.0.0
OLD_DIRS+=usr/lib/clang
OLD_FILES+=usr/share/doc/llvm/clang/LICENSE.TXT
OLD_DIRS+=usr/share/doc/llvm/clang
@@ -3751,24 +3755,81 @@ OLD_FILES+=usr/include/c++/v1/__algorithm/unwrap_iter.h
OLD_FILES+=usr/include/c++/v1/__algorithm/upper_bound.h
OLD_DIRS+=usr/include/c++/v1/__algorithm
OLD_FILES+=usr/include/c++/v1/__availability
+OLD_FILES+=usr/include/c++/v1/__bit/bit_cast.h
OLD_FILES+=usr/include/c++/v1/__bit_reference
+OLD_DIRS+=usr/include/c++/v1/__bit
OLD_FILES+=usr/include/c++/v1/__bits
OLD_FILES+=usr/include/c++/v1/__bsd_locale_defaults.h
OLD_FILES+=usr/include/c++/v1/__bsd_locale_fallbacks.h
OLD_FILES+=usr/include/c++/v1/__config
OLD_FILES+=usr/include/c++/v1/__config_site
+OLD_FILES+=usr/include/c++/v1/__charconv/chars_format.h
+OLD_FILES+=usr/include/c++/v1/__charconv/from_chars_result.h
+OLD_FILES+=usr/include/c++/v1/__charconv/to_chars_result.h
+OLD_DIRS+=usr/include/c++/v1/__charconv
+OLD_FILES+=usr/include/c++/v1/__compare/common_comparison_category.h
+OLD_FILES+=usr/include/c++/v1/__compare/compare_three_way.h
+OLD_FILES+=usr/include/c++/v1/__compare/compare_three_way_result.h
+OLD_FILES+=usr/include/c++/v1/__compare/is_eq.h
+OLD_FILES+=usr/include/c++/v1/__compare/ordering.h
+OLD_FILES+=usr/include/c++/v1/__compare/synth_three_way.h
+OLD_FILES+=usr/include/c++/v1/__compare/three_way_comparable.h
+OLD_DIRS+=usr/include/c++/v1/__compare
+OLD_FILES+=usr/include/c++/v1/__concepts/arithmetic.h
+OLD_FILES+=usr/include/c++/v1/__concepts/assignable.h
+OLD_FILES+=usr/include/c++/v1/__concepts/boolean_testable.h
+OLD_FILES+=usr/include/c++/v1/__concepts/class_or_enum.h
+OLD_FILES+=usr/include/c++/v1/__concepts/common_reference_with.h
+OLD_FILES+=usr/include/c++/v1/__concepts/common_with.h
+OLD_FILES+=usr/include/c++/v1/__concepts/constructible.h
+OLD_FILES+=usr/include/c++/v1/__concepts/convertible_to.h
+OLD_FILES+=usr/include/c++/v1/__concepts/copyable.h
+OLD_FILES+=usr/include/c++/v1/__concepts/derived_from.h
+OLD_FILES+=usr/include/c++/v1/__concepts/destructible.h
+OLD_FILES+=usr/include/c++/v1/__concepts/different_from.h
+OLD_FILES+=usr/include/c++/v1/__concepts/equality_comparable.h
+OLD_FILES+=usr/include/c++/v1/__concepts/invocable.h
+OLD_FILES+=usr/include/c++/v1/__concepts/movable.h
+OLD_FILES+=usr/include/c++/v1/__concepts/predicate.h
+OLD_FILES+=usr/include/c++/v1/__concepts/regular.h
+OLD_FILES+=usr/include/c++/v1/__concepts/relation.h
+OLD_FILES+=usr/include/c++/v1/__concepts/same_as.h
+OLD_FILES+=usr/include/c++/v1/__concepts/semiregular.h
+OLD_FILES+=usr/include/c++/v1/__concepts/swappable.h
+OLD_FILES+=usr/include/c++/v1/__concepts/totally_ordered.h
+OLD_DIRS+=usr/include/c++/v1/__concepts
+OLD_FILES+=usr/include/c++/v1/__coroutine/coroutine_handle.h
+OLD_FILES+=usr/include/c++/v1/__coroutine/coroutine_traits.h
+OLD_FILES+=usr/include/c++/v1/__coroutine/noop_coroutine_handle.h
+OLD_FILES+=usr/include/c++/v1/__coroutine/trivial_awaitables.h
+OLD_DIRS+=usr/include/c++/v1/__coroutine
OLD_FILES+=usr/include/c++/v1/__debug
OLD_FILES+=usr/include/c++/v1/__errc
+OLD_FILES+=usr/include/c++/v1/__format/format_arg.h
+OLD_FILES+=usr/include/c++/v1/__format/format_args.h
+OLD_FILES+=usr/include/c++/v1/__format/format_context.h
OLD_FILES+=usr/include/c++/v1/__format/format_error.h
+OLD_FILES+=usr/include/c++/v1/__format/format_fwd.h
OLD_FILES+=usr/include/c++/v1/__format/format_parse_context.h
+OLD_FILES+=usr/include/c++/v1/__format/format_string.h
+OLD_FILES+=usr/include/c++/v1/__format/format_to_n_result.h
+OLD_FILES+=usr/include/c++/v1/__format/formatter.h
+OLD_FILES+=usr/include/c++/v1/__format/formatter_bool.h
+OLD_FILES+=usr/include/c++/v1/__format/formatter_char.h
+OLD_FILES+=usr/include/c++/v1/__format/formatter_integer.h
+OLD_FILES+=usr/include/c++/v1/__format/formatter_integral.h
+OLD_FILES+=usr/include/c++/v1/__format/formatter_string.h
+OLD_FILES+=usr/include/c++/v1/__format/parser_std_format_spec.h
OLD_DIRS+=usr/include/c++/v1/__format
OLD_FILES+=usr/include/c++/v1/__function_like.h
OLD_FILES+=usr/include/c++/v1/__functional/binary_function.h
OLD_FILES+=usr/include/c++/v1/__functional/binary_negate.h
OLD_FILES+=usr/include/c++/v1/__functional/bind.h
+OLD_FILES+=usr/include/c++/v1/__functional/bind_back.h
OLD_FILES+=usr/include/c++/v1/__functional/bind_front.h
OLD_FILES+=usr/include/c++/v1/__functional/binder1st.h
OLD_FILES+=usr/include/c++/v1/__functional/binder2nd.h
+OLD_FILES+=usr/include/c++/v1/__functional/compose.h
OLD_FILES+=usr/include/c++/v1/__functional/default_searcher.h
OLD_FILES+=usr/include/c++/v1/__functional/function.h
OLD_FILES+=usr/include/c++/v1/__functional/hash.h
@@ -3821,10 +3882,12 @@ OLD_FILES+=usr/include/c++/v1/__iterator/readable_traits.h
OLD_FILES+=usr/include/c++/v1/__iterator/reverse_access.h
OLD_FILES+=usr/include/c++/v1/__iterator/reverse_iterator.h
OLD_FILES+=usr/include/c++/v1/__iterator/size.h
+OLD_FILES+=usr/include/c++/v1/__iterator/unreachable_sentinel.h
OLD_FILES+=usr/include/c++/v1/__iterator/wrap_iter.h
OLD_DIRS+=usr/include/c++/v1/__iterator
OLD_FILES+=usr/include/c++/v1/__libcpp_version
OLD_FILES+=usr/include/c++/v1/__locale
+OLD_FILES+=usr/include/c++/v1/__mbstate_t.h
OLD_FILES+=usr/include/c++/v1/__memory/addressof.h
OLD_FILES+=usr/include/c++/v1/__memory/allocation_guard.h
OLD_FILES+=usr/include/c++/v1/__memory/allocator.h
@@ -3833,7 +3896,6 @@ OLD_FILES+=usr/include/c++/v1/__memory/allocator_traits.h
OLD_FILES+=usr/include/c++/v1/__memory/auto_ptr.h
OLD_FILES+=usr/include/c++/v1/__memory/compressed_pair.h
OLD_FILES+=usr/include/c++/v1/__memory/construct_at.h
-OLD_FILES+=usr/include/c++/v1/__memory/pointer_safety.h
OLD_FILES+=usr/include/c++/v1/__memory/pointer_traits.h
OLD_FILES+=usr/include/c++/v1/__memory/raw_storage_iterator.h
OLD_FILES+=usr/include/c++/v1/__memory/shared_ptr.h
@@ -3852,6 +3914,7 @@ OLD_FILES+=usr/include/c++/v1/__ranges/all.h
OLD_FILES+=usr/include/c++/v1/__ranges/common_view.h
OLD_FILES+=usr/include/c++/v1/__ranges/concepts.h
OLD_FILES+=usr/include/c++/v1/__ranges/copyable_box.h
+OLD_FILES+=usr/include/c++/v1/__ranges/counted.h
OLD_FILES+=usr/include/c++/v1/__ranges/dangling.h
OLD_FILES+=usr/include/c++/v1/__ranges/data.h
OLD_FILES+=usr/include/c++/v1/__ranges/drop_view.h
@@ -3859,21 +3922,29 @@ OLD_FILES+=usr/include/c++/v1/__ranges/empty.h
OLD_FILES+=usr/include/c++/v1/__ranges/empty_view.h
OLD_FILES+=usr/include/c++/v1/__ranges/enable_borrowed_range.h
OLD_FILES+=usr/include/c++/v1/__ranges/enable_view.h
+OLD_FILES+=usr/include/c++/v1/__ranges/iota_view.h
+OLD_FILES+=usr/include/c++/v1/__ranges/join_view.h
OLD_FILES+=usr/include/c++/v1/__ranges/non_propagating_cache.h
+OLD_FILES+=usr/include/c++/v1/__ranges/range_adaptor.h
OLD_FILES+=usr/include/c++/v1/__ranges/ref_view.h
+OLD_FILES+=usr/include/c++/v1/__ranges/reverse_view.h
+OLD_FILES+=usr/include/c++/v1/__ranges/single_view.h
OLD_FILES+=usr/include/c++/v1/__ranges/size.h
OLD_FILES+=usr/include/c++/v1/__ranges/subrange.h
+OLD_FILES+=usr/include/c++/v1/__ranges/take_view.h
OLD_FILES+=usr/include/c++/v1/__ranges/transform_view.h
OLD_FILES+=usr/include/c++/v1/__ranges/view_interface.h
OLD_DIRS+=usr/include/c++/v1/__ranges
OLD_FILES+=usr/include/c++/v1/__split_buffer
OLD_FILES+=usr/include/c++/v1/__std_stream
OLD_FILES+=usr/include/c++/v1/__string
+OLD_FILES+=usr/include/c++/v1/__thread/poll_with_backoff.h
+OLD_DIRS+=usr/include/c++/v1/__thread
OLD_FILES+=usr/include/c++/v1/__threading_support
OLD_FILES+=usr/include/c++/v1/__tree
OLD_FILES+=usr/include/c++/v1/__tuple
OLD_FILES+=usr/include/c++/v1/__undef_macros
-OLD_FILES+=usr/include/c++/v1/__utility/__decay_copy.h
+OLD_FILES+=usr/include/c++/v1/__utility/decay_copy.h
OLD_FILES+=usr/include/c++/v1/__utility/as_const.h
OLD_FILES+=usr/include/c++/v1/__utility/cmp.h
OLD_FILES+=usr/include/c++/v1/__utility/declval.h
@@ -3916,6 +3987,7 @@ OLD_FILES+=usr/include/c++/v1/complex
OLD_FILES+=usr/include/c++/v1/complex.h
OLD_FILES+=usr/include/c++/v1/concepts
OLD_FILES+=usr/include/c++/v1/condition_variable
+OLD_FILES+=usr/include/c++/v1/coroutine
OLD_FILES+=usr/include/c++/v1/csetjmp
OLD_FILES+=usr/include/c++/v1/csignal
OLD_FILES+=usr/include/c++/v1/cstdarg
diff --git a/usr.bin/clang/llvm-diff/Makefile b/usr.bin/clang/llvm-diff/Makefile
index b7a989656907..6031f8b2a12d 100644
--- a/usr.bin/clang/llvm-diff/Makefile
+++ b/usr.bin/clang/llvm-diff/Makefile
@@ -3,9 +3,9 @@
PROG_CXX= llvm-diff
SRCDIR= llvm/tools/llvm-diff
-SRCS+= DiffConsumer.cpp
-SRCS+= DiffLog.cpp
-SRCS+= DifferenceEngine.cpp
+SRCS+= lib/DiffConsumer.cpp
+SRCS+= lib/DiffLog.cpp
+SRCS+= lib/DifferenceEngine.cpp
SRCS+= llvm-diff.cpp
.include "../llvm.prog.mk"
diff --git a/usr.bin/clang/llvm-mca/Makefile b/usr.bin/clang/llvm-mca/Makefile
index f1e24f7c9d35..727651146c52 100644
--- a/usr.bin/clang/llvm-mca/Makefile
+++ b/usr.bin/clang/llvm-mca/Makefile
@@ -16,7 +16,6 @@ SRCS+= Views/RetireControlUnitStatistics.cpp
SRCS+= Views/SchedulerStatistics.cpp
SRCS+= Views/SummaryView.cpp
SRCS+= Views/TimelineView.cpp
-SRCS+= Views/View.cpp
SRCS+= llvm-mca.cpp
CFLAGS+= -I${LLVM_BASE}/${SRCDIR}
diff --git a/usr.bin/clang/llvm-tblgen/Makefile b/usr.bin/clang/llvm-tblgen/Makefile
index 2a108c850a83..29701f46282e 100644
--- a/usr.bin/clang/llvm-tblgen/Makefile
+++ b/usr.bin/clang/llvm-tblgen/Makefile
@@ -18,6 +18,7 @@ SRCS+= CodeGenMapTable.cpp
SRCS+= CodeGenRegisters.cpp
SRCS+= CodeGenSchedule.cpp
SRCS+= CodeGenTarget.cpp
+SRCS+= CompressInstEmitter.cpp
SRCS+= DAGISelEmitter.cpp
SRCS+= DAGISelMatcher.cpp
SRCS+= DAGISelMatcherEmitter.cpp
@@ -49,7 +50,6 @@ SRCS+= OptParserEmitter.cpp
SRCS+= OptRSTEmitter.cpp
SRCS+= PredicateExpander.cpp
SRCS+= PseudoLoweringEmitter.cpp
-SRCS+= RISCVCompressInstEmitter.cpp
SRCS+= RegisterBankEmitter.cpp
SRCS+= RegisterInfoEmitter.cpp
SRCS+= SDNodeProperties.cpp