aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile7
-rw-r--r--lib/clang/Makefile2
-rw-r--r--lib/clang/freebsd_cc_version.h2
-rw-r--r--lib/clang/headers/Makefile7
-rw-r--r--lib/clang/include/Plugins/Plugins.def1
-rw-r--r--lib/clang/include/VCSVersion.inc16
-rw-r--r--lib/clang/include/clang/Basic/Version.inc8
-rw-r--r--lib/clang/include/clang/Config/config.h8
-rw-r--r--lib/clang/include/lld/Common/Version.inc5
-rw-r--r--lib/clang/include/lldb/Host/Config.h7
-rw-r--r--lib/clang/include/lldb/Version/Version.inc6
-rw-r--r--lib/clang/include/llvm/Config/TargetMCAs.def11
-rw-r--r--lib/clang/include/llvm/Config/config.h28
-rw-r--r--lib/clang/include/llvm/Config/llvm-config.h31
-rw-r--r--lib/clang/include/llvm/Support/VCSRevision.h4
-rw-r--r--lib/clang/libclang/Makefile17
-rw-r--r--lib/clang/liblldb/LLDBWrapLua.cpp3605
-rw-r--r--lib/clang/liblldb/Makefile27
-rw-r--r--lib/clang/libllvm/Makefile67
-rw-r--r--lib/clang/libllvmminimal/Makefile1
-rw-r--r--lib/clang/llvm.build.mk9
-rw-r--r--lib/csu/Makefile.inc1
-rw-r--r--lib/csu/mips/Makefile28
-rw-r--r--lib/csu/mips/crt.h60
-rw-r--r--lib/csu/mips/crt1_c.c91
-rw-r--r--lib/csu/mips/crti.S53
-rw-r--r--lib/csu/mips/crtn.S25
-rw-r--r--lib/geom/Makefile.classes1
-rw-r--r--lib/geom/eli/geli.88
-rw-r--r--lib/geom/mirror/geom_mirror.c26
-rw-r--r--lib/geom/multipath/gmultipath.86
-rw-r--r--lib/geom/part/geom_part.c140
-rw-r--r--lib/geom/part/gpart.826
-rw-r--r--lib/geom/union/Makefile8
-rw-r--r--lib/geom/union/Makefile.depend (renamed from lib/csu/mips/Makefile.depend)7
-rw-r--r--lib/geom/union/geom_union.c83
-rw-r--r--lib/geom/union/gunion.8320
-rw-r--r--lib/geom/virstor/geom_virstor.c3
-rw-r--r--lib/libarchive/Makefile.inc3
-rw-r--r--lib/libarchive/config_freebsd.h1
-rw-r--r--lib/libarchive/tests/Makefile13
-rw-r--r--lib/libbe/Makefile5
-rw-r--r--lib/libbe/be.c11
-rw-r--r--lib/libbe/be_access.c3
-rw-r--r--lib/libbsddialog/Makefile11
-rw-r--r--lib/libc++/Makefile229
-rw-r--r--lib/libc++/__config_site5
-rw-r--r--lib/libc/Makefile12
-rw-r--r--lib/libc/aarch64/Symbol.map2
-rw-r--r--lib/libc/aarch64/gen/Makefile.inc2
-rw-r--r--lib/libc/aarch64/gen/_get_tp.c45
-rw-r--r--lib/libc/aarch64/gen/_set_tp.c43
-rw-r--r--lib/libc/amd64/Symbol.map1
-rw-r--r--lib/libc/amd64/gen/Makefile.inc2
-rw-r--r--lib/libc/amd64/gen/_get_tp.c46
-rw-r--r--lib/libc/amd64/gen/_set_tp.c41
-rw-r--r--lib/libc/amd64/string/bcmp.S122
-rw-r--r--lib/libc/amd64/string/memcmp.S26
-rw-r--r--lib/libc/arm/Symbol.map1
-rw-r--r--lib/libc/arm/gen/Makefile.inc2
-rw-r--r--lib/libc/arm/gen/_get_tp.c46
-rw-r--r--lib/libc/compat-43/sigvec.211
-rw-r--r--lib/libc/db/man/dbm.313
-rw-r--r--lib/libc/gen/Makefile.inc8
-rw-r--r--lib/libc/gen/Symbol.map2
-rw-r--r--lib/libc/gen/alarm.310
-rw-r--r--lib/libc/gen/cpuset_alloc.c (renamed from lib/libc/powerpc64/gen/_set_tp.c)18
-rw-r--r--lib/libc/gen/cpuset_free.c (renamed from lib/libc/powerpc/gen/_set_tp.c)16
-rw-r--r--lib/libc/gen/fnmatch.36
-rw-r--r--lib/libc/gen/fts-compat.c31
-rw-r--r--lib/libc/gen/fts-compat11.c32
-rw-r--r--lib/libc/gen/fts.c33
-rw-r--r--lib/libc/gen/pause.320
-rw-r--r--lib/libc/gen/sched_getaffinity.c12
-rw-r--r--lib/libc/gen/sched_getcpu_gen.c1
-rw-r--r--lib/libc/gen/sched_setaffinity.c36
-rw-r--r--lib/libc/gen/setjmp.38
-rw-r--r--lib/libc/gen/sysctl.c42
-rw-r--r--lib/libc/gen/sysctlbyname.c15
-rw-r--r--lib/libc/gen/syslog.c15
-rw-r--r--lib/libc/gen/time.359
-rw-r--r--lib/libc/gen/tls.c30
-rw-r--r--lib/libc/i386/Symbol.map1
-rw-r--r--lib/libc/i386/gen/Makefile.inc2
-rw-r--r--lib/libc/i386/gen/_get_tp.c45
-rw-r--r--lib/libc/iconv/citrus_bcs.c4
-rw-r--r--lib/libc/include/compat.h2
-rw-r--r--lib/libc/include/libc_private.h6
-rw-r--r--lib/libc/locale/collate.c18
-rw-r--r--lib/libc/locale/ctype.317
-rw-r--r--lib/libc/locale/isalnum.37
-rw-r--r--lib/libc/locale/isascii.37
-rw-r--r--lib/libc/locale/iscntrl.37
-rw-r--r--lib/libc/locale/islower.37
-rw-r--r--lib/libc/locale/isprint.37
-rw-r--r--lib/libc/locale/ispunct.37
-rw-r--r--lib/libc/locale/isspace.37
-rw-r--r--lib/libc/locale/isupper.37
-rw-r--r--lib/libc/locale/lmessages.c32
-rw-r--r--lib/libc/locale/lmonetary.c40
-rw-r--r--lib/libc/locale/lnumeric.c39
-rw-r--r--lib/libc/locale/setrunelocale.c2
-rw-r--r--lib/libc/locale/xlocale.c54
-rw-r--r--lib/libc/mips/Makefile.inc5
-rw-r--r--lib/libc/mips/SYS.h153
-rw-r--r--lib/libc/mips/Symbol.map53
-rw-r--r--lib/libc/mips/_fpmath.h58
-rw-r--r--lib/libc/mips/arith.h26
-rw-r--r--lib/libc/mips/gd_qnan.h48
-rw-r--r--lib/libc/mips/gen/Makefile.inc11
-rw-r--r--lib/libc/mips/gen/_ctx_start.S55
-rw-r--r--lib/libc/mips/gen/_get_tp.c103
-rw-r--r--lib/libc/mips/gen/_set_tp.c42
-rw-r--r--lib/libc/mips/gen/_setjmp.S200
-rw-r--r--lib/libc/mips/gen/fabs.S58
-rw-r--r--lib/libc/mips/gen/fabs.c47
-rw-r--r--lib/libc/mips/gen/flt_rounds.c42
-rw-r--r--lib/libc/mips/gen/hardfloat/fpgetmask.c29
-rw-r--r--lib/libc/mips/gen/hardfloat/fpgetround.c29
-rw-r--r--lib/libc/mips/gen/hardfloat/fpgetsticky.c29
-rw-r--r--lib/libc/mips/gen/hardfloat/fpsetmask.c38
-rw-r--r--lib/libc/mips/gen/hardfloat/fpsetround.c37
-rw-r--r--lib/libc/mips/gen/hardfloat/fpsetsticky.c38
-rw-r--r--lib/libc/mips/gen/infinity.c26
-rw-r--r--lib/libc/mips/gen/ldexp.S219
-rw-r--r--lib/libc/mips/gen/makecontext.c123
-rw-r--r--lib/libc/mips/gen/setjmp.S237
-rw-r--r--lib/libc/mips/gen/signalcontext.c55
-rw-r--r--lib/libc/mips/gen/sigsetjmp.S76
-rw-r--r--lib/libc/mips/net/Makefile.inc4
-rw-r--r--lib/libc/mips/net/htonl.S51
-rw-r--r--lib/libc/mips/net/htons.S47
-rw-r--r--lib/libc/mips/net/ntohl.S51
-rw-r--r--lib/libc/mips/net/ntohs.S46
-rw-r--r--lib/libc/mips/softfloat/milieu.h48
-rw-r--r--lib/libc/mips/softfloat/mips-gcc.h91
-rw-r--r--lib/libc/mips/softfloat/softfloat.h315
-rw-r--r--lib/libc/mips/static_tls.h64
-rw-r--r--lib/libc/mips/string/Makefile.inc13
-rw-r--r--lib/libc/mips/string/bcmp.S130
-rw-r--r--lib/libc/mips/string/bcopy.S297
-rw-r--r--lib/libc/mips/string/bzero.S83
-rw-r--r--lib/libc/mips/string/ffs.S59
-rw-r--r--lib/libc/mips/string/memcpy.S7
-rw-r--r--lib/libc/mips/string/memmove.S7
-rw-r--r--lib/libc/mips/string/strchr.S66
-rw-r--r--lib/libc/mips/string/strcmp.S68
-rw-r--r--lib/libc/mips/string/strlen.S55
-rw-r--r--lib/libc/mips/string/strrchr.S64
-rw-r--r--lib/libc/mips/sys/Makefile.inc9
-rw-r--r--lib/libc/mips/sys/Ovfork.S64
-rw-r--r--lib/libc/mips/sys/cerror.S72
-rw-r--r--lib/libc/mips/sys/syscall.S44
-rw-r--r--lib/libc/net/hosts12
-rw-r--r--lib/libc/net/if_indextoname.c2
-rw-r--r--lib/libc/net/nsdispatch.c2
-rw-r--r--lib/libc/net/sctp_sys_calls.c36
-rw-r--r--lib/libc/powerpc/Symbol.map1
-rw-r--r--lib/libc/powerpc/gen/Makefile.common4
-rw-r--r--lib/libc/powerpc/gen/_get_tp.c47
-rw-r--r--lib/libc/powerpc64/Symbol.map1
-rw-r--r--lib/libc/powerpc64/gen/Makefile.inc5
-rw-r--r--lib/libc/powerpc64/gen/_get_tp.c47
-rw-r--r--lib/libc/regex/regexec.c4
-rw-r--r--lib/libc/resolv/res_mkquery.c2
-rw-r--r--lib/libc/riscv/Symbol.map1
-rw-r--r--lib/libc/riscv/gen/Makefile.inc4
-rw-r--r--lib/libc/riscv/gen/_get_tp.c47
-rw-r--r--lib/libc/riscv/gen/_set_tp.c51
-rw-r--r--lib/libc/rpc/getnetpath.c2
-rw-r--r--lib/libc/rpc/rpc_soc.c2
-rw-r--r--lib/libc/rpc/svc_auth.c2
-rw-r--r--lib/libc/stdio/ferror.311
-rw-r--r--lib/libc/stdio/fflush.c9
-rw-r--r--lib/libc/stdio/fgets.39
-rw-r--r--lib/libc/stdio/fread.39
-rw-r--r--lib/libc/stdio/fread.c12
-rw-r--r--lib/libc/stdio/fseek.310
-rw-r--r--lib/libc/stdio/fvwrite.c13
-rw-r--r--lib/libc/stdio/scanf.317
-rw-r--r--lib/libc/stdio/wbuf.c12
-rw-r--r--lib/libc/stdlib/abs.37
-rw-r--r--lib/libc/stdlib/getenv.c4
-rw-r--r--lib/libc/stdlib/ldiv.38
-rw-r--r--lib/libc/stdlib/qsort.c2
-rw-r--r--lib/libc/stdtime/strftime.35
-rw-r--r--lib/libc/string/strcat.311
-rw-r--r--lib/libc/string/strcmp.311
-rw-r--r--lib/libc/string/strlen.310
-rw-r--r--lib/libc/string/strstr.c4
-rw-r--r--lib/libc/sys/Makefile.inc13
-rw-r--r--lib/libc/sys/Symbol.map2
-rw-r--r--lib/libc/sys/__vdso_gettimeofday.c4
-rw-r--r--lib/libc/sys/chroot.26
-rw-r--r--lib/libc/sys/closefrom.210
-rw-r--r--lib/libc/sys/cpuset_getaffinity.219
-rw-r--r--lib/libc/sys/execve.25
-rw-r--r--lib/libc/sys/fcntl.227
-rw-r--r--lib/libc/sys/getdirentries.24
-rw-r--r--lib/libc/sys/getfh.25
-rw-r--r--lib/libc/sys/intro.22
-rw-r--r--lib/libc/sys/kqueue.220
-rw-r--r--lib/libc/sys/nanosleep.219
-rw-r--r--lib/libc/sys/open.25
-rw-r--r--lib/libc/sys/pdfork.c2
-rw-r--r--lib/libc/sys/ptrace.285
-rw-r--r--lib/libc/sys/rtprio.217
-rw-r--r--lib/libc/sys/sigwaitinfo.213
-rw-r--r--lib/libc/sys/swapon.220
-rw-r--r--lib/libc/tests/gen/posix_spawn_test.c9
-rw-r--r--lib/libc/tests/net/getaddrinfo/Makefile2
-rw-r--r--lib/libc/tests/ssp/Makefile2
-rw-r--r--lib/libc/tests/stdio/Makefile2
-rw-r--r--lib/libc/tests/stdio/eintr_test.c143
-rw-r--r--lib/libc/tests/string/stpncpy_test.c13
-rw-r--r--lib/libc/tests/string/wcsnlen_test.c13
-rw-r--r--lib/libc/tests/sys/sendfile_test.c56
-rw-r--r--lib/libc/x86/sys/sched_getcpu_x86.c1
-rw-r--r--lib/libcam/camlib.c9
-rw-r--r--lib/libcasper/services/cap_fileargs/cap_fileargs.c5
-rw-r--r--lib/libcasper/services/cap_net/cap_net.c12
-rw-r--r--lib/libclang_rt/Makefile40
-rw-r--r--lib/libclang_rt/asan/Makefile2
-rw-r--r--lib/libclang_rt/asan_dynamic/Makefile11
-rw-r--r--lib/libclang_rt/asan_static/Makefile10
-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.mk4
-rw-r--r--lib/libclang_rt/dd/Makefile1
-rw-r--r--lib/libclang_rt/fuzzer_interceptors/Makefile9
-rw-r--r--lib/libclang_rt/include/Makefile1
-rw-r--r--lib/libclang_rt/msan/Makefile2
-rw-r--r--lib/libclang_rt/profile/Makefile1
-rw-r--r--lib/libclang_rt/stats/Makefile2
-rw-r--r--lib/libclang_rt/tsan/Makefile5
-rw-r--r--lib/libclang_rt/ubsan_standalone/Makefile2
-rw-r--r--lib/libclang_rt/xray/Makefile12
-rw-r--r--lib/libcompiler_rt/Makefile2
-rw-r--r--lib/libcrypt/Makefile2
-rw-r--r--lib/libcrypt/crypt.c1
-rw-r--r--lib/libcxxrt/Makefile18
-rw-r--r--lib/libdevctl/devctl.315
-rw-r--r--lib/libdevctl/devctl.c41
-rw-r--r--lib/libdevctl/devctl.h1
-rw-r--r--lib/libdwarf/Makefile5
-rw-r--r--lib/libefivar/FreeBSD-update52
-rw-r--r--lib/libefivar/Makefile2
-rw-r--r--lib/libefivar/efivar-dp-format.c973
-rw-r--r--lib/libefivar/efivar-dp-parse.c2061
-rw-r--r--lib/libefivar/efivar-dp-xlate.c2
-rw-r--r--lib/libefivar/uefi-dplib.h171
-rw-r--r--lib/libefivar/uefi-guid.c18
-rw-r--r--lib/libexpat/expat_config.h18
-rw-r--r--lib/libfetch/Makefile2
-rw-r--r--lib/libfetch/http.c7
-rw-r--r--lib/libgcc_eh/Makefile6
-rw-r--r--lib/libgcc_eh/Makefile.inc1
-rw-r--r--lib/libgcc_s/arm/Symbol.map2
-rw-r--r--lib/libgeom/geom_ctl.c8
-rw-r--r--lib/libgeom/geom_getxml.c41
-rw-r--r--lib/libgeom/geom_xml2tree.c53
-rw-r--r--lib/libgeom/libgeom.h4
-rw-r--r--lib/libipsec/pfkey.c2
-rw-r--r--lib/libiscsiutil/Makefile10
-rw-r--r--lib/libiscsiutil/chap.c419
-rw-r--r--lib/libiscsiutil/connection.c (renamed from lib/libc/arm/gen/_set_tp.c)29
-rw-r--r--lib/libiscsiutil/keys.c191
-rw-r--r--lib/libiscsiutil/libiscsiutil.h170
-rw-r--r--lib/libiscsiutil/log.c198
-rw-r--r--lib/libiscsiutil/pdu.c228
-rw-r--r--lib/libiscsiutil/text.c333
-rw-r--r--lib/libiscsiutil/utils.c (renamed from lib/libc/i386/gen/_set_tp.c)22
-rw-r--r--lib/libkvm/Makefile1
-rw-r--r--lib/libkvm/kvm.39
-rw-r--r--lib/libkvm/kvm_aarch64.h15
-rw-r--r--lib/libkvm/kvm_getloadavg.c9
-rw-r--r--lib/libkvm/kvm_minidump_aarch64.c79
-rw-r--r--lib/libkvm/kvm_minidump_mips.c372
-rw-r--r--lib/libkvm/kvm_mips.h117
-rw-r--r--lib/libkvm/kvm_nlist.35
-rw-r--r--lib/libkvm/kvm_open.35
-rw-r--r--lib/libkvm/kvm_private.c4
-rw-r--r--lib/libkvm/kvm_proc.c9
-rw-r--r--lib/libkvm/kvm_read.35
-rw-r--r--lib/libmagic/config.h45
-rw-r--r--lib/libmd/Makefile6
-rw-r--r--lib/libmd/ripemd.h2
-rw-r--r--lib/libmd/rmd160c.c2
-rw-r--r--lib/libmd/rmd_locl.h2
-rw-r--r--lib/libmd/rmdconst.h2
-rw-r--r--lib/libmd/sha.h2
-rw-r--r--lib/libmd/sha0c.c2
-rw-r--r--lib/libmd/sha1c.c2
-rw-r--r--lib/libmd/sha_locl.h2
-rw-r--r--lib/libmemstat/memstat_uma.c2
-rw-r--r--lib/libmixer/mixer.3164
-rw-r--r--lib/libmt/mt.32
-rw-r--r--lib/libnetbsd/sys/event.h2
-rw-r--r--lib/libnv/msgio.c4
-rw-r--r--lib/libnv/msgio.h2
-rw-r--r--lib/libnv/tests/nvlist_send_recv_test.c102
-rw-r--r--lib/libomp/kmp_config.h64
-rw-r--r--lib/libomp/kmp_i18n_default.inc20
-rw-r--r--lib/libomp/kmp_i18n_id.inc16
-rw-r--r--lib/libomp/omp-tools.h1
-rw-r--r--lib/libomp/omp.h12
-rw-r--r--lib/libpam/modules/pam_lastlog/Makefile2
-rw-r--r--lib/libpam/modules/pam_login_access/Makefile2
-rw-r--r--lib/libpam/modules/pam_nologin/Makefile2
-rw-r--r--lib/libpam/modules/pam_opie/Makefile2
-rw-r--r--lib/libpam/modules/pam_opieaccess/Makefile2
-rw-r--r--lib/libpam/modules/pam_securetty/Makefile2
-rw-r--r--lib/libpam/modules/pam_self/Makefile2
-rw-r--r--lib/libpam/modules/pam_ssh/pam_ssh.c2
-rw-r--r--lib/libpam/modules/pam_unix/Makefile2
-rw-r--r--lib/libpam/pam.d/Makefile2
-rw-r--r--lib/libpfctl/libpfctl.c576
-rw-r--r--lib/libpfctl/libpfctl.h103
-rw-r--r--lib/libpmc/Makefile2
-rw-r--r--lib/libpmc/libpmc.c131
-rw-r--r--lib/libpmc/pmc.32
-rw-r--r--lib/libpmc/pmc.mips24k.3409
-rw-r--r--lib/libpmc/pmc.octeon.3249
-rw-r--r--lib/libpmc/pmu-events/arch/x86/cascadelakex/uncore-other.json12
-rw-r--r--lib/libpmc/pmu-events/arch/x86/skylakex/uncore-other.json12
-rw-r--r--lib/libpmcstat/libpmcstat_image.c27
-rw-r--r--lib/libprocstat/Symbol.map5
-rw-r--r--lib/libprocstat/libprocstat.329
-rw-r--r--lib/libprocstat/libprocstat.c139
-rw-r--r--lib/libprocstat/libprocstat.h26
-rw-r--r--lib/libregex/Makefile2
-rw-r--r--lib/librpcsvc/Makefile2
-rw-r--r--lib/librtld_db/rtld_db.c8
-rw-r--r--lib/libsecureboot/Makefile.inc2
-rw-r--r--lib/libsecureboot/h/libsecureboot.h6
-rw-r--r--lib/libsecureboot/h/verify_file.h11
-rw-r--r--lib/libsecureboot/libsecureboot-priv.h3
-rw-r--r--lib/libsecureboot/openpgp/opgp_sig.c4
-rw-r--r--lib/libsecureboot/readfile.c38
-rw-r--r--lib/libsecureboot/tests/tvo.c45
-rw-r--r--lib/libsecureboot/vectx.c50
-rw-r--r--lib/libsecureboot/veopen.c13
-rw-r--r--lib/libsecureboot/verify_file.c208
-rw-r--r--lib/libsecureboot/vets.c113
-rw-r--r--lib/libsysdecode/Makefile3
-rw-r--r--lib/libsysdecode/flags.c60
-rw-r--r--lib/libsysdecode/mktables7
-rw-r--r--lib/libsysdecode/sysdecode.32
-rw-r--r--lib/libsysdecode/sysdecode.h5
-rw-r--r--lib/libsysdecode/sysdecode_abi_to_freebsd_errno.32
-rw-r--r--lib/libsysdecode/sysdecode_cap_rights.326
-rw-r--r--lib/libsysdecode/sysdecode_cmsg_type.32
-rw-r--r--lib/libsysdecode/sysdecode_enum.32
-rw-r--r--lib/libsysdecode/sysdecode_fcntl_arg.33
-rw-r--r--lib/libsysdecode/sysdecode_ioctlname.32
-rw-r--r--lib/libsysdecode/sysdecode_kevent.33
-rw-r--r--lib/libsysdecode/sysdecode_mask.38
-rw-r--r--lib/libsysdecode/sysdecode_quotactl_cmd.33
-rw-r--r--lib/libsysdecode/sysdecode_sctp_sinfo_flags.33
-rw-r--r--lib/libsysdecode/sysdecode_sigcode.32
-rw-r--r--lib/libsysdecode/sysdecode_socket_protocol.32
-rw-r--r--lib/libsysdecode/sysdecode_sockopt_name.32
-rw-r--r--lib/libsysdecode/sysdecode_syscallnames.32
-rw-r--r--lib/libsysdecode/sysdecode_utrace.33
-rw-r--r--lib/libsysdecode/tests/Makefile5
-rw-r--r--lib/libsysdecode/tests/sysdecode_test.c152
-rw-r--r--lib/libthr/Makefile5
-rw-r--r--lib/libthr/arch/aarch64/include/pthread_md.h34
-rw-r--r--lib/libthr/arch/amd64/include/pthread_md.h59
-rw-r--r--lib/libthr/arch/arm/include/pthread_md.h34
-rw-r--r--lib/libthr/arch/i386/include/pthread_md.h61
-rw-r--r--lib/libthr/arch/mips/include/pthread_md.h133
-rw-r--r--lib/libthr/arch/mips/include/pthread_tls.h46
-rw-r--r--lib/libthr/arch/powerpc/include/pthread_md.h46
-rw-r--r--lib/libthr/arch/riscv/include/pthread_md.h35
-rw-r--r--lib/libthr/thread/thr_barrier.c2
-rw-r--r--lib/libthr/thread/thr_cond.c2
-rw-r--r--lib/libthr/thread/thr_ctrdtr.c4
-rw-r--r--lib/libthr/thread/thr_exit.c8
-rw-r--r--lib/libthr/thread/thr_init.c19
-rw-r--r--lib/libthr/thread/thr_kern.c2
-rw-r--r--lib/libthr/thread/thr_malloc.c3
-rw-r--r--lib/libthr/thread/thr_mutex.c2
-rw-r--r--lib/libthr/thread/thr_private.h2
-rw-r--r--lib/libthr/thread/thr_pshared.c13
-rw-r--r--lib/libthr/thread/thr_pspinlock.c2
-rw-r--r--lib/libthr/thread/thr_rwlock.c2
-rw-r--r--lib/libthr/thread/thr_stack.c22
-rw-r--r--lib/libthr/thread/thr_symbols.c2
-rw-r--r--lib/libthread_db/arch/mips/libpthread_md.c93
-rw-r--r--lib/libusb/Makefile8
-rw-r--r--lib/libusb/libusb10.c3
-rw-r--r--lib/libusb/libusb20.c12
-rw-r--r--lib/libusb/libusb20_int.h10
-rw-r--r--lib/libusb/libusb20_ugen20.c16
-rw-r--r--lib/libusb/libusb_global_linux.h1
-rw-r--r--lib/libusbhid/Makefile4
-rw-r--r--lib/libusbhid/data.c4
-rw-r--r--lib/libusbhid/descr.c4
-rw-r--r--lib/libusbhid/usbvar.h6
-rw-r--r--lib/libutil/kinfo_getproc.c12
-rw-r--r--lib/libutil/libutil.h1
-rw-r--r--lib/libutil/pidfile.c76
-rw-r--r--lib/libvmmapi/vmmapi.c48
-rw-r--r--lib/libvmmapi/vmmapi.h3
-rw-r--r--lib/libwrap/Makefile2
-rw-r--r--lib/libypclnt/Makefile1
-rw-r--r--lib/libz/FREEBSD-upgrade6
-rw-r--r--lib/libz/Makefile9
-rw-r--r--lib/libz/Symbol.map20
-rw-r--r--lib/libz/Versions.def6
-rw-r--r--lib/libzstd/Makefile2
-rw-r--r--lib/msun/Makefile5
-rw-r--r--lib/msun/bsdsrc/b_exp.c143
-rw-r--r--lib/msun/bsdsrc/b_log.c166
-rw-r--r--lib/msun/bsdsrc/b_tgamma.c455
-rw-r--r--lib/msun/ld128/b_tgammal.c (renamed from lib/msun/src/imprecise.c)0
-rw-r--r--lib/msun/ld80/b_expl.c113
-rw-r--r--lib/msun/ld80/b_logl.c375
-rw-r--r--lib/msun/ld80/b_tgammal.c419
-rw-r--r--lib/msun/man/cosh.37
-rw-r--r--lib/msun/man/floor.37
-rw-r--r--lib/msun/man/fmod.37
-rw-r--r--lib/msun/man/sinh.37
-rw-r--r--lib/msun/man/tanh.37
-rw-r--r--lib/msun/mips/Makefile.inc4
-rw-r--r--lib/msun/mips/Symbol.map16
-rw-r--r--lib/msun/mips/fenv.c68
-rw-r--r--lib/msun/mips/fenv.h283
-rw-r--r--lib/msun/powerpc/Symbol.map5
-rw-r--r--lib/msun/powerpc/fenv.c2
-rw-r--r--lib/msun/powerpc/fenv.h7
-rw-r--r--lib/msun/src/math_private.h8
-rw-r--r--lib/msun/src/s_sincosl.c3
434 files changed, 11447 insertions, 11128 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 2cba5feaee19..816374552f0a 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -63,6 +63,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \
libgeom \
libifconfig \
libipsec \
+ libiscsiutil \
libjail \
libkiconv \
libkvm \
@@ -183,10 +184,10 @@ SUBDIR.${MK_STATS}+= libstats
.if ${COMPILER_TYPE} == "clang" && ${MK_CXX} != "no" && \
(${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" || \
- ${MACHINE_CPUARCH} == "powerpc")
+ ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "riscv")
_libclang_rt= libclang_rt
-.elif ${MK_ASAN} != "no" || ${MK_UBSAN} != "no"
-.error "Requested build with sanitizers but cannot build runtime libraries!"
+.elif (${MK_ASAN} != "no" || ${MK_UBSAN} != "no") && make(all)
+.error Requested build with sanitizers but cannot build runtime libraries!
.endif
.if ${MK_CXX} != "no"
diff --git a/lib/clang/Makefile b/lib/clang/Makefile
index df4aa01a2653..cbb2c2a7175f 100644
--- a/lib/clang/Makefile
+++ b/lib/clang/Makefile
@@ -4,7 +4,7 @@
# These have to be built in order.
SUBDIR= libllvm
-.if ${MK_CLANG} != "no"
+.if ${MK_CLANG} != "no" || ${MK_LLDB} != "no"
SUBDIR+= libclang
SUBDIR+= headers
.endif
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..49d2f579ee22 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.3/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
@@ -33,6 +34,7 @@ INCS+= amxintrin.h
INCS+= arm64intr.h
INCS+= arm_acle.h
INCS+= arm_cmse.h
+INCS+= arm_neon_sve_bridge.h
INCS+= armintr.h
INCS+= avx2intrin.h
INCS+= avx512bf16intrin.h
@@ -42,6 +44,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 +56,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 +77,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/Plugins/Plugins.def b/lib/clang/include/Plugins/Plugins.def
index 31445a0449dd..f985fa14db9d 100644
--- a/lib/clang/include/Plugins/Plugins.def
+++ b/lib/clang/include/Plugins/Plugins.def
@@ -63,6 +63,7 @@ LLDB_PLUGIN(PlatformFreeBSD)
LLDB_PLUGIN(PlatformGDB)
LLDB_PLUGIN(ScriptedProcess)
LLDB_PLUGIN(ProcessElfCore)
+LLDB_PLUGIN(ProcessFreeBSDKernel)
LLDB_SCRIPT_PLUGIN(ScriptInterpreterNone)
LLDB_SCRIPT_PLUGIN(ScriptInterpreterLua)
LLDB_PLUGIN(SymbolFileBreakpad)
diff --git a/lib/clang/include/VCSVersion.inc b/lib/clang/include/VCSVersion.inc
index 98c0198a4aaf..f3ef7edf1151 100644
--- a/lib/clang/include/VCSVersion.inc
+++ b/lib/clang/include/VCSVersion.inc
@@ -1,14 +1,10 @@
// $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.0.3-0-g1f9140064dfb"
+#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.0.3-0-g1f9140064dfb"
+#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_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.0.3-0-g1f9140064dfb"
+#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..6d52a256d7c9 100644
--- a/lib/clang/include/clang/Basic/Version.inc
+++ b/lib/clang/include/clang/Basic/Version.inc
@@ -1,9 +1,9 @@
/* $FreeBSD$ */
-#define CLANG_VERSION 13.0.0
-#define CLANG_VERSION_STRING "13.0.0"
-#define CLANG_VERSION_MAJOR 13
+#define CLANG_VERSION 14.0.3
+#define CLANG_VERSION_STRING "14.0.3"
+#define CLANG_VERSION_MAJOR 14
#define CLANG_VERSION_MINOR 0
-#define CLANG_VERSION_PATCHLEVEL 0
+#define CLANG_VERSION_PATCHLEVEL 3
#define CLANG_VENDOR "FreeBSD "
diff --git a/lib/clang/include/clang/Config/config.h b/lib/clang/include/clang/Config/config.h
index 0882737f125b..1e6b9f9f6034 100644
--- a/lib/clang/include/clang/Config/config.h
+++ b/lib/clang/include/clang/Config/config.h
@@ -9,6 +9,9 @@
/* Bug report URL. */
#define BUG_REPORT_URL "https://bugs.freebsd.org/submit/"
+/* Default to -fPIE and -pie on Linux. */
+#define CLANG_DEFAULT_PIE_ON_LINUX 0
+
/* Default linker to use. */
#define CLANG_DEFAULT_LINKER ""
@@ -65,7 +68,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.3"
/* Linker version detected at compile time. */
/* #undef HOST_LINK_VERSION */
@@ -76,6 +79,9 @@
/* enable x86 relax relocations by default */
#define ENABLE_X86_RELAX_RELOCATIONS 1
+/* Enable IEEE binary128 as default long double format on PowerPC Linux. */
+#define PPC_LINUX_DEFAULT_IEEELONGDOUBLE 0
+
/* Enable each functionality of modules */
/* #undef CLANG_ENABLE_ARCMT */
/* #undef CLANG_ENABLE_OBJC_REWRITER */
diff --git a/lib/clang/include/lld/Common/Version.inc b/lib/clang/include/lld/Common/Version.inc
index 3de8405e7c35..1af3ef380317 100644
--- a/lib/clang/include/lld/Common/Version.inc
+++ b/lib/clang/include/lld/Common/Version.inc
@@ -1,3 +1,4 @@
-// $FreeBSD$
+// Local identifier in __FreeBSD_version style
+#define LLD_FREEBSD_VERSION 1400004
-#define LLD_VERSION_STRING "13.0.0"
+#define LLD_VERSION_STRING "14.0.3 (FreeBSD llvmorg-14.0.3-0-g1f9140064dfb-" __XSTRING(LLD_FREEBSD_VERSION) ")"
diff --git a/lib/clang/include/lldb/Host/Config.h b/lib/clang/include/lldb/Host/Config.h
index a9a33dde6667..9f50bc587a4a 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
@@ -51,6 +46,8 @@
#define LLDB_ENABLE_PYTHON 0
+#define LLDB_ENABLE_FBSDVMCORE 0
+
#define LLDB_EMBED_PYTHON_HOME 0
/* #undef LLDB_PYTHON_HOME */
diff --git a/lib/clang/include/lldb/Version/Version.inc b/lib/clang/include/lldb/Version/Version.inc
new file mode 100644
index 000000000000..c6de80430710
--- /dev/null
+++ b/lib/clang/include/lldb/Version/Version.inc
@@ -0,0 +1,6 @@
+#define LLDB_VERSION 14.0.3
+#define LLDB_VERSION_STRING "14.0.3"
+#define LLDB_VERSION_MAJOR 14
+#define LLDB_VERSION_MINOR 0
+#define LLDB_VERSION_PATCH 3
+/* #undef LLDB_FULL_VERSION_STRING */
diff --git a/lib/clang/include/llvm/Config/TargetMCAs.def b/lib/clang/include/llvm/Config/TargetMCAs.def
new file mode 100644
index 000000000000..a6446bbf9a9e
--- /dev/null
+++ b/lib/clang/include/llvm/Config/TargetMCAs.def
@@ -0,0 +1,11 @@
+/* $FreeBSD$ */
+
+#ifndef LLVM_TARGETMCA
+# error Please define the macro LLVM_TARGETMCA(TargetName)
+#endif
+
+#ifdef LLVM_TARGET_ENABLE_X86
+LLVM_TARGETMCA(X86)
+#endif
+
+#undef LLVM_TARGETMCA
diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h
index d02d06c088de..7461a54424f6 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
@@ -168,11 +175,6 @@
#define HAVE_MALLOC_ZONE_STATISTICS 1
#endif
-/* Define to 1 if you have the `posix_fallocate' function. */
-#if !defined(__APPLE__)
-#define HAVE_POSIX_FALLOCATE 1
-#endif
-
/* Define to 1 if you have the `posix_spawn' function. */
#define HAVE_POSIX_SPAWN 1
@@ -271,9 +273,7 @@
/* #undef HAVE__CHSIZE_S */
/* Define to 1 if you have the `_Unwind_Backtrace' function. */
-#if !defined(__FreeBSD__)
#define HAVE__UNWIND_BACKTRACE 1
-#endif
/* Have host's __alloca */
/* #undef HAVE___ALLOCA */
@@ -333,9 +333,6 @@
/* Doesn't use `cmakedefine` because it is allowed to be empty. */
/* #undef LLVM_DEFAULT_TARGET_TRIPLE */
-/* Define if zlib compression is available */
-#define LLVM_ENABLE_ZLIB 1
-
/* Define if overriding target triple is enabled */
/* #undef LLVM_TARGET_TRIPLE_ENV */
@@ -369,10 +366,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.3"
/* Define to the version of this package. */
-#define PACKAGE_VERSION "13.0.0"
+#define PACKAGE_VERSION "14.0.3"
/* Define to the vendor of this package. */
/* #undef PACKAGE_VENDOR */
@@ -395,6 +392,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..e32e031a6bc9 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,16 +67,16 @@
#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
/* Patch version of the LLVM API */
-#define LLVM_VERSION_PATCH 0
+#define LLVM_VERSION_PATCH 3
/* LLVM version string */
-#define LLVM_VERSION_STRING "13.0.0"
+#define LLVM_VERSION_STRING "14.0.3"
/* Whether LLVM records statistics for use with GetStatistics(),
* PrintStatistics() or PrintStatisticsJSON()
@@ -83,12 +86,15 @@
/* Define if we have z3 and want to build it */
/* #undef LLVM_WITH_Z3 */
+/* Define if we have curl and want to use it */
+/* #undef LLVM_ENABLE_CURL */
+
+/* Define if zlib compression is available */
+#define LLVM_ENABLE_ZLIB 1
+
/* Define if LLVM was built with a dependency to the libtensorflow dynamic library */
/* #undef LLVM_HAVE_TF_API */
-/* Define if LLVM was built with a dependency to the tensorflow compiler */
-/* #undef LLVM_HAVE_TF_AOT */
-
/* Define to 1 if you have the <sysexits.h> header file. */
#define HAVE_SYSEXITS_H 1
@@ -100,12 +106,13 @@
#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
+/* Define if building libLLVM shared library */
+/* #undef LLVM_BUILD_LLVM_DYLIB */
+
+/* Define if building LLVM with BUILD_SHARED_LIBS */
+/* #undef LLVM_BUILD_SHARED_LIBS */
+/* Define if building LLVM with LLVM_FORCE_USE_OLD_TOOLCHAIN_LIBS */
+/* #undef LLVM_FORCE_USE_OLD_TOOLCHAIN */
#endif
diff --git a/lib/clang/include/llvm/Support/VCSRevision.h b/lib/clang/include/llvm/Support/VCSRevision.h
index 76c4f00a938c..20e168a7b001 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.0.3-0-g1f9140064dfb"
+#define LLVM_REPOSITORY "https://github.com/llvm/llvm-project.git"
diff --git a/lib/clang/libclang/Makefile b/lib/clang/libclang/Makefile
index 217417811846..a2612bc9d894 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
@@ -334,7 +333,9 @@ SRCS_MIN+= Driver/ToolChains/Flang.cpp
SRCS_MIN+= Driver/ToolChains/FreeBSD.cpp
SRCS_MIN+= Driver/ToolChains/Fuchsia.cpp
SRCS_MIN+= Driver/ToolChains/Gnu.cpp
-SRCS_MIN+= Driver/ToolChains/HIP.cpp
+SRCS_MIN+= Driver/ToolChains/HIPAMD.cpp
+SRCS_MIN+= Driver/ToolChains/HIPSPV.cpp
+SRCS_MIN+= Driver/ToolChains/HIPUtility.cpp
SRCS_MIN+= Driver/ToolChains/Haiku.cpp
SRCS_MIN+= Driver/ToolChains/Hexagon.cpp
SRCS_MIN+= Driver/ToolChains/Hurd.cpp
@@ -349,9 +350,11 @@ SRCS_MIN+= Driver/ToolChains/Myriad.cpp
SRCS_MIN+= Driver/ToolChains/NaCl.cpp
SRCS_MIN+= Driver/ToolChains/NetBSD.cpp
SRCS_MIN+= Driver/ToolChains/OpenBSD.cpp
+SRCS_MIN+= Driver/ToolChains/PPCFreeBSD.cpp
SRCS_MIN+= Driver/ToolChains/PPCLinux.cpp
SRCS_MIN+= Driver/ToolChains/PS4CPU.cpp
SRCS_MIN+= Driver/ToolChains/RISCVToolchain.cpp
+SRCS_MIN+= Driver/ToolChains/SPIRV.cpp
SRCS_MIN+= Driver/ToolChains/Solaris.cpp
SRCS_MIN+= Driver/ToolChains/TCE.cpp
SRCS_MIN+= Driver/ToolChains/VEToolchain.cpp
@@ -366,10 +369,12 @@ SRCS_MIN+= Edit/RewriteObjCFoundationAPI.cpp
SRCS_EXT+= Format/AffectedRangeManager.cpp
SRCS_EXT+= Format/BreakableToken.cpp
SRCS_EXT+= Format/ContinuationIndenter.cpp
+SRCS_EXT+= Format/DefinitionBlockSeparator.cpp
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
@@ -388,11 +393,11 @@ SRCS_MIN+= Frontend/CreateInvocationFromCommandLine.cpp
SRCS_MIN+= Frontend/DependencyFile.cpp
SRCS_MIN+= Frontend/DependencyGraph.cpp
SRCS_MIN+= Frontend/DiagnosticRenderer.cpp
+SRCS_MIN+= Frontend/ExtractAPIConsumer.cpp
SRCS_MIN+= Frontend/FrontendAction.cpp
SRCS_MIN+= Frontend/FrontendActions.cpp
SRCS_MIN+= Frontend/FrontendOptions.cpp
SRCS_MIN+= Frontend/HeaderIncludeGen.cpp
-SRCS_MIN+= Frontend/InitHeaderSearch.cpp
SRCS_MIN+= Frontend/InitPreprocessor.cpp
SRCS_MIN+= Frontend/InterfaceStubFunctionsConsumer.cpp
SRCS_MIN+= Frontend/LayoutOverrideSource.cpp
@@ -424,6 +429,7 @@ SRCS_MIN+= Index/IndexingAction.cpp
SRCS_MIN+= Index/IndexingContext.cpp
SRCS_MIN+= Index/USRGeneration.cpp
SRCS_MIN+= Lex/DependencyDirectivesSourceMinimizer.cpp
+SRCS_MIN+= Lex/InitHeaderSearch.cpp
SRCS_MIN+= Lex/HeaderMap.cpp
SRCS_MIN+= Lex/HeaderSearch.cpp
SRCS_MIN+= Lex/Lexer.cpp
@@ -628,6 +634,7 @@ SRCS_FUL+= StaticAnalyzer/Checkers/SmartPtrModeling.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/StreamChecker.cpp
+SRCS_FUL+= StaticAnalyzer/Checkers/StringChecker.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/Taint.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/TaintTesterChecker.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/TestAfterDivZeroChecker.cpp
@@ -654,6 +661,7 @@ SRCS_FUL+= StaticAnalyzer/Checkers/WebKit/RefCntblBaseVirtualDtorChecker.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/WebKit/UncountedCallArgsChecker.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/WebKit/UncountedLambdaCapturesChecker.cpp
SRCS_FUL+= StaticAnalyzer/Checkers/WebKit/UncountedLocalVarsChecker.cpp
+SRCS_FUL+= StaticAnalyzer/Checkers/cert/InvalidPtrChecker.cpp
SRCS_FUL+= StaticAnalyzer/Core/APSIntType.cpp
SRCS_FUL+= StaticAnalyzer/Core/AnalysisManager.cpp
SRCS_FUL+= StaticAnalyzer/Core/AnalyzerOptions.cpp
@@ -661,6 +669,7 @@ SRCS_FUL+= StaticAnalyzer/Core/BasicValueFactory.cpp
SRCS_FUL+= StaticAnalyzer/Core/BlockCounter.cpp
SRCS_FUL+= StaticAnalyzer/Core/BugReporter.cpp
SRCS_FUL+= StaticAnalyzer/Core/BugReporterVisitors.cpp
+SRCS_FUL+= StaticAnalyzer/Core/CallDescription.cpp
SRCS_FUL+= StaticAnalyzer/Core/CallEvent.cpp
SRCS_FUL+= StaticAnalyzer/Core/Checker.cpp
SRCS_FUL+= StaticAnalyzer/Core/CheckerContext.cpp
diff --git a/lib/clang/liblldb/LLDBWrapLua.cpp b/lib/clang/liblldb/LLDBWrapLua.cpp
index 2db9ba035173..7ad131ad9b62 100644
--- a/lib/clang/liblldb/LLDBWrapLua.cpp
+++ b/lib/clang/liblldb/LLDBWrapLua.cpp
@@ -2783,183 +2783,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 +3190,11 @@ 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"
+#include "../source/Plugins/ScriptInterpreter/Lua/SWIGLuaBridge.h"
+
+// required headers for typemaps
+#include "lldb/Host/File.h"
+
using namespace lldb_private;
using namespace lldb;
@@ -3678,9 +3651,89 @@ SWIGINTERN std::string lldb_SBWatchpoint___str__(lldb::SBWatchpoint *self){
}
-template <typename T>
-void
-PushSBClass(lua_State* L, T* obj);
+template <typename T> void PushSBClass(lua_State * L, T * obj);
+
+// This function is called from Lua::CallBreakpointCallback
+llvm::Expected<bool> lldb_private::LLDBSwigLuaBreakpointCallbackFunction(
+ lua_State * L, lldb::StackFrameSP stop_frame_sp,
+ lldb::BreakpointLocationSP bp_loc_sp,
+ const StructuredDataImpl &extra_args_impl) {
+ lldb::SBFrame sb_frame(stop_frame_sp);
+ lldb::SBBreakpointLocation sb_bp_loc(bp_loc_sp);
+ int nargs = 2;
+
+ lldb::SBStructuredData extra_args(extra_args_impl);
+
+ // Push the Lua wrappers
+ PushSBClass(L, &sb_frame);
+ PushSBClass(L, &sb_bp_loc);
+
+ if (extra_args.IsValid()) {
+ PushSBClass(L, &extra_args);
+ nargs++;
+ }
+
+ // Call into the Lua callback passing 'sb_frame' and 'sb_bp_loc'.
+ // Expects a boolean return.
+ if (lua_pcall(L, nargs, 1, 0) != LUA_OK) {
+ llvm::Error E = llvm::make_error<llvm::StringError>(
+ llvm::formatv("{0}\n", lua_tostring(L, -1)),
+ llvm::inconvertibleErrorCode());
+ // Pop error message from the stack.
+ lua_pop(L, 1);
+ return std::move(E);
+ }
+
+ // Boolean return from the callback
+ bool stop = lua_toboolean(L, -1);
+ lua_pop(L, 1);
+
+ return stop;
+}
+
+// This function is called from Lua::CallWatchpointCallback
+llvm::Expected<bool> lldb_private::LLDBSwigLuaWatchpointCallbackFunction(
+ lua_State * L, lldb::StackFrameSP stop_frame_sp, lldb::WatchpointSP wp_sp) {
+ lldb::SBFrame sb_frame(stop_frame_sp);
+ lldb::SBWatchpoint sb_wp(wp_sp);
+ int nargs = 2;
+
+ // Push the Lua wrappers
+ PushSBClass(L, &sb_frame);
+ PushSBClass(L, &sb_wp);
+
+ // Call into the Lua callback passing 'sb_frame' and 'sb_wp'.
+ // Expects a boolean return.
+ if (lua_pcall(L, nargs, 1, 0) != LUA_OK) {
+ llvm::Error E = llvm::make_error<llvm::StringError>(
+ llvm::formatv("{0}\n", lua_tostring(L, -1)),
+ llvm::inconvertibleErrorCode());
+ // Pop error message from the stack.
+ lua_pop(L, 1);
+ return std::move(E);
+ }
+
+ // Boolean return from the callback
+ bool stop = lua_toboolean(L, -1);
+ lua_pop(L, 1);
+
+ return stop;
+}
+
+static 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);
+}
+
+static int LLDBSwigLuaCloseFileHandle(lua_State * L) {
+ return luaL_error(L, "You cannot close a file handle used by lldb.");
+}
#ifdef __cplusplus
@@ -4007,7 +4060,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 +4082,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 +4290,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 +4322,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 +4439,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 +4466,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 +4758,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 +4959,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 +5314,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 +5486,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 +5512,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 +5634,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 +5660,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 +5710,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 +6246,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 +6276,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 +6372,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 +6386,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 +6850,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 +6880,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 +6907,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 +6937,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 +7114,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 +7264,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 +7314,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 +8089,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 +8141,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 +8390,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 +8420,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 +8510,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 +8884,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 +9228,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 +9278,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 +9449,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 +9460,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 +9961,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 +10111,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 +10161,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 +11021,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 +11048,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 +11272,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 +11306,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 +11357,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 +11391,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 +11623,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 +11643,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 +12199,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 +12233,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 +12277,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 +12318,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 +12569,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 +12614,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 +13611,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 +13683,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 +13704,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 +13776,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 +13823,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 +14033,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 +14243,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 +14275,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 +14332,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 +14405,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 +14425,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 +14453,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 +14526,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 +14546,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 +14575,21 @@ 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 +14846,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 +14876,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 +14900,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 +15006,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 +15044,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 +15399,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 +15433,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 +15472,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 +15595,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 +15653,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 +15686,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 +15791,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 +16061,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 +16158,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 +16176,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 +16216,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 +16250,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 +16284,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 +16321,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 +16355,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 +16389,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 +16423,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 +16457,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 +16491,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 +16525,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 +16559,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 +16593,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 +16627,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 +16661,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 +16683,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 +16697,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 +16736,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 +16751,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;
@@ -16723,6 +16768,47 @@ fail:
}
+static int _wrap_SBData_SetDataWithOwnership(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBData *arg1 = (lldb::SBData *) 0 ;
+ lldb::SBError *arg2 = 0 ;
+ void *arg3 = (void *) 0 ;
+ size_t arg4 ;
+ lldb::ByteOrder arg5 ;
+ uint8_t arg6 ;
+
+ SWIG_check_num_args("lldb::SBData::SetDataWithOwnership",5,5)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBData::SetDataWithOwnership",1,"lldb::SBData *");
+ if(!lua_isuserdata(L,2)) SWIG_fail_arg("lldb::SBData::SetDataWithOwnership",2,"lldb::SBError &");
+ if(!lua_isinteger(L,4)) SWIG_fail_arg("lldb::SBData::SetDataWithOwnership",4,"lldb::ByteOrder");
+ if(!lua_isinteger(L,5)) SWIG_fail_arg("lldb::SBData::SetDataWithOwnership",5,"uint8_t");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBData,0))){
+ SWIG_fail_ptr("SBData_SetDataWithOwnership",1,SWIGTYPE_p_lldb__SBData);
+ }
+
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_lldb__SBError,0))){
+ SWIG_fail_ptr("SBData_SetDataWithOwnership",2,SWIGTYPE_p_lldb__SBError);
+ }
+
+ {
+ arg3 = (void *)luaL_checklstring(L, 3, &arg4);
+ }
+ arg5 = (lldb::ByteOrder)lua_tointeger(L, 4);
+ arg6 = (uint8_t)lua_tointeger(L, 5);
+ (arg1)->SetDataWithOwnership(*arg2,(void const *)arg3,arg4,arg5,arg6);
+
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_SBData_Append(lua_State* L) {
int SWIG_arg = 0;
lldb::SBData *arg1 = (lldb::SBData *) 0 ;
@@ -16762,11 +16848,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 +16877,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 +16936,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 +16995,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 +17054,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 +17113,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 +17198,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 +17255,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 +17312,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 +17369,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 +17426,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;
}
@@ -17223,6 +17539,7 @@ static swig_lua_method swig_SBData_methods[]= {
{ "GetDescription", _wrap_SBData_GetDescription},
{ "ReadRawData", _wrap_SBData_ReadRawData},
{ "SetData", _wrap_SBData_SetData},
+ { "SetDataWithOwnership", _wrap_SBData_SetDataWithOwnership},
{ "Append", _wrap_SBData_Append},
{ "SetDataFromCString", _wrap_SBData_SetDataFromCString},
{ "SetDataFromUInt64Array", _wrap_SBData_SetDataFromUInt64Array},
@@ -17371,17 +17688,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 +17719,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 +17736,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 +17751,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 +18028,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 +18061,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 +18094,44 @@ 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;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
+static int _wrap_SBDebugger_SetInputString(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBDebugger *arg1 = (lldb::SBDebugger *) 0 ;
+ char *arg2 = (char *) 0 ;
+ lldb::SBError result;
+
+ SWIG_check_num_args("lldb::SBDebugger::SetInputString",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBDebugger::SetInputString",1,"lldb::SBDebugger *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBDebugger::SetInputString",2,"char const *");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBDebugger,0))){
+ SWIG_fail_ptr("SBDebugger_SetInputString",1,SWIGTYPE_p_lldb__SBDebugger);
+ }
+
+ arg2 = (char *)lua_tostring(L, 2);
+ result = (arg1)->SetInputString((char const *)arg2);
+ {
+ lldb::SBError * resultptr = new lldb::SBError((const lldb::SBError &) result);
+ SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBError,1); SWIG_arg++;
}
return SWIG_arg;
@@ -17884,23 +18255,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 +18330,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 +18351,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 +18426,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 +18447,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 +18522,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 +18762,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 +18782,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 +18901,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 +19219,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 +19282,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 +19507,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 +19561,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 +19773,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 +19822,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 +19856,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 +19896,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 +19916,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 +19940,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 +19993,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 +20029,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 +20128,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 +20267,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 +20391,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 +20409,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 +20516,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 +20687,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 +20874,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 +20991,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);
{
@@ -20633,6 +21039,7 @@ static swig_lua_method swig_SBDebugger_methods[]= {
{ "GetInputFileHandle", _wrap_SBDebugger_GetInputFileHandle},
{ "GetOutputFileHandle", _wrap_SBDebugger_GetOutputFileHandle},
{ "GetErrorFileHandle", _wrap_SBDebugger_GetErrorFileHandle},
+ { "SetInputString", _wrap_SBDebugger_SetInputString},
{ "SetInputFile", _wrap_SBDebugger_SetInputFile},
{ "SetOutputFile", _wrap_SBDebugger_SetOutputFile},
{ "SetErrorFile", _wrap_SBDebugger_SetErrorFile},
@@ -20696,6 +21103,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 +21404,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 +21430,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 +21763,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 +21783,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 +22405,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 +22432,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 +22719,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 +22739,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 +22761,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 +22771,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 +23925,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 +23943,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 +24071,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 +24193,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 +24651,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 +25099,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 +25416,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 +25434,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 +25470,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 +25509,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 +25538,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 +25567,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 +25616,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 +25660,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 +25769,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 +26206,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 +26232,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 +26619,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 +26652,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 +26937,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 +27039,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 +27319,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 +27554,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 +27588,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 +27596,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 +27983,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 +27993,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 +28224,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 +28376,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 +28468,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 +28502,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 +29117,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 +29221,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 +29453,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 +30120,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 +30191,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 +30260,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 +30558,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 +30706,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 +30777,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 +30943,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 +30960,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 +31046,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 +31220,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 +31246,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 +31416,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 +31437,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 +31523,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 +31544,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 +31762,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 +31962,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 +31989,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 +32018,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 +32052,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 +32086,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 +32704,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 +32730,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 +33064,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 +33101,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 +33135,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 +33169,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 +33198,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 +33234,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 +33277,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 +33393,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 +33503,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 +33657,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 +33716,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 +34013,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 +34298,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 +34348,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 +34530,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 +34644,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;
@@ -34194,6 +34772,30 @@ fail:
}
+static int _wrap_SBModule_IsFileBacked(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
+ bool result;
+
+ SWIG_check_num_args("lldb::SBModule::IsFileBacked",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBModule::IsFileBacked",1,"lldb::SBModule const *");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBModule,0))){
+ SWIG_fail_ptr("SBModule_IsFileBacked",1,SWIGTYPE_p_lldb__SBModule);
+ }
+
+ result = (bool)((lldb::SBModule const *)arg1)->IsFileBacked();
+ 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_SBModule_GetFileSpec(lua_State* L) {
int SWIG_arg = 0;
lldb::SBModule *arg1 = (lldb::SBModule *) 0 ;
@@ -34436,7 +35038,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 +35075,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 +35160,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 +35248,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 +35274,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 +35396,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 +35546,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 +35579,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 +35758,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 +35782,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 +35818,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 +35934,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 +36000,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 +36066,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;
@@ -35647,6 +36258,7 @@ static swig_lua_attribute swig_SBModule_attributes[] = {
static swig_lua_method swig_SBModule_methods[]= {
{ "IsValid", _wrap_SBModule_IsValid},
{ "Clear", _wrap_SBModule_Clear},
+ { "IsFileBacked", _wrap_SBModule_IsFileBacked},
{ "GetFileSpec", _wrap_SBModule_GetFileSpec},
{ "GetPlatformFileSpec", _wrap_SBModule_GetPlatformFileSpec},
{ "SetPlatformFileSpec", _wrap_SBModule_SetPlatformFileSpec},
@@ -36179,7 +36791,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 +37251,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 +38025,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;
@@ -38013,6 +38625,32 @@ fail:
}
+static int _wrap_SBPlatform_SetSDKRoot(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBPlatform *arg1 = (lldb::SBPlatform *) 0 ;
+ char *arg2 = (char *) 0 ;
+
+ SWIG_check_num_args("lldb::SBPlatform::SetSDKRoot",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBPlatform::SetSDKRoot",1,"lldb::SBPlatform *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBPlatform::SetSDKRoot",2,"char const *");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBPlatform,0))){
+ SWIG_fail_ptr("SBPlatform_SetSDKRoot",1,SWIGTYPE_p_lldb__SBPlatform);
+ }
+
+ arg2 = (char *)lua_tostring(L, 2);
+ (arg1)->SetSDKRoot((char const *)arg2);
+
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_SBPlatform_Get(lua_State* L) {
int SWIG_arg = 0;
lldb::SBPlatform *arg1 = (lldb::SBPlatform *) 0 ;
@@ -38218,7 +38856,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 +38889,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 +39038,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);
@@ -38501,6 +39139,7 @@ static swig_lua_method swig_SBPlatform_methods[]= {
{ "GetOSMajorVersion", _wrap_SBPlatform_GetOSMajorVersion},
{ "GetOSMinorVersion", _wrap_SBPlatform_GetOSMinorVersion},
{ "GetOSUpdateVersion", _wrap_SBPlatform_GetOSUpdateVersion},
+ { "SetSDKRoot", _wrap_SBPlatform_SetSDKRoot},
{ "Get", _wrap_SBPlatform_Get},
{ "Put", _wrap_SBPlatform_Put},
{ "Install", _wrap_SBPlatform_Install},
@@ -38770,7 +39409,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 +39427,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;
@@ -38830,7 +39468,7 @@ static int _wrap_SBProcess_GetSTDOUT(lua_State* L) {
if (arg3 <= 0) {
return luaL_error(L, "Positive integer expected");
}
- arg2 = (char *) malloc(arg3);
+ arg2 = (char *)malloc(arg3);
}
result = ((lldb::SBProcess const *)arg1)->GetSTDOUT(arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
@@ -38873,7 +39511,7 @@ static int _wrap_SBProcess_GetSTDERR(lua_State* L) {
if (arg3 <= 0) {
return luaL_error(L, "Positive integer expected");
}
- arg2 = (char *) malloc(arg3);
+ arg2 = (char *)malloc(arg3);
}
result = ((lldb::SBProcess const *)arg1)->GetSTDERR(arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
@@ -38916,7 +39554,7 @@ static int _wrap_SBProcess_GetAsyncProfileData(lua_State* L) {
if (arg3 <= 0) {
return luaL_error(L, "Positive integer expected");
}
- arg2 = (char *) malloc(arg3);
+ arg2 = (char *)malloc(arg3);
}
result = ((lldb::SBProcess const *)arg1)->GetAsyncProfileData(arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
@@ -38984,12 +39622,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 +39636,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 +39718,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 +39789,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 +39823,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 +39835,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 +39894,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 +39954,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 +39984,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 +40014,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 +40073,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 +40135,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 +40162,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 +40213,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 +40242,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 +40522,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 +40697,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 +40750,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,13 +40798,13 @@ 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) {
return luaL_error(L, "Positive integer expected");
}
- arg3 = (char *) malloc(arg4);
+ arg3 = (char *)malloc(arg4);
}
if (!SWIG_IsOK(SWIG_ConvertPtr(L,4,(void**)&arg5,SWIGTYPE_p_lldb__SBError,0))){
@@ -40159,8 +40851,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 +40886,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 +40917,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 +40990,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 +41349,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 +41433,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 +41460,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 +41484,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 +41549,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 +41642,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 +41675,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 +42526,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 +42599,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 +42653,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 +42886,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 +42904,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 +43461,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 +43647,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 +43731,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 +43996,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 +44048,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 +44299,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 +44370,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 +44417,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 +44462,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 +44686,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 +44807,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 +44866,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 +45128,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 +45238,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 +45268,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;
@@ -44867,7 +45573,7 @@ static int _wrap_SBStructuredData_GetStringValue(lua_State* L) {
if (arg3 <= 0) {
return luaL_error(L, "Positive integer expected");
}
- arg2 = (char *) malloc(arg3);
+ arg2 = (char *)malloc(arg3);
}
result = ((lldb::SBStructuredData const *)arg1)->GetStringValue(arg2,arg3);
lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
@@ -45548,7 +46254,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 +47210,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 +47682,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 +47802,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 +47819,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 +47881,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 +47913,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 +48096,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 +48353,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 +48838,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 +48995,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;
@@ -48314,6 +49102,30 @@ fail:
}
+static int _wrap_SBTarget_GetMaximumNumberOfChildrenToDisplay(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
+ uint32_t result;
+
+ SWIG_check_num_args("lldb::SBTarget::GetMaximumNumberOfChildrenToDisplay",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBTarget::GetMaximumNumberOfChildrenToDisplay",1,"lldb::SBTarget const *");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBTarget,0))){
+ SWIG_fail_ptr("SBTarget_GetMaximumNumberOfChildrenToDisplay",1,SWIGTYPE_p_lldb__SBTarget);
+ }
+
+ result = (uint32_t)((lldb::SBTarget const *)arg1)->GetMaximumNumberOfChildrenToDisplay();
+ lua_pushinteger(L, (lua_Integer) result); SWIG_arg++;
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_SBTarget_SetSectionLoadAddress(lua_State* L) {
int SWIG_arg = 0;
lldb::SBTarget *arg1 = (lldb::SBTarget *) 0 ;
@@ -48337,7 +49149,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 +49224,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 +49293,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 +49466,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 +49532,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 +49590,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 +49695,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 +49756,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 +49786,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 +49818,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 +49856,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 +49882,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 +49897,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 +49948,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 +49985,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 +50024,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 +50066,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 +50115,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 +50167,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 +50529,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 +50569,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 +50578,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 +50771,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 +50780,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 +50820,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 +50849,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 +50859,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 +50900,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 +50930,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 +50941,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 +50983,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 +51018,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 +51067,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 +51121,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 +51253,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 +51262,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 +51743,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 +51751,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 +51783,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 +52122,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 +52152,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 +52179,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 +52811,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 +52841,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 +52868,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 +52978,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 +53181,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 +53222,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 +53327,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 +53341,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 +53369,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 +53385,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 +53413,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 +53535,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 +53546,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;
@@ -53159,6 +54036,7 @@ static swig_lua_method swig_SBTarget_methods[]= {
{ "GetTriple", _wrap_SBTarget_GetTriple},
{ "GetDataByteSize", _wrap_SBTarget_GetDataByteSize},
{ "GetCodeByteSize", _wrap_SBTarget_GetCodeByteSize},
+ { "GetMaximumNumberOfChildrenToDisplay", _wrap_SBTarget_GetMaximumNumberOfChildrenToDisplay},
{ "SetSectionLoadAddress", _wrap_SBTarget_SetSectionLoadAddress},
{ "ClearSectionLoadAddress", _wrap_SBTarget_ClearSectionLoadAddress},
{ "SetModuleLoadAddress", _wrap_SBTarget_SetModuleLoadAddress},
@@ -53500,7 +54378,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 +54427,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 +54479,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 +54508,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 +54755,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 +54805,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 +54916,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 +54967,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 +55026,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 +55070,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 +55656,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 +55890,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 +55919,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 +55947,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 +56401,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 +56458,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);
@@ -55942,6 +56829,33 @@ fail:
}
+static int _wrap_SBThread_GetSiginfo(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
+ lldb::SBValue result;
+
+ SWIG_check_num_args("lldb::SBThread::GetSiginfo",1,1)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBThread::GetSiginfo",1,"lldb::SBThread *");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBThread,0))){
+ SWIG_fail_ptr("SBThread_GetSiginfo",1,SWIGTYPE_p_lldb__SBThread);
+ }
+
+ result = (arg1)->GetSiginfo();
+ {
+ lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
+ SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBValue,1); SWIG_arg++;
+ }
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_SBThread___tostring(lua_State* L) {
int SWIG_arg = 0;
lldb::SBThread *arg1 = (lldb::SBThread *) 0 ;
@@ -56026,6 +56940,7 @@ static swig_lua_method swig_SBThread_methods[]= {
{ "GetCurrentException", _wrap_SBThread_GetCurrentException},
{ "GetCurrentExceptionBacktrace", _wrap_SBThread_GetCurrentExceptionBacktrace},
{ "SafeToCallFunctions", _wrap_SBThread_SafeToCallFunctions},
+ { "GetSiginfo", _wrap_SBThread_GetSiginfo},
{ "__tostring", _wrap_SBThread___tostring},
{0,0}
};
@@ -56205,7 +57120,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 +57474,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 +57523,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 +57739,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 +57776,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 +57808,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 +57839,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 +59196,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 +59225,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 +59246,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 +59257,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 +59948,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 +60004,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 +60023,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 +60180,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 +60210,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 +60240,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 +60371,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 +60420,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 +60450,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 +60555,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 +60855,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 +61132,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 +61176,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 +61205,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 +61216,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 +61339,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 +61369,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 +61399,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 +61429,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 +61603,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 +61633,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 +61663,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 +61693,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 +62321,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 +62332,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 +62568,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 +62683,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 +62856,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 +62885,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 +62985,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 +63008,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 +63019,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 +63172,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 +63194,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 +63218,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 +63426,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 +63492,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 +63550,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 +63573,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 +63584,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 +64035,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 +64046,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 +64282,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 +64306,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 +64324,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 +64350,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 +64448,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 +64536,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 +64624,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 +65025,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 +65048,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 +65059,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 +65220,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 +65308,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 +65635,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 +65658,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 +65669,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 +65934,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 +65988,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 +66017,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 +66045,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 +66074,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 +66102,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 +66131,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 +66183,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 +66560,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 +66578,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 +66642,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 +66707,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 +66765,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 +66920,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 +67074,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 +67267,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 +67356,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 +67374,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 +67812,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 +67839,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 +67948,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 +68173,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 +68337,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 +68562,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 +68998,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 +69029,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);
@@ -68296,6 +69211,36 @@ fail:
}
+static int _wrap_SBValue_Clone(lua_State* L) {
+ int SWIG_arg = 0;
+ lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
+ char *arg2 = (char *) 0 ;
+ lldb::SBValue result;
+
+ SWIG_check_num_args("lldb::SBValue::Clone",2,2)
+ if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("lldb::SBValue::Clone",1,"lldb::SBValue *");
+ if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("lldb::SBValue::Clone",2,"char const *");
+
+ if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_lldb__SBValue,0))){
+ SWIG_fail_ptr("SBValue_Clone",1,SWIGTYPE_p_lldb__SBValue);
+ }
+
+ arg2 = (char *)lua_tostring(L, 2);
+ result = (arg1)->Clone((char const *)arg2);
+ {
+ lldb::SBValue * resultptr = new lldb::SBValue((const lldb::SBValue &) result);
+ SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_lldb__SBValue,1); SWIG_arg++;
+ }
+ return SWIG_arg;
+
+ if(0) SWIG_fail;
+
+fail:
+ lua_error(L);
+ return SWIG_arg;
+}
+
+
static int _wrap_SBValue_GetLoadAddress(lua_State* L) {
int SWIG_arg = 0;
lldb::SBValue *arg1 = (lldb::SBValue *) 0 ;
@@ -68786,6 +69731,7 @@ static swig_lua_method swig_SBValue_methods[]= {
{ "GetPointeeData", _wrap_SBValue_GetPointeeData},
{ "GetData", _wrap_SBValue_GetData},
{ "SetData", _wrap_SBValue_SetData},
+ { "Clone", _wrap_SBValue_Clone},
{ "GetLoadAddress", _wrap_SBValue_GetLoadAddress},
{ "GetAddress", _wrap_SBValue_GetAddress},
{ "Persist", _wrap_SBValue_Persist},
@@ -69107,7 +70053,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 +70083,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 +70627,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 +70645,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 +71089,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 +71162,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 +71173,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 +71223,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;
@@ -70407,90 +71353,6 @@ static swig_lua_class *swig_SBWatchpoint_bases[] = {0};
static const char *swig_SBWatchpoint_base_names[] = {0};
static swig_lua_class _wrap_class_SBWatchpoint = { "SBWatchpoint", "SBWatchpoint", &SWIGTYPE_p_lldb__SBWatchpoint,_proxy__wrap_new_SBWatchpoint, swig_delete_SBWatchpoint, swig_SBWatchpoint_methods, swig_SBWatchpoint_attributes, &swig_SBWatchpoint_Sf_SwigStatic, swig_SBWatchpoint_meta, swig_SBWatchpoint_bases, swig_SBWatchpoint_base_names };
-
-
-// This function is called from Lua::CallBreakpointCallback
-SWIGEXPORT llvm::Expected<bool>
-LLDBSwigLuaBreakpointCallbackFunction
-(
- lua_State *L,
- lldb::StackFrameSP stop_frame_sp,
- lldb::BreakpointLocationSP bp_loc_sp,
- StructuredDataImpl *extra_args_impl
-)
-{
- lldb::SBFrame sb_frame(stop_frame_sp);
- lldb::SBBreakpointLocation sb_bp_loc(bp_loc_sp);
- int nargs = 2;
-
- llvm::Optional<lldb::SBStructuredData> extra_args;
- if (extra_args_impl)
- extra_args = lldb::SBStructuredData(extra_args_impl);
-
- // Push the Lua wrappers
- PushSBClass(L, &sb_frame);
- PushSBClass(L, &sb_bp_loc);
-
- if (extra_args.hasValue()) {
- PushSBClass(L, extra_args.getPointer());
- nargs++;
- }
-
- // Call into the Lua callback passing 'sb_frame' and 'sb_bp_loc'.
- // Expects a boolean return.
- if (lua_pcall(L, nargs, 1, 0) != LUA_OK) {
- llvm::Error E = llvm::make_error<llvm::StringError>(
- llvm::formatv("{0}\n", lua_tostring(L, -1)),
- llvm::inconvertibleErrorCode());
- // Pop error message from the stack.
- lua_pop(L, 1);
- return std::move(E);
- }
-
- // Boolean return from the callback
- bool stop = lua_toboolean(L, -1);
- lua_pop(L, 1);
-
- return stop;
-}
-
-// This function is called from Lua::CallWatchpointCallback
-SWIGEXPORT llvm::Expected<bool>
-LLDBSwigLuaWatchpointCallbackFunction
-(
- lua_State *L,
- lldb::StackFrameSP stop_frame_sp,
- lldb::WatchpointSP wp_sp
-)
-{
- lldb::SBFrame sb_frame(stop_frame_sp);
- lldb::SBWatchpoint sb_wp(wp_sp);
- int nargs = 2;
-
- // Push the Lua wrappers
- PushSBClass(L, &sb_frame);
- PushSBClass(L, &sb_wp);
-
- // Call into the Lua callback passing 'sb_frame' and 'sb_wp'.
- // Expects a boolean return.
- if (lua_pcall(L, nargs, 1, 0) != LUA_OK) {
- llvm::Error E = llvm::make_error<llvm::StringError>(
- llvm::formatv("{0}\n", lua_tostring(L, -1)),
- llvm::inconvertibleErrorCode());
- // Pop error message from the stack.
- lua_pop(L, 1);
- return std::move(E);
- }
-
- // Boolean return from the callback
- bool stop = lua_toboolean(L, -1);
- lua_pop(L, 1);
-
- return stop;
-}
-
-
-
static swig_lua_attribute swig_SwigModule_attributes[] = {
{0,0,0}
};
@@ -71205,6 +72067,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 +72368,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 +72385,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 +72398,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 +72407,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 +72428,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 +72442,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 +72466,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 +72479,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 +72599,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 +72616,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 +72629,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 +72638,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 +72659,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 +72673,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 +72697,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 +72710,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 +72830,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 +72847,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 +72860,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 +72869,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 +72890,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 +72904,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 +72928,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 +72941,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 +73061,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 +73078,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 +73091,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 +73100,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 +73121,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 +73135,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 +73159,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 +73172,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 5672464a9213..28778cb04c57 100644
--- a/lib/clang/liblldb/Makefile
+++ b/lib/clang/liblldb/Makefile
@@ -150,6 +150,7 @@ SRCS+= Core/AddressRange.cpp
SRCS+= Core/AddressResolver.cpp
SRCS+= Core/AddressResolverFileLine.cpp
SRCS+= Core/Communication.cpp
+SRCS+= Core/DataFileCache.cpp
SRCS+= Core/Debugger.cpp
SRCS+= Core/Declaration.cpp
SRCS+= Core/Disassembler.cpp
@@ -247,7 +248,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 +325,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,13 +373,13 @@ 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/GenericOptional.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
-SRCS+= Plugins/Language/CPlusPlus/LibCxxOptional.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxQueue.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxTuple.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp
@@ -390,7 +391,9 @@ SRCS+= Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp
SRCS+= Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp
SRCS+= Plugins/Language/ClangCommon/ClangHighlighter.cpp
SRCS+= Plugins/Language/ObjC/CF.cpp
+SRCS+= Plugins/Language/ObjC/CFBasicHash.cpp
SRCS+= Plugins/Language/ObjC/Cocoa.cpp
+SRCS+= Plugins/Language/ObjC/CoreMedia.cpp
SRCS+= Plugins/Language/ObjC/NSArray.cpp
SRCS+= Plugins/Language/ObjC/NSDictionary.cpp
SRCS+= Plugins/Language/ObjC/NSError.cpp
@@ -407,6 +410,7 @@ SRCS+= Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleThreadPlanStepThrough
SRCS+= Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp
SRCS+= Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp
SRCS+= Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
+SRCS+= Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
SRCS+= Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
SRCS+= Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
SRCS+= Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp
@@ -425,12 +429,15 @@ SRCS+= Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp
SRCS+= Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp
SRCS+= Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.cpp
SRCS+= Plugins/Process/FreeBSD/NativeThreadFreeBSD.cpp
+SRCS+= Plugins/Process/FreeBSDKernel/ProcessFreeBSDKernel.cpp
+SRCS+= Plugins/Process/FreeBSDKernel/RegisterContextFreeBSDKernel_arm64.cpp
+SRCS+= Plugins/Process/FreeBSDKernel/RegisterContextFreeBSDKernel_i386.cpp
+SRCS+= Plugins/Process/FreeBSDKernel/RegisterContextFreeBSDKernel_x86_64.cpp
+SRCS+= Plugins/Process/FreeBSDKernel/ThreadFreeBSDKernel.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
@@ -485,16 +492,17 @@ SRCS+= Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
-SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
+SRCS+= Plugins/Process/gdb-remote/GDBRemoteRegisterFallback.cpp
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
@@ -569,6 +577,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
@@ -579,6 +588,7 @@ SRCS+= Target/LanguageRuntime.cpp
SRCS+= Target/Memory.cpp
SRCS+= Target/MemoryHistory.cpp
SRCS+= Target/MemoryRegionInfo.cpp
+SRCS+= Target/MemoryTagMap.cpp
SRCS+= Target/ModuleCache.cpp
SRCS+= Target/OperatingSystem.cpp
SRCS+= Target/PathMappingList.cpp
@@ -598,6 +608,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
@@ -646,6 +657,7 @@ SRCS+= Utility/Event.cpp
SRCS+= Utility/FileSpec.cpp
SRCS+= Utility/GDBRemote.cpp
SRCS+= Utility/IOObject.cpp
+SRCS+= Utility/Instrumentation.cpp
SRCS+= Utility/LLDBAssert.cpp
SRCS+= Utility/Listener.cpp
SRCS+= Utility/Log.cpp
@@ -655,7 +667,6 @@ SRCS+= Utility/ProcessInfo.cpp
SRCS+= Utility/RegisterValue.cpp
SRCS+= Utility/RegularExpression.cpp
SRCS+= Utility/Reproducer.cpp
-SRCS+= Utility/ReproducerInstrumentation.cpp
SRCS+= Utility/ReproducerProvider.cpp
SRCS+= Utility/Scalar.cpp
SRCS+= Utility/SelectHelper.cpp
@@ -679,7 +690,7 @@ SRCS+= Utility/UserID.cpp
SRCS+= Utility/UserIDResolver.cpp
SRCS+= Utility/VASprintf.cpp
SRCS+= Utility/VMRange.cpp
-SRCS+= lldb.cpp
+SRCS+= Version/Version.cpp
LLDB_TBLGEN?= lldb-tblgen
diff --git a/lib/clang/libllvm/Makefile b/lib/clang/libllvm/Makefile
index 6df32d8b452a..52216847685a 100644
--- a/lib/clang/libllvm/Makefile
+++ b/lib/clang/libllvm/Makefile
@@ -61,6 +61,7 @@ SRCS_MIN+= Analysis/CodeMetrics.cpp
SRCS_MIN+= Analysis/ConstantFolding.cpp
SRCS_MIN+= Analysis/ConstraintSystem.cpp
SRCS_MIN+= Analysis/CostModel.cpp
+SRCS_MIN+= Analysis/CycleAnalysis.cpp
SRCS_MIN+= Analysis/DDG.cpp
SRCS_MIN+= Analysis/DDGPrinter.cpp
SRCS_MIN+= Analysis/Delinearization.cpp
@@ -150,6 +151,7 @@ SRCS_MIN+= AsmParser/LLLexer.cpp
SRCS_MIN+= AsmParser/LLParser.cpp
SRCS_MIN+= AsmParser/Parser.cpp
SRCS_MIN+= BinaryFormat/AMDGPUMetadataVerifier.cpp
+SRCS_MIN+= BinaryFormat/COFF.cpp
SRCS_MIN+= BinaryFormat/Dwarf.cpp
SRCS_MIN+= BinaryFormat/Magic.cpp
SRCS_MIN+= BinaryFormat/MachO.cpp
@@ -209,6 +211,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 +253,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,7 +304,9 @@ 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/MLRegallocEvictAdvisor.cpp
SRCS_MIN+= CodeGen/MachineBasicBlock.cpp
SRCS_MIN+= CodeGen/MachineBlockFrequencyInfo.cpp
SRCS_MIN+= CodeGen/MachineBlockPlacement.cpp
@@ -309,6 +315,7 @@ SRCS_MIN+= CodeGen/MachineCSE.cpp
SRCS_MIN+= CodeGen/MachineCheckDebugify.cpp
SRCS_MIN+= CodeGen/MachineCombiner.cpp
SRCS_MIN+= CodeGen/MachineCopyPropagation.cpp
+SRCS_MIN+= CodeGen/MachineCycleAnalysis.cpp
SRCS_MIN+= CodeGen/MachineDebugify.cpp
SRCS_MIN+= CodeGen/MachineDominanceFrontier.cpp
SRCS_MIN+= CodeGen/MachineDominators.cpp
@@ -332,6 +339,7 @@ SRCS_MIN+= CodeGen/MachinePipeliner.cpp
SRCS_MIN+= CodeGen/MachinePostDominators.cpp
SRCS_MIN+= CodeGen/MachineRegionInfo.cpp
SRCS_MIN+= CodeGen/MachineRegisterInfo.cpp
+SRCS_MIN+= CodeGen/MachineSSAContext.cpp
SRCS_MIN+= CodeGen/MachineSSAUpdater.cpp
SRCS_MIN+= CodeGen/MachineScheduler.cpp
SRCS_MIN+= CodeGen/MachineSink.cpp
@@ -363,6 +371,7 @@ SRCS_MIN+= CodeGen/RDFLiveness.cpp
SRCS_MIN+= CodeGen/RDFRegisters.cpp
SRCS_MIN+= CodeGen/RegAllocBase.cpp
SRCS_MIN+= CodeGen/RegAllocBasic.cpp
+SRCS_MIN+= CodeGen/RegAllocEvictionAdvisor.cpp
SRCS_MIN+= CodeGen/RegAllocFast.cpp
SRCS_MIN+= CodeGen/RegAllocGreedy.cpp
SRCS_MIN+= CodeGen/RegAllocPBQP.cpp
@@ -454,7 +463,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
@@ -601,14 +610,19 @@ SRCS_EXT+= DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp
SRCS_EXT+= DebugInfo/PDB/PDBSymbolUnknown.cpp
SRCS_EXT+= DebugInfo/PDB/PDBSymbolUsingNamespace.cpp
SRCS_EXT+= DebugInfo/PDB/UDTLayout.cpp
+SRCS_MIW+= DebugInfo/Symbolize/DIFetcher.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_MIW+= Debuginfod/DIFetcher.cpp
+SRCS_MIW+= Debuginfod/Debuginfod.cpp
+SRCS_MIW+= Debuginfod/HTTPClient.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 +631,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 +642,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 +652,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
@@ -648,16 +669,21 @@ SRCS_EXT+= ExecutionEngine/Orc/Layer.cpp
SRCS_EXT+= ExecutionEngine/Orc/LazyReexports.cpp
SRCS_EXT+= ExecutionEngine/Orc/MachOPlatform.cpp
SRCS_EXT+= ExecutionEngine/Orc/Mangling.cpp
+SRCS_EXT+= ExecutionEngine/Orc/ObjectFileInterface.cpp
SRCS_EXT+= ExecutionEngine/Orc/ObjectLinkingLayer.cpp
SRCS_EXT+= ExecutionEngine/Orc/ObjectTransformLayer.cpp
SRCS_EXT+= ExecutionEngine/Orc/OrcABISupport.cpp
SRCS_EXT+= ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
+SRCS_EXT+= ExecutionEngine/Orc/Shared/AllocationActions.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
@@ -724,6 +750,7 @@ SRCS_MIN+= IR/PrintPasses.cpp
SRCS_MIN+= IR/ProfileSummary.cpp
SRCS_MIN+= IR/PseudoProbe.cpp
SRCS_MIN+= IR/ReplaceConstant.cpp
+SRCS_MIN+= IR/SSAContext.cpp
SRCS_MIN+= IR/SafepointIRVerifier.cpp
SRCS_MIN+= IR/Statepoint.cpp
SRCS_MIN+= IR/Type.cpp
@@ -734,7 +761,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 +813,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 +846,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 +872,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 +915,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
@@ -894,9 +925,11 @@ SRCS_MIN+= ProfileData/Coverage/CoverageMappingReader.cpp
SRCS_MIN+= ProfileData/Coverage/CoverageMappingWriter.cpp
SRCS_MIN+= ProfileData/GCOV.cpp
SRCS_MIN+= ProfileData/InstrProf.cpp
+SRCS_MIN+= ProfileData/InstrProfCorrelator.cpp
SRCS_MIN+= ProfileData/InstrProfReader.cpp
SRCS_MIN+= ProfileData/InstrProfWriter.cpp
SRCS_MIN+= ProfileData/ProfileSummaryBuilder.cpp
+SRCS_MIW+= ProfileData/RawMemProfReader.cpp
SRCS_MIN+= ProfileData/SampleProf.cpp
SRCS_MIN+= ProfileData/SampleProfReader.cpp
SRCS_MIN+= ProfileData/SampleProfWriter.cpp
@@ -928,6 +961,7 @@ SRCS_MIN+= Support/BlockFrequency.cpp
SRCS_MIN+= Support/BranchProbability.cpp
SRCS_MIN+= Support/BuryPointer.cpp
SRCS_MIN+= Support/CachePruning.cpp
+SRCS_MIW+= Support/Caching.cpp
SRCS_MIW+= Support/COM.cpp
SRCS_MIN+= Support/CRC.cpp
SRCS_MIN+= Support/Chrono.cpp
@@ -943,6 +977,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 +1008,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 +1027,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 +1051,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 +1116,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
@@ -1131,6 +1170,7 @@ SRCS_MIN+= Target/ARM/ARMBaseInstrInfo.cpp
SRCS_MIN+= Target/ARM/ARMBaseRegisterInfo.cpp
SRCS_MIN+= Target/ARM/ARMBasicBlockInfo.cpp
SRCS_MIN+= Target/ARM/ARMBlockPlacement.cpp
+SRCS_MIN+= Target/ARM/ARMBranchTargets.cpp
SRCS_MIN+= Target/ARM/ARMCallLowering.cpp
SRCS_MIN+= Target/ARM/ARMCallingConv.cpp
SRCS_MIN+= Target/ARM/ARMConstantIslandPass.cpp
@@ -1197,6 +1237,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 +1383,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 +1391,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
@@ -1356,9 +1399,11 @@ SRCS_MIN+= Target/RISCV/RISCVISelDAGToDAG.cpp
SRCS_MIN+= Target/RISCV/RISCVISelLowering.cpp
SRCS_MIN+= Target/RISCV/RISCVLegalizerInfo.cpp
SRCS_MIN+= Target/RISCV/RISCVMCInstLower.cpp
+SRCS_MIN+= Target/RISCV/RISCVMachineFunctionInfo.cpp
SRCS_MIN+= Target/RISCV/RISCVMergeBaseOffset.cpp
SRCS_MIN+= Target/RISCV/RISCVRegisterBankInfo.cpp
SRCS_MIN+= Target/RISCV/RISCVRegisterInfo.cpp
+SRCS_MIN+= Target/RISCV/RISCVSExtWRemoval.cpp
SRCS_MIN+= Target/RISCV/RISCVSubtarget.cpp
SRCS_MIN+= Target/RISCV/RISCVTargetMachine.cpp
SRCS_MIN+= Target/RISCV/RISCVTargetObjectFile.cpp
@@ -1372,6 +1417,7 @@ SRCS_MIN+= Target/TargetMachineC.cpp
.if ${MK_LLVM_TARGET_X86} != "no"
SRCS_MIN+= Target/X86/AsmParser/X86AsmParser.cpp
SRCS_XDW+= Target/X86/Disassembler/X86Disassembler.cpp
+SRCS_EXT+= Target/X86/MCA/X86CustomBehaviour.cpp
SRCS_MIN+= Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
SRCS_MIN+= Target/X86/MCTargetDesc/X86AsmBackend.cpp
SRCS_MIN+= Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
@@ -1396,6 +1442,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 +1491,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 +1542,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
@@ -1646,6 +1693,7 @@ SRCS_MIN+= Transforms/Utils/CanonicalizeFreezeInLoops.cpp
SRCS_MIN+= Transforms/Utils/CloneFunction.cpp
SRCS_MIN+= Transforms/Utils/CloneModule.cpp
SRCS_MIN+= Transforms/Utils/CodeExtractor.cpp
+SRCS_MIN+= Transforms/Utils/CodeLayout.cpp
SRCS_MIN+= Transforms/Utils/CodeMoverUtils.cpp
SRCS_MIN+= Transforms/Utils/CtorUtils.cpp
SRCS_MIN+= Transforms/Utils/Debugify.cpp
@@ -1691,6 +1739,7 @@ SRCS_MIN+= Transforms/Utils/SSAUpdater.cpp
SRCS_MIN+= Transforms/Utils/SSAUpdaterBulk.cpp
SRCS_MIN+= Transforms/Utils/SanitizerStats.cpp
SRCS_MIN+= Transforms/Utils/ScalarEvolutionExpander.cpp
+SRCS_MIN+= Transforms/Utils/SampleProfileInference.cpp
SRCS_MIN+= Transforms/Utils/SampleProfileLoaderBaseUtil.cpp
SRCS_MIN+= Transforms/Utils/SimplifyCFG.cpp
SRCS_MIN+= Transforms/Utils/SimplifyIndVar.cpp
diff --git a/lib/clang/libllvmminimal/Makefile b/lib/clang/libllvmminimal/Makefile
index e4f2d19bbb69..065ab48c3b86 100644
--- a/lib/clang/libllvmminimal/Makefile
+++ b/lib/clang/libllvmminimal/Makefile
@@ -62,6 +62,7 @@ SRCS+= Support/Triple.cpp
SRCS+= Support/Twine.cpp
SRCS+= Support/TypeSize.cpp
SRCS+= Support/Unicode.cpp
+SRCS+= Support/VersionTuple.cpp
SRCS+= Support/VirtualFileSystem.cpp
SRCS+= Support/Watchdog.cpp
SRCS+= Support/WithColor.cpp
diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk
index 5aff7081fb76..dd54bf7312d9 100644
--- a/lib/clang/llvm.build.mk
+++ b/lib/clang/llvm.build.mk
@@ -14,6 +14,10 @@
.error Please define SRCDIR before including this file
.endif
+.ifndef OS_REVISION
+.error Please define OS_REVISION before including this file
+.endif
+
.PATH: ${LLVM_BASE}/${SRCDIR}
CFLAGS+= -I${SRCTOP}/lib/clang/include
@@ -40,10 +44,9 @@ TARGET_ABI= -gnueabi
TARGET_ABI=
.endif
VENDOR= unknown
-OS_VERSION= freebsd14.0
-LLVM_TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/:C/[hs]f$//:S/mipsn32/mips64/}-${VENDOR}-${OS_VERSION}${TARGET_ABI}
-LLVM_BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/[hs]f$//:S/mipsn32/mips64/}-${VENDOR}-${OS_VERSION}
+LLVM_TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/:C/[hs]f$//:S/mipsn32/mips64/}-${VENDOR}-freebsd${OS_REVISION}${TARGET_ABI}
+LLVM_BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/[hs]f$//:S/mipsn32/mips64/}-${VENDOR}-freebsd${OS_REVISION}
CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${LLVM_TARGET_TRIPLE}\"
CFLAGS+= -DLLVM_HOST_TRIPLE=\"${LLVM_BUILD_TRIPLE}\"
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index 31c1bcbd7278..1633fa3dc3ea 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -19,6 +19,7 @@ CRT1OBJS+= crtbrand.o feature_note.o ignore_init_note.o
ACFLAGS+= -DLOCORE
+CFLAGS+= -DSTRIP_FBSDID
CFLAGS+= -fno-asynchronous-unwind-tables
CFLAGS+= -fno-omit-frame-pointer
CFLAGS+= -I${.CURDIR:H}/common \
diff --git a/lib/csu/mips/Makefile b/lib/csu/mips/Makefile
deleted file mode 100644
index 372f98d5b18e..000000000000
--- a/lib/csu/mips/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR:H}/common
-
-.include <src.opts.mk>
-
-CFLAGS+= -DCRT_IRELOC_SUPPRESS
-
-.if ${MACHINE_ARCH:Mmips64}
-ELFCLASS= 64
-.else
-ELFCLASS= 32
-.endif
-.if ${MACHINE_ARCH:Mmips*el}
-ENDIAN= l
-.else
-ENDIAN= b
-.endif
-.if ${MACHINE_ARCH:Mmipsn32*}
-SUFFIX= n32
-.else
-SUFFIX=
-.endif
-
-# binutils requires an explicit emulation for ld -r
-LDFLAGS.bfd+= -Wl,-m -Wl,elf${ELFCLASS}${ENDIAN}tsmip${SUFFIX}_fbsd
-
-.include <bsd.lib.mk>
diff --git a/lib/csu/mips/crt.h b/lib/csu/mips/crt.h
deleted file mode 100644
index b7bf991cf991..000000000000
--- a/lib/csu/mips/crt.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*-
- * SPDX-License-Identifier: BSD-1-Clause
- *
- * Copyright 2018 Andrew Turner
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#ifndef _CRT_H_
-#define _CRT_H_
-
-#define HAVE_CTORS
-#define CTORS_CONSTRUCTORS
-#ifdef __mips_o32
-#define INIT_CALL_SEQ(func) \
- ".set push \n" \
- ".set noreorder \n" \
- "bal 1f \n" \
- "nop \n" \
- "1: \n" \
- ".cpload $ra \n" \
- "addu $sp, $sp, -8 \n" \
- ".cprestore 4 \n" \
- ".local " __STRING(func) "\n" \
- "jal " __STRING(func) "\n" \
- "nop \n" \
- "addu $sp, $sp, 8 \n" \
- ".set pop\n"
-#else
-#define INIT_CALL_SEQ(func) \
- ".set push \n" \
- ".set noreorder \n" \
- "bal 1f \n" \
- "nop \n" \
- "1: \n" \
- ".cpsetup $ra, $zero, 1b \n" \
- ".local " __STRING(func) "\n" \
- "jal " __STRING(func) "\n" \
- "nop \n" \
- ".set pop\n"
-#endif
-
-#endif
diff --git a/lib/csu/mips/crt1_c.c b/lib/csu/mips/crt1_c.c
deleted file mode 100644
index b753f7b707bd..000000000000
--- a/lib/csu/mips/crt1_c.c
+++ /dev/null
@@ -1,91 +0,0 @@
-/*-
- * SPDX-License-Identifier: BSD-4-Clause
- *
- * Copyright 1996-1998 John D. Polstra.
- * All rights reserved.
- * Copyright (c) 1995 Christopher G. Demetriou
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by Christopher G. Demetriou
- * for the NetBSD Project.
- * 4. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <stdlib.h>
-#include "libc_private.h"
-#include "ignore_init.c"
-
-struct Struct_Obj_Entry;
-struct ps_strings;
-
-#ifdef GCRT
-extern void _mcleanup(void);
-extern void monstartup(void *, void *);
-extern int eprol;
-extern int etext;
-#endif
-
-void __start(char **, void (*)(void), struct Struct_Obj_Entry *, struct ps_strings *);
-
-/* The entry function. */
-void
-__start(char **ap,
- void (*cleanup)(void), /* from shared loader */
- struct Struct_Obj_Entry *obj __unused, /* from shared loader */
- struct ps_strings *ps_strings __unused)
-{
- int argc;
- char **argv;
- char **env;
-
- argc = * (long *) ap;
- argv = ap + 1;
- env = ap + 2 + argc;
- handle_argv(argc, argv, env);
-
- if (&_DYNAMIC != NULL)
- atexit(cleanup);
- else
- _init_tls();
-
-#ifdef GCRT
- atexit(_mcleanup);
- monstartup(&eprol, &etext);
-#endif
-
- handle_static_init(argc, argv, env);
- exit(main(argc, argv, env));
-}
-
-#ifdef GCRT
-__asm__(".text");
-__asm__("eprol:");
-__asm__(".previous");
-#endif
diff --git a/lib/csu/mips/crti.S b/lib/csu/mips/crti.S
deleted file mode 100644
index 7289f0a91f47..000000000000
--- a/lib/csu/mips/crti.S
+++ /dev/null
@@ -1,53 +0,0 @@
-#include <machine/asm.h>
-__FBSDID("$FreeBSD$");
-
-#ifndef __clang__
- .gnu_attribute 4, 0
-#endif
- .section .init,"ax",%progbits
- .align 4
- .globl _init
- .type _init,%function
-_init:
- .set noreorder
-#if defined(__ABICALLS__) && (defined(__mips_o32) || defined(__mips_o64))
- SETUP_GP
-#endif
- PTR_ADDU sp, sp, -CALLFRAME_SIZ
- REG_S ra, CALLFRAME_RA(sp)
-#if defined(__ABICALLS__)
-#if defined(__mips_o32) || defined(__mips_o64)
- SAVE_GP(CALLFRAME_GP)
-#else
- SETUP_GP64(CALLFRAME_GP, _init)
-#endif
-#else /* __ABICALLS__ */
-#if defined(__mips_n32) || defined(__mips_n64)
- REG_S gp, CALLFRAME_GP(sp)
-#endif
-#endif
- .set reorder
-
- .section .fini,"ax",%progbits
- .align 4
- .globl _fini
- .type _fini,%function
-_fini:
- .set noreorder
-#if defined(__ABICALLS__) && (defined(__mips_o32) || defined(__mips_o64))
- SETUP_GP
-#endif
- PTR_ADDU sp, sp, -CALLFRAME_SIZ
- REG_S ra, CALLFRAME_RA(sp)
-#if defined(__ABICALLS__)
-#if defined(__mips_o32) || defined(__mips_o64)
- SAVE_GP(CALLFRAME_GP)
-#else
- SETUP_GP64(CALLFRAME_GP, _fini)
-#endif
-#else /* __ABICALLS__ */
-#if defined(__mips_n32) || defined(__mips_n64)
- REG_S gp, CALLFRAME_GP(sp)
-#endif
-#endif
- .set reorder
diff --git a/lib/csu/mips/crtn.S b/lib/csu/mips/crtn.S
deleted file mode 100644
index db03f6c65d20..000000000000
--- a/lib/csu/mips/crtn.S
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <machine/asm.h>
-__FBSDID("$FreeBSD$");
-
-#ifndef __clang__
- .gnu_attribute 4, 0
-#endif
- .section .init,"ax",%progbits
- .set noreorder
-#if defined(__ABICALLS__) && (defined(__mips_n32) || defined(__mips_n64))
- REG_L gp, CALLFRAME_GP(sp)
-#endif
- REG_L ra, CALLFRAME_RA(sp)
- jr ra
- PTR_ADDU sp, sp, CALLFRAME_SIZ
- .set reorder
-
- .section .fini,"ax",%progbits
- .set noreorder
-#if defined(__ABICALLS__) && (defined(__mips_n32) || defined(__mips_n64))
- REG_L gp, CALLFRAME_GP(sp)
-#endif
- REG_L ra, CALLFRAME_RA(sp)
- jr ra
- PTR_ADDU sp, sp, CALLFRAME_SIZ
- .set reorder
diff --git a/lib/geom/Makefile.classes b/lib/geom/Makefile.classes
index fcaa748825ee..d4e6f52e65ae 100644
--- a/lib/geom/Makefile.classes
+++ b/lib/geom/Makefile.classes
@@ -22,4 +22,5 @@ GEOM_CLASSES+= raid
GEOM_CLASSES+= raid3
GEOM_CLASSES+= shsec
GEOM_CLASSES+= stripe
+GEOM_CLASSES+= union
GEOM_CLASSES+= virstor
diff --git a/lib/geom/eli/geli.8 b/lib/geom/eli/geli.8
index 68018e8022cd..1ad0c684642b 100644
--- a/lib/geom/eli/geli.8
+++ b/lib/geom/eli/geli.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 15, 2020
+.Dd April 18, 2022
.Dt GELI 8
.Os
.Sh NAME
@@ -886,6 +886,12 @@ Reports how many times we were looking up a Data Key and it was not in cache.
This sysctl is not updated for providers that need fewer Data Keys than the limit
specified in
.Va kern.geom.eli.key_cache_limit .
+.Va kern.geom.eli.unmapped_io
+Enable support for unmapped I/O buffers, currently implemented only on 64-bit
+platforms.
+This is an optimization which reduces the overhead of I/O processing.
+This variable is intended for debugging purposes and must be set in
+.Pa /boot/loader.conf .
.El
.Sh EXIT STATUS
Exit status is 0 on success, and 1 if the command fails.
diff --git a/lib/geom/mirror/geom_mirror.c b/lib/geom/mirror/geom_mirror.c
index a1b399338814..2b1860eb7548 100644
--- a/lib/geom/mirror/geom_mirror.c
+++ b/lib/geom/mirror/geom_mirror.c
@@ -440,32 +440,30 @@ mirror_resize(struct gctl_req *req, unsigned flags __unused)
struct gconsumer *cp;
off_t size;
int error, nargs;
- const char *name;
+ const char *name, *g;
char ssize[30];
nargs = gctl_get_int(req, "nargs");
- if (nargs < 1) {
- gctl_error(req, "Too few arguments.");
- return;
- }
- error = geom_gettree(&mesh);
- if (error)
- errc(EXIT_FAILURE, error, "Cannot get GEOM tree");
+ if (nargs != 1)
+ errx(EXIT_FAILURE, "Invalid number of arguments.");
name = gctl_get_ascii(req, "class");
if (name == NULL)
abort();
+ g = gctl_get_ascii(req, "arg0");
+ if (g == NULL)
+ abort();
+ error = geom_gettree_geom(&mesh, name, g, 1);
+ if (error)
+ errc(EXIT_FAILURE, error, "Cannot get GEOM tree");
classp = find_class(&mesh, name);
if (classp == NULL)
errx(EXIT_FAILURE, "Class %s not found.", name);
- name = gctl_get_ascii(req, "arg0");
- if (name == NULL)
- abort();
- gp = find_geom(classp, name);
+ gp = find_geom(classp, g);
if (gp == NULL)
- errx(EXIT_FAILURE, "No such geom: %s.", name);
+ errx(EXIT_FAILURE, "No such geom: %s.", g);
pp = LIST_FIRST(&gp->lg_provider);
if (pp == NULL)
- errx(EXIT_FAILURE, "Provider of geom %s not found.", name);
+ errx(EXIT_FAILURE, "Provider of geom %s not found.", g);
size = pp->lg_mediasize;
name = gctl_get_ascii(req, "size");
if (name == NULL)
diff --git a/lib/geom/multipath/gmultipath.8 b/lib/geom/multipath/gmultipath.8
index f6e286a43c72..7f0346e1c307 100644
--- a/lib/geom/multipath/gmultipath.8
+++ b/lib/geom/multipath/gmultipath.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 8, 2016
+.Dd March 17, 2022
.Dt GMULTIPATH 8
.Os
.Sh NAME
@@ -230,7 +230,7 @@ criteria across multiple underlying transport types that can
identity, but in all respects such identity can rarely be considered
.Ar definitive .
.Pp
-For example, if you use the World Word Port Name of a Fibre Channel
+For example, if you use the World Wide Port Name of a Fibre Channel
disk object you might believe that two disks that have the same WWPN
on different paths (or even disjoint fabrics) might be considered
the same disk.
@@ -338,7 +338,7 @@ GEOM provider named
.Ar FRED .
.Bd -literal -offset indent
gmultipath label -v FRED /dev/da0 /dev/da2
-disklabel -Brw /dev/multipath/FRED auto
+disklabel -Bw /dev/multipath/FRED auto
newfs /dev/multipath/FREDa
mount /dev/multipath/FREDa /mnt....
.Ed
diff --git a/lib/geom/part/geom_part.c b/lib/geom/part/geom_part.c
index b21ebf7ef8d8..2d8f02053a69 100644
--- a/lib/geom/part/geom_part.c
+++ b/lib/geom/part/geom_part.c
@@ -329,31 +329,31 @@ gpart_autofill_resize(struct gctl_req *req)
struct gprovider *pp;
off_t last, size, start, new_size;
off_t lba, new_lba, alignment, offset;
- const char *s;
+ const char *g, *s;
int error, idx, has_alignment;
idx = (int)gctl_get_intmax(req, GPART_PARAM_INDEX);
if (idx < 1)
errx(EXIT_FAILURE, "invalid partition index");
- error = geom_gettree(&mesh);
- if (error)
- return (error);
s = gctl_get_ascii(req, "class");
if (s == NULL)
abort();
+ g = gctl_get_ascii(req, "arg0");
+ if (g == NULL)
+ abort();
+ error = geom_gettree_geom(&mesh, s, g, 1);
+ if (error)
+ return (error);
cp = find_class(&mesh, s);
if (cp == NULL)
errx(EXIT_FAILURE, "Class %s not found.", s);
- s = gctl_get_ascii(req, "arg0");
- if (s == NULL)
- abort();
- gp = find_geom(cp, s);
+ gp = find_geom(cp, g);
if (gp == NULL)
- errx(EXIT_FAILURE, "No such geom: %s.", s);
+ errx(EXIT_FAILURE, "No such geom: %s.", g);
pp = LIST_FIRST(&gp->lg_consumer)->lg_provider;
if (pp == NULL)
- errx(EXIT_FAILURE, "Provider for geom %s not found.", s);
+ errx(EXIT_FAILURE, "Provider for geom %s not found.", g);
s = gctl_get_ascii(req, "alignment");
has_alignment = (*s == '*') ? 0 : 1;
@@ -454,7 +454,7 @@ gpart_autofill(struct gctl_req *req)
off_t size, start, a_lba;
off_t lba, len, alignment, offset;
uintmax_t grade;
- const char *s;
+ const char *g, *s;
int error, has_size, has_start, has_alignment;
s = gctl_get_ascii(req, "verb");
@@ -463,22 +463,22 @@ gpart_autofill(struct gctl_req *req)
if (strcmp(s, "add") != 0)
return (0);
- error = geom_gettree(&mesh);
- if (error)
- return (error);
s = gctl_get_ascii(req, "class");
if (s == NULL)
abort();
+ g = gctl_get_ascii(req, "arg0");
+ if (g == NULL)
+ abort();
+ error = geom_gettree_geom(&mesh, s, g, 1);
+ if (error)
+ return (error);
cp = find_class(&mesh, s);
if (cp == NULL)
errx(EXIT_FAILURE, "Class %s not found.", s);
- s = gctl_get_ascii(req, "arg0");
- if (s == NULL)
- abort();
- gp = find_geom(cp, s);
+ gp = find_geom(cp, g);
if (gp == NULL) {
- if (g_device_path(s) == NULL) {
- errx(EXIT_FAILURE, "No such geom %s.", s);
+ if (g_device_path(g) == NULL) {
+ errx(EXIT_FAILURE, "No such geom %s.", g);
} else {
/*
* We don't free memory allocated by g_device_path() as
@@ -486,12 +486,12 @@ gpart_autofill(struct gctl_req *req)
*/
errx(EXIT_FAILURE,
"No partitioning scheme found on geom %s. Create one first using 'gpart create'.",
- s);
+ g);
}
}
pp = LIST_FIRST(&gp->lg_consumer)->lg_provider;
if (pp == NULL)
- errx(EXIT_FAILURE, "Provider for geom %s not found.", s);
+ errx(EXIT_FAILURE, "Provider for geom %s not found.", g);
s = gctl_get_ascii(req, "alignment");
has_alignment = (*s == '*') ? 0 : 1;
@@ -742,7 +742,12 @@ gpart_show(struct gctl_req *req, unsigned int fl __unused)
name = gctl_get_ascii(req, "class");
if (name == NULL)
abort();
- error = geom_gettree(&mesh);
+ nargs = gctl_get_int(req, "nargs");
+ if (nargs == 1) {
+ error = geom_gettree_geom(&mesh, name,
+ gctl_get_ascii(req, "arg0"), 1);
+ } else
+ error = geom_gettree(&mesh);
if (error != 0)
errc(EXIT_FAILURE, error, "Cannot get GEOM tree");
classp = find_class(&mesh, name);
@@ -751,7 +756,6 @@ gpart_show(struct gctl_req *req, unsigned int fl __unused)
errx(EXIT_FAILURE, "Class %s not found.", name);
}
show_providers = gctl_get_int(req, "show_providers");
- nargs = gctl_get_int(req, "nargs");
if (nargs > 0) {
for (i = 0; i < nargs; i++) {
name = gctl_get_ascii(req, "arg%d", i);
@@ -776,34 +780,33 @@ gpart_backup(struct gctl_req *req, unsigned int fl __unused)
struct gclass *classp;
struct gprovider *pp;
struct ggeom *gp;
- const char *s, *scheme;
+ const char *g, *s, *scheme;
off_t sector, end;
off_t length;
int error, i, windex, wblocks, wtype;
if (gctl_get_int(req, "nargs") != 1)
errx(EXIT_FAILURE, "Invalid number of arguments.");
- error = geom_gettree(&mesh);
- if (error != 0)
- errc(EXIT_FAILURE, error, "Cannot get GEOM tree");
s = gctl_get_ascii(req, "class");
if (s == NULL)
abort();
+ g = gctl_get_ascii(req, "arg0");
+ if (g == NULL)
+ abort();
+ error = geom_gettree_geom(&mesh, s, g, 0);
+ if (error != 0)
+ errc(EXIT_FAILURE, error, "Cannot get GEOM tree");
classp = find_class(&mesh, s);
if (classp == NULL) {
geom_deletetree(&mesh);
errx(EXIT_FAILURE, "Class %s not found.", s);
}
- s = gctl_get_ascii(req, "arg0");
- if (s == NULL)
- abort();
- gp = find_geom(classp, s);
+ gp = find_geom(classp, g);
if (gp == NULL)
- errx(EXIT_FAILURE, "No such geom: %s.", s);
+ errx(EXIT_FAILURE, "No such geom: %s.", g);
scheme = find_geomcfg(gp, "scheme");
if (scheme == NULL)
abort();
- pp = LIST_FIRST(&gp->lg_consumer)->lg_provider;
s = find_geomcfg(gp, "last");
if (s == NULL)
abort();
@@ -1201,11 +1204,14 @@ gpart_bootcode(struct gctl_req *req, unsigned int fl)
struct gmesh mesh;
struct gclass *classp;
struct ggeom *gp;
- const char *s;
+ const char *g, *s;
void *bootcode, *partcode;
size_t bootsize, partsize;
int error, idx, vtoc8;
+ if (gctl_get_int(req, "nargs") != 1)
+ errx(EXIT_FAILURE, "Invalid number of arguments.");
+
if (gctl_has_param(req, GPART_PARAM_BOOTCODE)) {
s = gctl_get_ascii(req, GPART_PARAM_BOOTCODE);
bootsize = 800 * 1024; /* Arbitrary limit. */
@@ -1217,10 +1223,21 @@ gpart_bootcode(struct gctl_req *req, unsigned int fl)
} else
bootcode = NULL;
+ if (!gctl_has_param(req, GPART_PARAM_PARTCODE)) {
+ if (bootcode == NULL)
+ errx(EXIT_FAILURE, "neither -b nor -p specified");
+ if (gctl_has_param(req, GPART_PARAM_INDEX))
+ errx(EXIT_FAILURE, "-i is only valid with -p");
+ goto nopartcode;
+ }
+
s = gctl_get_ascii(req, "class");
if (s == NULL)
abort();
- error = geom_gettree(&mesh);
+ g = gctl_get_ascii(req, "arg0");
+ if (g == NULL)
+ abort();
+ error = geom_gettree_geom(&mesh, s, g, 0);
if (error != 0)
errc(EXIT_FAILURE, error, "Cannot get GEOM tree");
classp = find_class(&mesh, s);
@@ -1228,14 +1245,9 @@ gpart_bootcode(struct gctl_req *req, unsigned int fl)
geom_deletetree(&mesh);
errx(EXIT_FAILURE, "Class %s not found.", s);
}
- if (gctl_get_int(req, "nargs") != 1)
- errx(EXIT_FAILURE, "Invalid number of arguments.");
- s = gctl_get_ascii(req, "arg0");
- if (s == NULL)
- abort();
- gp = find_geom(classp, s);
+ gp = find_geom(classp, g);
if (gp == NULL)
- errx(EXIT_FAILURE, "No such geom: %s.", s);
+ errx(EXIT_FAILURE, "No such geom: %s.", g);
s = find_geomcfg(gp, "scheme");
if (s == NULL)
errx(EXIT_FAILURE, "Scheme not found for geom %s", gp->lg_name);
@@ -1244,22 +1256,7 @@ gpart_bootcode(struct gctl_req *req, unsigned int fl)
else
vtoc8 = 0;
- if (gctl_has_param(req, GPART_PARAM_PARTCODE)) {
- s = gctl_get_ascii(req, GPART_PARAM_PARTCODE);
- if (vtoc8 != 0)
- partsize = VTOC_BOOTSIZE;
- else
- partsize = 1024 * 1024; /* Arbitrary limit. */
- partcode = gpart_bootfile_read(s, &partsize);
- error = gctl_delete_param(req, GPART_PARAM_PARTCODE);
- if (error)
- errc(EXIT_FAILURE, error, "internal error");
- } else
- partcode = NULL;
-
if (gctl_has_param(req, GPART_PARAM_INDEX)) {
- if (partcode == NULL)
- errx(EXIT_FAILURE, "-i is only valid with -p");
idx = (int)gctl_get_intmax(req, GPART_PARAM_INDEX);
if (idx < 1)
errx(EXIT_FAILURE, "invalid partition index");
@@ -1269,7 +1266,16 @@ gpart_bootcode(struct gctl_req *req, unsigned int fl)
} else
idx = 0;
- if (partcode != NULL) {
+ if (gctl_has_param(req, GPART_PARAM_PARTCODE)) {
+ s = gctl_get_ascii(req, GPART_PARAM_PARTCODE);
+ if (vtoc8 != 0)
+ partsize = VTOC_BOOTSIZE;
+ else
+ partsize = 1024 * 1024; /* Arbitrary limit. */
+ partcode = gpart_bootfile_read(s, &partsize);
+ error = gctl_delete_param(req, GPART_PARAM_PARTCODE);
+ if (error)
+ errc(EXIT_FAILURE, error, "internal error");
if (vtoc8 == 0) {
if (idx == 0)
errx(EXIT_FAILURE, "missing -i option");
@@ -1279,15 +1285,14 @@ gpart_bootcode(struct gctl_req *req, unsigned int fl)
errx(EXIT_FAILURE, "invalid bootcode");
gpart_write_partcode_vtoc8(gp, idx, partcode);
}
- } else
- if (bootcode == NULL)
- errx(EXIT_FAILURE, "no -b nor -p");
+ free(partcode);
+ }
+ geom_deletetree(&mesh);
+
+nopartcode:
if (bootcode != NULL)
gpart_issue(req, fl);
-
- geom_deletetree(&mesh);
- free(partcode);
}
static void
@@ -1327,8 +1332,9 @@ gpart_issue(struct gctl_req *req, unsigned int fl __unused)
goto done;
}
- bzero(buf, sizeof(buf));
- gctl_rw_param(req, "output", sizeof(buf), buf);
+ buf[0] = '\0';
+ gctl_add_param(req, "output", sizeof(buf), buf,
+ GCTL_PARAM_WR | GCTL_PARAM_ASCII);
errstr = gctl_issue(req);
if (errstr == NULL || errstr[0] == '\0') {
if (buf[0] != '\0')
diff --git a/lib/geom/part/gpart.8 b/lib/geom/part/gpart.8
index d27844f709e9..4dbe45b9953e 100644
--- a/lib/geom/part/gpart.8
+++ b/lib/geom/part/gpart.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 17, 2020
+.Dd January 26, 2022
.Dt GPART 8
.Os
.Sh NAME
@@ -216,13 +216,13 @@ The
command accepts these options:
.Bl -tag -width 10n
.It Fl N
-Don't preserve the Volume Serial Number for MBR.
+Do not preserve the Volume Serial Number for MBR.
MBR bootcode contains Volume Serial Number by default, and
.Nm
tries to preserve it when installing new bootstrap code.
-This option allows to skip the preservation to help with some versions of
+This option skips preservation to help with some versions of
.Xr boot0 8
-that don't support Volume Serial Number.
+that do not support Volume Serial Number.
.It Fl b Ar bootcode
Embed bootstrap code from the file
.Ar bootcode
@@ -605,6 +605,10 @@ Requires the
.Cm GEOM_PART_VTOC8
kernel option.
.El
+.Pp
+See
+.Xr glabel 8
+for additional information on labelization of devices and partitions.
.Sh PARTITION TYPES
Partition types are identified on disk by particular strings or magic
values.
@@ -759,7 +763,8 @@ for GPT.
An Apple Mac OS X partition that contains a ZFS volume.
The scheme-specific type is
.Qq Li "!6a898cc3-1dd2-11b2-99a6-080020736631"
-for GPT. The same GUID is being used also for
+for GPT.
+The same GUID is being used also for
.Sy illumos/Solaris /usr partition .
See
.Sx CAVEATS
@@ -832,6 +837,16 @@ A partition that contains a FAT32 (LBA) filesystem.
The scheme-specific type is
.Qq Li "!12"
for MBR.
+.It Cm hifive-fsbl
+A raw partition containing a HiFive first stage bootloader.
+The scheme-specific type is
+.Qq Li "!5b193300-fc78-40cd-8002-e86c45580b47"
+for GPT.
+.It Cm hifive-bbl
+A raw partition containing a HiFive second stage bootloader.
+The scheme-specific type is
+.Qq Li "!2e54b353-1271-4842-806f-e436d6af6985"
+for GPT.
.It Cm linux-data
A Linux partition that contains some filesystem with data.
The scheme-specific types are
@@ -1507,6 +1522,7 @@ and
.Xr geom 4 ,
.Xr boot0cfg 8 ,
.Xr geom 8 ,
+.Xr glabel 8 ,
.Xr gptboot 8
.Sh HISTORY
The
diff --git a/lib/geom/union/Makefile b/lib/geom/union/Makefile
new file mode 100644
index 000000000000..cb8b09dc7eca
--- /dev/null
+++ b/lib/geom/union/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+PACKAGE=runtime
+.PATH: ${.CURDIR:H:H}/misc
+
+GEOM_CLASS= union
+
+.include <bsd.lib.mk>
diff --git a/lib/csu/mips/Makefile.depend b/lib/geom/union/Makefile.depend
index 79506ce16b79..fb5f86e931fb 100644
--- a/lib/csu/mips/Makefile.depend
+++ b/lib/geom/union/Makefile.depend
@@ -2,7 +2,14 @@
# Autogenerated - do NOT edit!
DIRDEPS = \
+ gnu/lib/csu \
include \
+ include/xlocale \
+ lib/${CSU_DIR} \
+ lib/libc \
+ lib/libcompiler_rt \
+ lib/libgeom \
+ sbin/geom/core \
.include <dirdeps.mk>
diff --git a/lib/geom/union/geom_union.c b/lib/geom/union/geom_union.c
new file mode 100644
index 000000000000..2e0843d35899
--- /dev/null
+++ b/lib/geom/union/geom_union.c
@@ -0,0 +1,83 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
+ * Copyright (c) 2022 Marshall Kirk McKusick <mckusick@mckusick.com>
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include <stdio.h>
+#include <stdint.h>
+#include <libgeom.h>
+#include <geom/union/g_union.h>
+
+#include "core/geom.h"
+
+uint32_t lib_version = G_LIB_VERSION;
+uint32_t version = G_UNION_VERSION;
+
+struct g_command class_commands[] = {
+ { "create", G_FLAG_LOADKLD, NULL,
+ {
+ { 'o', "offset", "0", G_TYPE_NUMBER },
+ { 's', "size", "0", G_TYPE_NUMBER },
+ { 'S', "secsize", "0", G_TYPE_NUMBER },
+ { 'v', "verbose", NULL, G_TYPE_BOOL },
+ { 'Z', "gunionname", G_VAL_OPTIONAL, G_TYPE_STRING },
+ G_OPT_SENTINEL
+ },
+ "[-v] [-o offset] [-s size] [-S secsize] [-Z gunionname] "
+ "upperdev lowerdev"
+ },
+ { "destroy", 0, NULL,
+ {
+ { 'f', "force", NULL, G_TYPE_BOOL },
+ { 'v', "verbose", NULL, G_TYPE_BOOL },
+ G_OPT_SENTINEL
+ },
+ "[-fv] prov ..."
+ },
+ { "reset", 0, NULL,
+ {
+ { 'v', "verbose", NULL, G_TYPE_BOOL },
+ G_OPT_SENTINEL
+ },
+ "[-v] prov ..."
+ },
+ { "commit", 0, NULL,
+ {
+ { 'f', "force", NULL, G_TYPE_BOOL },
+ { 'r', "reboot", NULL, G_TYPE_BOOL },
+ { 'v', "verbose", NULL, G_TYPE_BOOL },
+ G_OPT_SENTINEL
+ },
+ "[-frv] prov ..."
+ },
+ { "revert", 0, NULL,
+ {
+ { 'v', "verbose", NULL, G_TYPE_BOOL },
+ G_OPT_SENTINEL
+ },
+ "[-v] prov ..."
+ },
+ G_CMD_SENTINEL
+};
diff --git a/lib/geom/union/gunion.8 b/lib/geom/union/gunion.8
new file mode 100644
index 000000000000..732a803657d8
--- /dev/null
+++ b/lib/geom/union/gunion.8
@@ -0,0 +1,320 @@
+.\"
+.\" Copyright (c) 2022 Marshall Kirk McKusick <mckusick@mckusick.com>
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd January 19, 2022
+.Dt GUNION 8
+.Os
+.Sh NAME
+.Nm gunion
+.Nd "control utility for UNION GEOM class"
+.Sh SYNOPSIS
+.Nm
+.Cm create
+.Op Fl v
+.Op Fl o Ar offset
+.Op Fl s Ar size
+.Op Fl S Ar secsize
+.Op Fl Z Ar gunionname
+.Ar upperdev lowerdev
+.Nm
+.Cm destroy
+.Op Fl fv
+.Ar prov ...
+.Nm
+.Cm reset
+.Op Fl v
+.Ar prov ...
+.Nm
+.Cm revert
+.Op Fl v
+.Ar prov ...
+.Nm
+.Cm commit
+.Op Fl frv
+.Ar prov ...
+.Nm
+.Cm list
+.Nm
+.Cm status
+.Nm
+.Cm load
+.Nm
+.Cm unload
+.Sh DESCRIPTION
+The
+.Nm
+utility is used to track changes to a read-only disk on a writable disk.
+Logically, a writable disk is placed over a read-only disk.
+Write requests are intercepted and stored on the writable disk.
+Read requests are first checked to see if they have been written
+on the top (writable disk) and if found are returned.
+If they have not been written on the top disk,
+then they are read from the lower disk.
+.Pp
+The
+.Nm
+utility can be especially useful if you have a large disk with a
+corrupted filesystem that you are unsure of how to repair.
+You can use
+.Nm
+to place another disk over the corrupted disk and then attempt
+to repair the filesystem.
+If the repair fails, you can revert all the changes in the upper disk
+and be back to the unchanged state of the lower disk thus allowing you
+to try another approach to repairing it.
+If the repair is successful you can request that all the writes recorded
+on the top disk be written to the lower disk.
+.Pp
+Another use of the
+.Nm
+utility is to try out upgrades to your system.
+Place the upper disk over the disk holding your filesystem that
+is to be upgraded and then run the upgrade on it.
+If it works, commit it;
+if it fails, revert the upgrade.
+An example is given below.
+.Pp
+The upper disk must be at least the size of the disk that it covers.
+The union metadata exists only for the
+period of time that the union is instantiated,
+so it is important to commit the updates before destroying the union.
+If the top disk is about 2.5 percent larger for 512 byte sector disks
+(or 0.5 percent larger for 4K sector disks) than the disk that it covers,
+it is posible (thought not currently implemented) to save the union
+metadata between instantiations of the union device.
+.Pp
+If you do not have physical media available to use for the upper layer, the
+.Xr md 4
+disk can be used instead.
+When used in
+.Cm swap
+mode the changes are all held in buffer memory.
+Pages get pushed out to the swap when the system is under memory pressure,
+otherwise they stay in the operating memory.
+If long-term persistance is desired,
+.Cm vnode
+mode can be used in which a regular file is used as backing store.
+The disk space used by the file is based on the amount of data that
+is written to the top device.
+.Pp
+The first argument to
+.Nm
+indicates an action to be performed:
+.Bl -tag -width "destroy"
+.It Cm create
+Set up a union provider on the two given devices.
+The first device given is used as the top device and must be writable.
+The second device given is used as the bottom device and need only be readable.
+The second device may be mounted read-only but it is recommended
+that it be unmounted and accessed only through a mount of the union device.
+If the operation succeeds, the new provider should appear with name
+.Pa /dev/ Ns Ao Ar upperdev Ac Ns - Ns Ao Ar lowerdev Ac Ns Pa .union .
+An alternate name can be specified with the
+.Fl Z
+flag.
+The kernel module
+.Pa geom_union.ko
+will be loaded if it is not loaded already.
+.Pp
+Additional options include:
+.Bl -tag -width "-Z gunionname"
+.It Fl o Ar offset
+Where to begin on the original provider.
+The default is to start at the beginning of the disk (i.e., at offset 0).
+This option may be used to skip over partitioning information stored
+at the beginning of a disk.
+The offset must be a multiple of the sector size.
+.It Fl s Ar size
+Size of the transparent provider.
+The default is to be the same size as the lower disk.
+Any extra space at the end of the upper disk may be used to store
+union metadata.
+.It Fl S Ar secsize
+Sector size of the transparent provider.
+The default is to be the same sector size as the lower disk.
+.It Fl v
+Be more verbose.
+.It Fl Z Ar gunionname
+The name of the new provider.
+The suffix
+.Dq .union
+will be appended to the provider name.
+.El
+.It Cm destroy
+Turn off the given union providers.
+.Pp
+Additional options include:
+.Bl -tag -width "-f"
+.It Fl f
+Force the removal of the specified provider.
+.It Fl v
+Be more verbose.
+.El
+.It Cm revert
+Discard all the changes made in the top layer thus reverting to the
+original state of the lower device.
+The union device may not be mounted or otherwise in use when a
+.Cm revert
+operation is being done.
+.It Cm commit
+Write all the changes made in the top device to the lower device
+thus committing the lower device to have the same data as the union.
+.Pp
+Additional options include:
+.Bl -tag -width "-f"
+.It Fl f
+The
+.Cm commit
+command will not allow the lower device to be mounted
+or otherwise in use while the
+.Cm commit
+operation is being done.
+However, the
+.Fl f
+flag may be specified to allow the lower device to be mounted read-only.
+To prevent a filesystem panic on the mounted lower-device filesystem,
+immediately after the
+.Cm commit
+operation finishes the lower-device filesystem should be unmounted
+and then remounted to update its metadata state.
+If the lower-device filesystem is currently being used as the root
+filesystem then the
+.Fl r
+flag should be specified to reboot the system at the completion of the
+.Cm commit
+operation.
+.It Fl r
+Reboot the system at the completion of the
+.Cm commit
+operation.
+.It Fl v
+Be more verbose.
+.El
+.It Cm reset
+Reset statistics for the given union providers.
+.It Cm list
+See
+.Xr geom 8 .
+.It Cm status
+See
+.Xr geom 8 .
+.It Cm load
+See
+.Xr geom 8 .
+.It Cm unload
+See
+.Xr geom 8 .
+.El
+.Sh EXIT STATUS
+Exit status is 0 on success, and 1 if the command fails.
+.Sh EXAMPLES
+The following example shows how to create and destroy a
+union provider with disks
+.Pa /dev/da0p1
+as the read-only disk on the bottom and
+.Pa /dev/md0
+as the wriable disk on the top.
+.Bd -literal -offset indent
+gunion create -v md0 da0p1
+mount /dev/md0-da0p1.union /mnt
+.Ed
+.Pp
+Proceed to make changes in /mnt filesystem.
+If they are successful and you want to keep them.
+.Bd -literal -offset indent
+umount /mnt
+gunion commit -v md0-da0p1.union
+.Ed
+.Pp
+If they are unsuccessful and you want to roll back.
+.Bd -literal -offset indent
+umount /mnt
+gunion revert -v md0-da0p1.union
+.Ed
+.Pp
+When done eliminate the union.
+.Bd -literal -offset indent
+umount /mnt
+gunion destroy -v md0-da0p1.union
+.Ed
+.Pp
+All uncommitted changes will be discarded when the union is destroyed.
+.Pp
+If you use the name of the full disk, for example
+.Pa da0
+and it is labelled,
+then a union name will appear for the disk as
+.Pa md0-da0.union
+as well as for each partition on the disk as
+.Pa md0-da0p1.union ,
+.Pa md0-da0p2.union ,
+etc.
+A commit operation can be done only on
+.Pa md0-da0.union
+and will commit changes to all the partitions.
+If partition level commits are desired,
+then a union must be created for each partition.
+.Pp
+The traffic statistics for the given
+union providers can be obtained with the
+.Cm list
+command.
+The example below shows the number of bytes written with
+.Xr newfs 8 :
+.Bd -literal -offset indent
+gunion create md0 da0p1
+newfs /dev/md0-da0p1.union
+gunion list
+.Ed
+.Sh SYSCTL VARIABLES
+The following
+.Xr sysctl 8
+variables can be used to control the behavior of the
+.Nm UNION
+GEOM class.
+The default value is shown next to each variable.
+.Bl -tag -width indent
+.It Va kern.geom.union.debug : No 0
+Debug level of the
+.Nm UNION
+GEOM class.
+This can be set to a number between 0 and 4 inclusive.
+If set to 0, no debug information is printed.
+If set to 1, all the verbose messages are logged.
+If set to 2, addition error-related information is logged.
+If set to 3, mapping operations are logged.
+If set to 4, the maximum amount of debug information is printed.
+.El
+.Sh SEE ALSO
+.Xr geom 4 ,
+.Xr geom 8
+.Sh HISTORY
+The
+.Nm
+utility appeared in
+.Fx 14.0 .
+.Sh AUTHORS
+.An Marshall Kirk McKusick Aq Mt mckusick@mckusick.com
diff --git a/lib/geom/virstor/geom_virstor.c b/lib/geom/virstor/geom_virstor.c
index 25ebdebbe7eb..bd8da7337a55 100644
--- a/lib/geom/virstor/geom_virstor.c
+++ b/lib/geom/virstor/geom_virstor.c
@@ -406,10 +406,9 @@ virstor_label(struct gctl_req *req)
} else
strlcpy(md.provider, name, sizeof(md.provider));
}
- sect = malloc(ssize);
+ sect = calloc(ssize, sizeof(unsigned char));
if (sect == NULL)
err(1, "Cannot allocate sector of %zu bytes", ssize);
- bzero(sect, ssize);
virstor_metadata_encode(&md, sect);
error = g_metadata_store(name, sect, ssize);
free(sect);
diff --git a/lib/libarchive/Makefile.inc b/lib/libarchive/Makefile.inc
index 6e5017d6621a..409e1972191d 100644
--- a/lib/libarchive/Makefile.inc
+++ b/lib/libarchive/Makefile.inc
@@ -4,7 +4,8 @@
# between structures such as archive_md5_ctx, etc.
LIBADD= z bz2 lzma bsdxml zstd
-CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1
+CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 \
+ -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 -DHAVE_LIBZSTD_COMPRESSOR=1
CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
.if ${MK_OPENSSL} != "no"
diff --git a/lib/libarchive/config_freebsd.h b/lib/libarchive/config_freebsd.h
index 0e8ac64eba47..20230ca26adf 100644
--- a/lib/libarchive/config_freebsd.h
+++ b/lib/libarchive/config_freebsd.h
@@ -98,6 +98,7 @@
#define HAVE_DECL_UINT64_MAX 1
#define HAVE_DECL_UINTMAX_MAX 1
#define HAVE_DIRENT_H 1
+#define HAVE_DIRFD 1
#define HAVE_DLFCN_H 1
#define HAVE_D_MD_ORDER 1
#define HAVE_EFTYPE 1
diff --git a/lib/libarchive/tests/Makefile b/lib/libarchive/tests/Makefile
index 146a371b6473..3732747eb64c 100644
--- a/lib/libarchive/tests/Makefile
+++ b/lib/libarchive/tests/Makefile
@@ -19,6 +19,8 @@ CFLAGS+= -I${.CURDIR} -I${.CURDIR:H} -I${.OBJDIR}
CFLAGS+= -I${_LIBARCHIVEDIR}/libarchive -I${_LIBARCHIVEDIR}/libarchive/test
CFLAGS+= -I${_LIBARCHIVEDIR}/test_utils
+CFLAGS.test_utils.c+= -Wno-cast-align
+
# Uncomment to link against dmalloc
#LDADD+= -L/usr/local/lib -ldmalloc
#CFLAGS+= -I/usr/local/include -DUSE_DMALLOC
@@ -79,6 +81,7 @@ TESTS_SRCS= \
test_compat_solaris_tar_acl.c \
test_compat_solaris_pax_sparse.c \
test_compat_star_acl.c \
+ test_compat_tar_directory.c \
test_compat_tar_hardlink.c \
test_compat_uudecode.c \
test_compat_uudecode_large.c \
@@ -167,6 +170,7 @@ TESTS_SRCS= \
test_read_format_rar_encryption_data.c \
test_read_format_rar_encryption_header.c \
test_read_format_rar_encryption_partially.c \
+ test_read_format_rar_filter.c \
test_read_format_rar_invalid1.c \
test_read_format_raw.c \
test_read_format_tar.c \
@@ -291,6 +295,7 @@ TESTS_SRCS= \
test_write_format_zip_compression_store.c \
test_write_format_zip_empty.c \
test_write_format_zip_empty_zip64.c \
+ test_write_format_zip_entry_size_unset.c \
test_write_format_zip_file.c \
test_write_format_zip_file_zip64.c \
test_write_format_zip_large.c \
@@ -380,6 +385,7 @@ ${PACKAGE}FILES+= test_compat_solaris_pax_sparse_2.pax.Z.uu
${PACKAGE}FILES+= test_compat_solaris_tar_acl.tar.uu
${PACKAGE}FILES+= test_compat_star_acl_nfs4.tar.uu
${PACKAGE}FILES+= test_compat_star_acl_posix1e.tar.uu
+${PACKAGE}FILES+= test_compat_tar_directory_1.tar.uu
${PACKAGE}FILES+= test_compat_tar_hardlink_1.tar.uu
${PACKAGE}FILES+= test_compat_uudecode_large.tar.Z.uu
${PACKAGE}FILES+= test_compat_xz_1.txz.uu
@@ -517,6 +523,7 @@ ${PACKAGE}FILES+= test_read_format_rar_compress_normal.rar.uu
${PACKAGE}FILES+= test_read_format_rar_encryption_data.rar.uu
${PACKAGE}FILES+= test_read_format_rar_encryption_header.rar.uu
${PACKAGE}FILES+= test_read_format_rar_encryption_partially.rar.uu
+${PACKAGE}FILES+= test_read_format_rar_filter.rar.uu
${PACKAGE}FILES+= test_read_format_rar_invalid1.rar.uu
${PACKAGE}FILES+= test_read_format_rar_multi_lzss_blocks.rar.uu
${PACKAGE}FILES+= test_read_format_rar_multivolume.part0001.rar.uu
@@ -533,9 +540,11 @@ ${PACKAGE}FILES+= test_read_format_rar_unicode.rar.uu
${PACKAGE}FILES+= test_read_format_rar_windows.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_arm.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_arm_filter_on_window_boundary.rar.uu
+${PACKAGE}FILES+= test_read_format_rar5_bad_window_sz_in_mltarc_file.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_blake2.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_block_size_is_too_small.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_compressed.rar.uu
+${PACKAGE}FILES+= test_read_format_rar5_decode_number_out_of_bounds_read.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_different_solid_window_size.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_different_window_size.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_different_winsize_on_merge.rar.uu
@@ -563,12 +572,14 @@ ${PACKAGE}FILES+= test_read_format_rar5_multiple_files_solid.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_nonempty_dir_stream.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_owner.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_readtables_overflow.rar.uu
+${PACKAGE}FILES+= test_read_format_rar5_sfx.exe.uu
${PACKAGE}FILES+= test_read_format_rar5_solid.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_stored.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_stored_manyfiles.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_symlink.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_truncated_huff.rar.uu
${PACKAGE}FILES+= test_read_format_rar5_win32.rar.uu
+${PACKAGE}FILES+= test_read_format_rar5_window_buf_and_size_desync.rar.uu
${PACKAGE}FILES+= test_read_format_raw.bufr.uu
${PACKAGE}FILES+= test_read_format_raw.data.Z.uu
${PACKAGE}FILES+= test_read_format_raw.data.gz.uu
@@ -632,6 +643,8 @@ ${PACKAGE}FILES+= test_read_format_zip_winzip_aes256_stored.zip.uu
${PACKAGE}FILES+= test_read_format_zip_xz_multi.zipx.uu
${PACKAGE}FILES+= test_read_format_zip_zip64a.zip.uu
${PACKAGE}FILES+= test_read_format_zip_zip64b.zip.uu
+${PACKAGE}FILES+= test_read_format_zip_zstd.zipx.uu
+${PACKAGE}FILES+= test_read_format_zip_zstd_multi.zipx.uu
${PACKAGE}FILES+= test_read_large_splitted_rar_aa.uu
${PACKAGE}FILES+= test_read_large_splitted_rar_ab.uu
${PACKAGE}FILES+= test_read_large_splitted_rar_ac.uu
diff --git a/lib/libbe/Makefile b/lib/libbe/Makefile
index 50a8f8f56fb2..3c66ea9f1cf0 100644
--- a/lib/libbe/Makefile
+++ b/lib/libbe/Makefile
@@ -63,7 +63,10 @@ CFLAGS+= -I${SRCTOP}/sys
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
CFLAGS+= -DHAVE_ISSETUGID
-
+CFLAGS.be.c= -Wno-cast-qual
+CFLAGS.be_access.c= -Wno-cast-qual
+CFLAGS.be_error.c= -Wno-cast-qual
+CFLAGS.be_info.c= -Wno-cast-qual
HAS_TESTS= YES
SUBDIR.${MK_TESTS}+= tests
diff --git a/lib/libbe/be.c b/lib/libbe/be.c
index d6fe027f5df3..13f7a59d5215 100644
--- a/lib/libbe/be.c
+++ b/lib/libbe/be.c
@@ -961,6 +961,17 @@ be_validate_name(libbe_handle_t *lbh, const char *name)
if (!zfs_name_valid(name, ZFS_TYPE_DATASET))
return (BE_ERR_INVALIDNAME);
+ /*
+ * ZFS allows spaces in boot environment names, but the kernel can't
+ * handle booting from such a dataset right now. vfs.root.mountfrom
+ * is defined to be a space-separated list, and there's no protocol for
+ * escaping whitespace in the path component of a dev:path spec. So
+ * while loader can handle this situation alright, it can't safely pass
+ * it on to mountroot.
+ */
+ if (strchr(name, ' ') != NULL)
+ return (BE_ERR_INVALIDNAME);
+
return (BE_ERR_SUCCESS);
}
diff --git a/lib/libbe/be_access.c b/lib/libbe/be_access.c
index 74059a0a5693..ec966bc85fb7 100644
--- a/lib/libbe/be_access.c
+++ b/lib/libbe/be_access.c
@@ -210,7 +210,7 @@ be_mounted_at(libbe_handle_t *lbh, const char *path, nvlist_t *details)
if (info.name != NULL) {
if (details != NULL) {
- if ((root_hdl = zfs_open(lbh->lzh, lbh->root,
+ if ((root_hdl = zfs_open(lbh->lzh, info.name,
ZFS_TYPE_FILESYSTEM)) == NULL) {
free(info.name);
return (BE_ERR_ZFSOPEN);
@@ -219,6 +219,7 @@ be_mounted_at(libbe_handle_t *lbh, const char *path, nvlist_t *details)
propinfo.lbh = lbh;
propinfo.list = details;
propinfo.single_object = false;
+ propinfo.bootonce = NULL;
prop_list_builder_cb(root_hdl, &propinfo);
zfs_close(root_hdl);
}
diff --git a/lib/libbsddialog/Makefile b/lib/libbsddialog/Makefile
index 14e06fde0c7e..08e5bebcb6a5 100644
--- a/lib/libbsddialog/Makefile
+++ b/lib/libbsddialog/Makefile
@@ -6,9 +6,6 @@ LIB= bsddialog
PRIVATELIB= yes
SHLIB_MAJOR= 0
SRCS= barbox.c \
- commandbox.c \
- editorbox.c \
- filebox.c \
formbox.c \
infobox.c \
lib_util.c \
@@ -20,11 +17,11 @@ SRCS= barbox.c \
theme.c \
timebox.c
INCS= bsddialog.h \
- bsddialog_theme.h
-MAN=
+ bsddialog_theme.h \
+ bsddialog_progressview.h
+MAN= bsddialog.3
LIBADD= ncursesw tinfow formw
-
-WARNS= 2
+CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
.include <bsd.lib.mk>
diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile
index 2bc1bf40eccd..e5bf55e37804 100644
--- a/lib/libc++/Makefile
+++ b/lib/libc++/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+SHLIBDIR?= /lib
+
.include <src.opts.mk>
PACKAGE= clibs
@@ -35,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
@@ -44,6 +47,9 @@ SRCS+= optional.cpp
SRCS+= random.cpp
SRCS+= random_shuffle.cpp
SRCS+= regex.cpp
+SRCS+= ryu/d2fixed.cpp
+SRCS+= ryu/d2s.cpp
+SRCS+= ryu/f2s.cpp
SRCS+= shared_mutex.cpp
SRCS+= stdexcept.cpp
SRCS+= string.cpp
@@ -76,6 +82,7 @@ cxxrt_${_S}: ${_LIBCXXRTDIR}/${_S} .NOMETA
WARNS?= 0
CFLAGS+= -isystem ${.CURDIR}
CFLAGS+= -isystem ${HDRDIR}
+CFLAGS+= -isystem ${SRCDIR}
CFLAGS+= -isystem ${_LIBCXXRTDIR}
CFLAGS+= -nostdinc++
CFLAGS+= -nostdlib
@@ -83,7 +90,7 @@ CFLAGS+= -D_LIBCPP_BUILDING_LIBRARY
CFLAGS+= -DLIBCXXRT
CFLAGS+= -ffunction-sections
CFLAGS+= -fdata-sections
-CXXSTD?= c++14
+CXXSTD?= c++20
LIBADD+= cxxrt
@@ -97,11 +104,11 @@ STD_HEADERS+= __bsd_locale_fallbacks.h
STD_HEADERS+= __config
STD_HEADERS+= __debug
STD_HEADERS+= __errc
-STD_HEADERS+= __function_like.h
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
@@ -138,6 +145,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
@@ -237,9 +245,6 @@ STD+= ${HDRDIR}/${hdr}
STD+= ${.CURDIR}/__config_site
RT_HEADERS+= cxxabi.h
-RT_HEADERS+= unwind-arm.h
-RT_HEADERS+= unwind-itanium.h
-RT_HEADERS+= unwind.h
.for hdr in ${RT_HEADERS}
STD+= ${_LIBCXXRTDIR}/${hdr}
.endfor
@@ -273,6 +278,9 @@ ALG_HEADERS+= for_each_n.h
ALG_HEADERS+= generate.h
ALG_HEADERS+= generate_n.h
ALG_HEADERS+= half_positive.h
+ALG_HEADERS+= in_in_out_result.h
+ALG_HEADERS+= in_in_result.h
+ALG_HEADERS+= in_out_result.h
ALG_HEADERS+= includes.h
ALG_HEADERS+= inplace_merge.h
ALG_HEADERS+= is_heap.h
@@ -343,10 +351,135 @@ ALG_HEADERS+= upper_bound.h
ALG+= ${HDRDIR}/__algorithm/${hdr}
.endfor
+INCSGROUPS+= BIT
+BITDIR= ${CXXINCLUDEDIR}/__bit
+BIT_HEADERS+= bit_cast.h
+BIT_HEADERS+= byteswap.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+= CHR
+CHRDIR= ${CXXINCLUDEDIR}/__chrono
+CHR_HEADERS+= calendar.h
+CHR_HEADERS+= convert_to_timespec.h
+CHR_HEADERS+= duration.h
+CHR_HEADERS+= file_clock.h
+CHR_HEADERS+= high_resolution_clock.h
+CHR_HEADERS+= steady_clock.h
+CHR_HEADERS+= system_clock.h
+CHR_HEADERS+= time_point.h
+.for hdr in ${CHR_HEADERS}
+CHR+= ${HDRDIR}/__chrono/${hdr}
+.endfor
+
+INCSGROUPS+= CMP
+CMPDIR= ${CXXINCLUDEDIR}/__compare
+CMP_HEADERS+= common_comparison_category.h
+CMP_HEADERS+= compare_partial_order_fallback.h
+CMP_HEADERS+= compare_strong_order_fallback.h
+CMP_HEADERS+= compare_three_way.h
+CMP_HEADERS+= compare_three_way_result.h
+CMP_HEADERS+= compare_weak_order_fallback.h
+CMP_HEADERS+= is_eq.h
+CMP_HEADERS+= ordering.h
+CMP_HEADERS+= partial_order.h
+CMP_HEADERS+= strong_order.h
+CMP_HEADERS+= synth_three_way.h
+CMP_HEADERS+= three_way_comparable.h
+CMP_HEADERS+= weak_order.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+= FS
+FSDIR= ${CXXINCLUDEDIR}/__filesystem
+FS_HEADERS+= copy_options.h
+FS_HEADERS+= directory_entry.h
+FS_HEADERS+= directory_iterator.h
+FS_HEADERS+= directory_options.h
+FS_HEADERS+= file_status.h
+FS_HEADERS+= file_time_type.h
+FS_HEADERS+= file_type.h
+FS_HEADERS+= filesystem_error.h
+FS_HEADERS+= operations.h
+FS_HEADERS+= path.h
+FS_HEADERS+= path_iterator.h
+FS_HEADERS+= perm_options.h
+FS_HEADERS+= perms.h
+FS_HEADERS+= recursive_directory_iterator.h
+FS_HEADERS+= space_info.h
+FS_HEADERS+= u8path.h
+.for hdr in ${FS_HEADERS}
+FS+= ${HDRDIR}/__filesystem/${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_floating_point.h
+FMT_HEADERS+= formatter_integer.h
+FMT_HEADERS+= formatter_integral.h
+FMT_HEADERS+= formatter_pointer.h
+FMT_HEADERS+= formatter_string.h
+FMT_HEADERS+= parser_std_format_spec.h
.for hdr in ${FMT_HEADERS}
FMT+= ${HDRDIR}/__format/${hdr}
.endfor
@@ -356,9 +489,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
@@ -397,6 +532,7 @@ IT_HEADERS+= empty.h
IT_HEADERS+= erase_if_container.h
IT_HEADERS+= front_insert_iterator.h
IT_HEADERS+= incrementable_traits.h
+IT_HEADERS+= indirectly_comparable.h
IT_HEADERS+= insert_iterator.h
IT_HEADERS+= istream_iterator.h
IT_HEADERS+= istreambuf_iterator.h
@@ -414,6 +550,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,22 +565,79 @@ MEM_HEADERS+= allocator_arg_t.h
MEM_HEADERS+= allocator_traits.h
MEM_HEADERS+= auto_ptr.h
MEM_HEADERS+= compressed_pair.h
+MEM_HEADERS+= concepts.h
MEM_HEADERS+= construct_at.h
-MEM_HEADERS+= pointer_safety.h
MEM_HEADERS+= pointer_traits.h
+MEM_HEADERS+= ranges_construct_at.h
+MEM_HEADERS+= ranges_uninitialized_algorithms.h
MEM_HEADERS+= raw_storage_iterator.h
MEM_HEADERS+= shared_ptr.h
MEM_HEADERS+= temporary_buffer.h
MEM_HEADERS+= uninitialized_algorithms.h
MEM_HEADERS+= unique_ptr.h
MEM_HEADERS+= uses_allocator.h
+MEM_HEADERS+= voidify.h
.for hdr in ${MEM_HEADERS}
MEM+= ${HDRDIR}/__memory/${hdr}
.endfor
+INCSGROUPS+= NUM
+NUMDIR= ${CXXINCLUDEDIR}/__numeric
+NUM_HEADERS+= accumulate.h
+NUM_HEADERS+= adjacent_difference.h
+NUM_HEADERS+= exclusive_scan.h
+NUM_HEADERS+= gcd_lcm.h
+NUM_HEADERS+= inclusive_scan.h
+NUM_HEADERS+= inner_product.h
+NUM_HEADERS+= iota.h
+NUM_HEADERS+= midpoint.h
+NUM_HEADERS+= partial_sum.h
+NUM_HEADERS+= reduce.h
+NUM_HEADERS+= transform_exclusive_scan.h
+NUM_HEADERS+= transform_inclusive_scan.h
+NUM_HEADERS+= transform_reduce.h
+.for hdr in ${NUM_HEADERS}
+NUM+= ${HDRDIR}/__numeric/${hdr}
+.endfor
+
INCSGROUPS+= RND
RNDDIR= ${CXXINCLUDEDIR}/__random
+RND_HEADERS+= bernoulli_distribution.h
+RND_HEADERS+= binomial_distribution.h
+RND_HEADERS+= cauchy_distribution.h
+RND_HEADERS+= chi_squared_distribution.h
+RND_HEADERS+= clamp_to_integral.h
+RND_HEADERS+= default_random_engine.h
+RND_HEADERS+= discard_block_engine.h
+RND_HEADERS+= discrete_distribution.h
+RND_HEADERS+= exponential_distribution.h
+RND_HEADERS+= extreme_value_distribution.h
+RND_HEADERS+= fisher_f_distribution.h
+RND_HEADERS+= gamma_distribution.h
+RND_HEADERS+= generate_canonical.h
+RND_HEADERS+= geometric_distribution.h
+RND_HEADERS+= independent_bits_engine.h
+RND_HEADERS+= is_seed_sequence.h
+RND_HEADERS+= knuth_b.h
+RND_HEADERS+= linear_congruential_engine.h
+RND_HEADERS+= log2.h
+RND_HEADERS+= lognormal_distribution.h
+RND_HEADERS+= mersenne_twister_engine.h
+RND_HEADERS+= negative_binomial_distribution.h
+RND_HEADERS+= normal_distribution.h
+RND_HEADERS+= piecewise_constant_distribution.h
+RND_HEADERS+= piecewise_linear_distribution.h
+RND_HEADERS+= poisson_distribution.h
+RND_HEADERS+= random_device.h
+RND_HEADERS+= ranlux.h
+RND_HEADERS+= seed_seq.h
+RND_HEADERS+= shuffle_order_engine.h
+RND_HEADERS+= student_t_distribution.h
+RND_HEADERS+= subtract_with_carry_engine.h
RND_HEADERS+= uniform_int_distribution.h
+RND_HEADERS+= uniform_random_bit_generator.h
+RND_HEADERS+= uniform_real_distribution.h
+RND_HEADERS+= weibull_distribution.h
.for hdr in ${RND_HEADERS}
RND+= ${HDRDIR}/__random/${hdr}
.endfor
@@ -455,6 +649,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
@@ -462,20 +657,36 @@ 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+= owning_view.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
+RNG_HEADERS+= views.h
.for hdr in ${RNG_HEADERS}
RNG+= ${HDRDIR}/__ranges/${hdr}
.endfor
+INCSGROUPS+= THR
+THRDIR= ${CXXINCLUDEDIR}/__thread
+THR_HEADERS+= poll_with_backoff.h
+THR_HEADERS+= timed_backoff_policy.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+= auto_cast.h
UTL_HEADERS+= cmp.h
UTL_HEADERS+= declval.h
UTL_HEADERS+= exchange.h
@@ -485,16 +696,18 @@ UTL_HEADERS+= integer_sequence.h
UTL_HEADERS+= move.h
UTL_HEADERS+= pair.h
UTL_HEADERS+= piecewise_construct.h
+UTL_HEADERS+= priority_tag.h
UTL_HEADERS+= rel_ops.h
UTL_HEADERS+= swap.h
UTL_HEADERS+= to_underlying.h
+UTL_HEADERS+= transaction.h
.for hdr in ${UTL_HEADERS}
UTL+= ${HDRDIR}/__utility/${hdr}
.endfor
INCSGROUPS+= VAR
-VAR_HEADERS+= monostate.h
VARDIR= ${CXXINCLUDEDIR}/__variant
+VAR_HEADERS+= monostate.h
.for hdr in ${VAR_HEADERS}
VAR+= ${HDRDIR}/__variant/${hdr}
.endfor
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/libc/Makefile b/lib/libc/Makefile
index fdf6aa49932b..3667eea15307 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -32,7 +32,7 @@ CFLAGS+=-DNO__SCCSID -DNO__RCSID
LIB=c
SHLIB_MAJOR= 7
.if ${MK_SSP} != "no" && \
- (${LIBC_ARCH} == "i386" || ${MACHINE_ARCH:Mpower*} != "")
+ (${LIBC_ARCH} == "i386" || ${LIBC_ARCH:Mpowerpc*} != "")
SHLIB_LDSCRIPT=libc.ldscript
.else
SHLIB_LDSCRIPT=libc_nossp.ldscript
@@ -57,7 +57,8 @@ CFLAGS+=${CANCELPOINTS_CFLAGS}
# Use a more efficient TLS model for libc since we can reasonably assume that
# it will be loaded during program startup.
.if ${LIBC_ARCH} == "aarch64" || ${LIBC_ARCH} == "amd64" || \
- ${LIBC_ARCH} == "i386" || ${LIBC_ARCH} == "riscv"
+ ${LIBC_ARCH} == "i386" || ${LIBC_ARCH} == "riscv" || \
+ ${LIBC_ARCH:Mpowerpc*} != ""
CFLAGS+= -ftls-model=initial-exec
.endif
@@ -68,7 +69,7 @@ LDFLAGS+= -nodefaultlibs
LIBADD+= compiler_rt
.if ${MK_SSP} != "no" && \
- (${LIBC_ARCH} == "i386" || ${MACHINE_ARCH:Mpower*} != "")
+ (${LIBC_ARCH} == "i386" || ${LIBC_ARCH:Mpowerpc*} != "")
LIBADD+= ssp_nonshared
.endif
@@ -111,9 +112,7 @@ NOASM=
.if ${LIBC_ARCH} != "aarch64" && \
${LIBC_ARCH} != "amd64" && \
${LIBC_ARCH} != "powerpc64" && \
- ${LIBC_ARCH} != "riscv" && \
- ${MACHINE_ARCH:Mmipsn32*} == "" && \
- ${MACHINE_ARCH:Mmips64*} == ""
+ ${LIBC_ARCH} != "riscv"
.include "${LIBC_SRCTOP}/quad/Makefile.inc"
.endif
.include "${LIBC_SRCTOP}/regex/Makefile.inc"
@@ -130,7 +129,6 @@ NOASM=
.include "${LIBC_SRCTOP}/xdr/Makefile.inc"
.if (${LIBC_ARCH} == "arm" && \
(${MACHINE_ARCH:Marmv[67]*} == "" || (defined(CPUTYPE) && ${CPUTYPE:M*soft*}))) || \
- (${LIBC_ARCH} == "mips" && ${MACHINE_ARCH:Mmips*hf} == "") || \
(${LIBC_ARCH} == "riscv" && ${MACHINE_ARCH:Mriscv*sf} != "")
.include "${LIBC_SRCTOP}/softfloat/Makefile.inc"
.endif
diff --git a/lib/libc/aarch64/Symbol.map b/lib/libc/aarch64/Symbol.map
index d9121798140c..0a5d8782d3ac 100644
--- a/lib/libc/aarch64/Symbol.map
+++ b/lib/libc/aarch64/Symbol.map
@@ -11,6 +11,7 @@ FBSD_1.0 {
/* PSEUDO syscalls */
_exit;
+ .mcount;
_setjmp;
_longjmp;
fabs;
@@ -32,6 +33,5 @@ FBSD_1.0 {
};
FBSDprivate_1.0 {
- _set_tp;
__makecontext;
};
diff --git a/lib/libc/aarch64/gen/Makefile.inc b/lib/libc/aarch64/gen/Makefile.inc
index 7c530b93b4e4..138ffe03f5e9 100644
--- a/lib/libc/aarch64/gen/Makefile.inc
+++ b/lib/libc/aarch64/gen/Makefile.inc
@@ -7,12 +7,10 @@ SRCS+= _ctx_start.S \
flt_rounds.c \
fpgetmask.c \
fpsetmask.c \
- _get_tp.c \
infinity.c \
ldexp.c \
makecontext.c \
_setjmp.S \
- _set_tp.c \
setjmp.S \
sigsetjmp.S \
trivial-getcontextx.c
diff --git a/lib/libc/aarch64/gen/_get_tp.c b/lib/libc/aarch64/gen/_get_tp.c
deleted file mode 100644
index ce51b400b542..000000000000
--- a/lib/libc/aarch64/gen/_get_tp.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
- *
- * Copyright (c) 2021 The FreeBSD Foundation
- *
- * This software were developed by Konstantin Belousov
- * under sponsorship from the FreeBSD Foundation.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <string.h>
-#include <stdint.h>
-#include "libc_private.h"
-
-void *
-_get_tp(void)
-{
- void *res;
-
- __asm __volatile("mrs %0, tpidr_el0" : "=r" (res));
- return (res);
-}
diff --git a/lib/libc/aarch64/gen/_set_tp.c b/lib/libc/aarch64/gen/_set_tp.c
deleted file mode 100644
index 871acb3001a3..000000000000
--- a/lib/libc/aarch64/gen/_set_tp.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/*-
- * Copyright (c) 2014 Andrew Turner
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <string.h>
-#include <sys/types.h>
-
-#include <machine/sysarch.h>
-
-#include <stdlib.h>
-#include "libc_private.h"
-
-void
-_set_tp(void *tp)
-{
-
- asm volatile("msr tpidr_el0, %0" : : "r"(tp));
-}
diff --git a/lib/libc/amd64/Symbol.map b/lib/libc/amd64/Symbol.map
index 0655bd5eeb36..297792eb0e82 100644
--- a/lib/libc/amd64/Symbol.map
+++ b/lib/libc/amd64/Symbol.map
@@ -60,7 +60,6 @@ FBSDprivate_1.0 {
/* PSEUDO syscalls */
_getlogin;
- _set_tp;
___longjmp;
__makecontext;
__longjmp;
diff --git a/lib/libc/amd64/gen/Makefile.inc b/lib/libc/amd64/gen/Makefile.inc
index 4df3c044493e..f904e1e71eb0 100644
--- a/lib/libc/amd64/gen/Makefile.inc
+++ b/lib/libc/amd64/gen/Makefile.inc
@@ -1,7 +1,7 @@
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
# $FreeBSD$
-SRCS+= _setjmp.S _get_tp.c _set_tp.c rfork_thread.S setjmp.S sigsetjmp.S \
+SRCS+= _setjmp.S rfork_thread.S setjmp.S sigsetjmp.S \
fabs.S \
infinity.c ldexp.c makecontext.c signalcontext.c \
flt_rounds.c fpgetmask.c fpsetmask.c fpgetprec.c fpsetprec.c \
diff --git a/lib/libc/amd64/gen/_get_tp.c b/lib/libc/amd64/gen/_get_tp.c
deleted file mode 100644
index 3c74b9e769c1..000000000000
--- a/lib/libc/amd64/gen/_get_tp.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
- *
- * Copyright (c) 2021 The FreeBSD Foundation
- *
- * This software were developed by Konstantin Belousov
- * under sponsorship from the FreeBSD Foundation.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <string.h>
-#include <stdint.h>
-#include "libc_private.h"
-
-void *
-_get_tp(void)
-{
- void **res;
-
- /* This function is used by rtld, avoid ifuncs. */
- __asm __volatile("movq %%fs:0, %0" : "=r" (res));
- return (&res[1]);
-}
diff --git a/lib/libc/amd64/gen/_set_tp.c b/lib/libc/amd64/gen/_set_tp.c
deleted file mode 100644
index 6e3a4c07499b..000000000000
--- a/lib/libc/amd64/gen/_set_tp.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
- *
- * Copyright (c) 2004 Doug Rabson
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#include <string.h>
-#include <stdint.h>
-#include <machine/sysarch.h>
-#include "libc_private.h"
-
-void
-_set_tp(void *tp)
-{
-
- amd64_set_fsbase(tp);
-}
diff --git a/lib/libc/amd64/string/bcmp.S b/lib/libc/amd64/string/bcmp.S
index efdc6d33e4dd..f7a4603f6c5a 100644
--- a/lib/libc/amd64/string/bcmp.S
+++ b/lib/libc/amd64/string/bcmp.S
@@ -1,121 +1,7 @@
/*-
- * Copyright (c) 2018 The FreeBSD Foundation
- *
- * This software was developed by Mateusz Guzik <mjg@FreeBSD.org>
- * under sponsorship from the FreeBSD Foundation.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
+ * Written by Mateusz Guzik <mjg@freebsd.org>
+ * Public domain.
*/
-#include <machine/asm.h>
-__FBSDID("$FreeBSD$");
-
-ENTRY(bcmp)
- cmpq $16,%rdx
- jae 5f
-1:
- testq %rdx,%rdx
- je 3f
- xorl %ecx,%ecx
-2:
- movzbl (%rdi,%rcx,1),%eax
- movzbl (%rsi,%rcx,1),%r8d
- cmpb %r8b,%al
- jne 4f
- addq $1,%rcx
- cmpq %rcx,%rdx
- jz 3f
- movzbl (%rdi,%rcx,1),%eax
- movzbl (%rsi,%rcx,1),%r8d
- cmpb %r8b,%al
- jne 4f
- addq $1,%rcx
- cmpq %rcx,%rdx
- jz 3f
- movzbl (%rdi,%rcx,1),%eax
- movzbl (%rsi,%rcx,1),%r8d
- cmpb %r8b,%al
- jne 4f
- addq $1,%rcx
- cmpq %rcx,%rdx
- jz 3f
- movzbl (%rdi,%rcx,1),%eax
- movzbl (%rsi,%rcx,1),%r8d
- cmpb %r8b,%al
- jne 4f
- addq $1,%rcx
- cmpq %rcx,%rdx
- jne 2b
-3:
- xorl %eax,%eax
- ret
-4:
- movl $1,%eax
- ret
-5:
- cmpq $32,%rdx
- jae 7f
-6:
- /*
- * 8 bytes
- */
- movq (%rdi),%r8
- movq (%rsi),%r9
- cmpq %r8,%r9
- jne 4b
- leaq 8(%rdi),%rdi
- leaq 8(%rsi),%rsi
- subq $8,%rdx
- cmpq $8,%rdx
- jae 6b
- jl 1b
- jmp 3b
-7:
- /*
- * 32 bytes
- */
- movq (%rsi),%r8
- movq 8(%rsi),%r9
- subq (%rdi),%r8
- subq 8(%rdi),%r9
- or %r8,%r9
- jnz 4b
-
- movq 16(%rsi),%r8
- movq 24(%rsi),%r9
- subq 16(%rdi),%r8
- subq 24(%rdi),%r9
- or %r8,%r9
- jnz 4b
-
- leaq 32(%rdi),%rdi
- leaq 32(%rsi),%rsi
- subq $32,%rdx
- cmpq $32,%rdx
- jae 7b
- jnz 1b
- jmp 3b
-END(bcmp)
-
- .section .note.GNU-stack,"",%progbits
+#define BCMP
+#include "memcmp.S"
diff --git a/lib/libc/amd64/string/memcmp.S b/lib/libc/amd64/string/memcmp.S
index 0c8121f9d885..3e6df7966312 100644
--- a/lib/libc/amd64/string/memcmp.S
+++ b/lib/libc/amd64/string/memcmp.S
@@ -39,7 +39,11 @@ __FBSDID("$FreeBSD$");
#define ALIGN_TEXT .p2align 4,0x90 /* 16-byte alignment, nop filled */
+#ifdef BCMP
+ENTRY(bcmp)
+#else
ENTRY(memcmp)
+#endif
xorl %eax,%eax
10:
cmpq $16,%rdx
@@ -143,8 +147,25 @@ ENTRY(memcmp)
/*
* Mismatch was found.
- *
- * Before we compute it we narrow down the range (16 -> 8 -> 4 bytes).
+ */
+#ifdef BCMP
+ ALIGN_TEXT
+10320016:
+10320000:
+10081608:
+10163224:
+10163216:
+10163208:
+10040804:
+80:
+1:
+ leal 1(%eax),%eax
+ ret
+END(bcmp)
+#else
+/*
+ * We need to compute the difference between strings.
+ * Start with narrowing the range down (16 -> 8 -> 4 bytes).
*/
ALIGN_TEXT
10320016:
@@ -214,5 +235,6 @@ ENTRY(memcmp)
subl %r8d,%eax
ret
END(memcmp)
+#endif
.section .note.GNU-stack,"",%progbits
diff --git a/lib/libc/arm/Symbol.map b/lib/libc/arm/Symbol.map
index 530c19798d60..61c7ccc070f2 100644
--- a/lib/libc/arm/Symbol.map
+++ b/lib/libc/arm/Symbol.map
@@ -50,7 +50,6 @@ FBSDprivate_1.0 {
/* PSEUDO syscalls */
_getlogin;
- _set_tp;
__aeabi_read_tp;
___longjmp;
__makecontext;
diff --git a/lib/libc/arm/gen/Makefile.inc b/lib/libc/arm/gen/Makefile.inc
index 35aa465e4904..77c995f70cbc 100644
--- a/lib/libc/arm/gen/Makefile.inc
+++ b/lib/libc/arm/gen/Makefile.inc
@@ -4,8 +4,6 @@
SRCS+= \
__aeabi_read_tp.S \
_ctx_start.S \
- _get_tp.c \
- _set_tp.c \
_setjmp.S \
alloca.S \
arm_initfini.c \
diff --git a/lib/libc/arm/gen/_get_tp.c b/lib/libc/arm/gen/_get_tp.c
deleted file mode 100644
index 495fa982dd6f..000000000000
--- a/lib/libc/arm/gen/_get_tp.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
- *
- * Copyright (c) 2021 The FreeBSD Foundation
- *
- * This software were developed by Konstantin Belousov
- * under sponsorship from the FreeBSD Foundation.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <sys/param.h>
-#include <string.h>
-#include <stdint.h>
-#include "libc_private.h"
-
-void *
-_get_tp(void)
-{
- void *res;
-
- __asm __volatile("mrc p15, 0, %0, c13, c0, 3" : "=r" (res));
- return (res);
-}
diff --git a/lib/libc/compat-43/sigvec.2 b/lib/libc/compat-43/sigvec.2
index 12cf81fe0508..33b6869be82d 100644
--- a/lib/libc/compat-43/sigvec.2
+++ b/lib/libc/compat-43/sigvec.2
@@ -28,7 +28,7 @@
.\" @(#)sigvec.2 8.2 (Berkeley) 4/19/94
.\" $FreeBSD$
.\"
-.Dd April 19, 1994
+.Dd April 2, 2022
.Dt SIGVEC 2
.Os
.Sh NAME
@@ -338,5 +338,14 @@ or
.Xr signal 3 ,
.Xr sigsetops 3 ,
.Xr tty 4
+.Sh HISTORY
+A
+.Fn sigvec
+system call first appeared in
+.Bx 4.2 .
+It was reimplemented as a wrapper around
+.Xr sigaction 2
+in
+.Bx 4.3 Reno .
.Sh BUGS
This manual page is still confusing.
diff --git a/lib/libc/db/man/dbm.3 b/lib/libc/db/man/dbm.3
index 4fe5d82d6902..dd7cc0a614e0 100644
--- a/lib/libc/db/man/dbm.3
+++ b/lib/libc/db/man/dbm.3
@@ -15,7 +15,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 30, 2016
+.Dd April 2, 2022
.Dt DBM 3
.Os
.Sh NAME
@@ -224,3 +224,14 @@ These functions (except
.Fn dbm_dirfno )
are included in the
.St -susv2 .
+.Sh HISTORY
+The functions
+.Fn dbminit ,
+.Fn fetch ,
+.Fn store ,
+.Fn delete ,
+.Fn firstkey ,
+and
+.Fn nextkey
+first appeared in
+.At v7 .
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 6a9e284b5860..395edefc0503 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -30,6 +30,8 @@ SRCS+= __getosreldate.c \
clock_getcpuclockid.c \
closedir.c \
confstr.c \
+ cpuset_alloc.c \
+ cpuset_free.c \
crypt.c \
ctermid.c \
daemon.c \
@@ -571,8 +573,8 @@ install-passwd: .PHONY
${PWD_MKDB_CMD} -i -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
.if defined(NO_ROOT) && defined(METALOG)
( \
- echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
- echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
- echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \
+ echo ".${DISTBASE}/etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
+ echo ".${DISTBASE}/etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
+ echo ".${DISTBASE}/etc/passwd type=file mode=0644 uname=root gname=wheel"; \
) | cat -l >> ${METALOG}
.endif
diff --git a/lib/libc/gen/Symbol.map b/lib/libc/gen/Symbol.map
index 5554c32ab4f2..012c9ff11f04 100644
--- a/lib/libc/gen/Symbol.map
+++ b/lib/libc/gen/Symbol.map
@@ -442,6 +442,8 @@ FBSD_1.7 {
sched_getaffinity;
sched_setaffinity;
sched_getcpu;
+ __cpuset_alloc;
+ __cpuset_free;
};
FBSDprivate_1.0 {
diff --git a/lib/libc/gen/alarm.3 b/lib/libc/gen/alarm.3
index deb455ea4a7f..d9e83fd410d9 100644
--- a/lib/libc/gen/alarm.3
+++ b/lib/libc/gen/alarm.3
@@ -28,7 +28,7 @@
.\" @(#)alarm.3 8.2 (Berkeley) 4/19/94
.\" $FreeBSD$
.\"
-.Dd April 19, 1994
+.Dd April 2, 2022
.Dt ALARM 3
.Os
.Sh NAME
@@ -89,5 +89,11 @@ If no alarm is currently set, the return value is 0.
.Sh HISTORY
An
.Fn alarm
-function appeared in
+system call appeared in the Programmer's Workbench (PWB/UNIX)
+and was ported to
.At v7 .
+For
+.Bx 4.1c ,
+it was reimplemented as a wrapper around the
+.Xr setitimer 2
+system call.
diff --git a/lib/libc/powerpc64/gen/_set_tp.c b/lib/libc/gen/cpuset_alloc.c
index 541ad2d0d8a4..ac307f07f263 100644
--- a/lib/libc/powerpc64/gen/_set_tp.c
+++ b/lib/libc/gen/cpuset_alloc.c
@@ -1,8 +1,5 @@
/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
- *
- * Copyright (c) 2004 Doug Rabson
- * All rights reserved.
+ * Copyright (c) 2021 Stefan Esser <se@FreeBSD.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -24,14 +21,13 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#include "libc_private.h"
-void
-_set_tp(void *tpval)
-{
+#include <stdlib.h>
+#include <sched.h>
- __asm __volatile("mr 13,%0" :: "r"((char*)tpval + 0x7010));
+cpuset_t *
+__cpuset_alloc(size_t ncpus)
+{
+ return (malloc(CPU_ALLOC_SIZE(ncpus)));
}
diff --git a/lib/libc/powerpc/gen/_set_tp.c b/lib/libc/gen/cpuset_free.c
index 61986f21c697..4cd993853241 100644
--- a/lib/libc/powerpc/gen/_set_tp.c
+++ b/lib/libc/gen/cpuset_free.c
@@ -1,8 +1,5 @@
/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
- *
- * Copyright (c) 2004 Doug Rabson
- * All rights reserved.
+ * Copyright (c) 2021 Stefan Esser <se@FreeBSD.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -24,14 +21,13 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#include "libc_private.h"
+
+#include <stdlib.h>
+#include <sched.h>
void
-_set_tp(void *tpval)
+__cpuset_free(cpuset_t *ptr)
{
-
- __asm __volatile("mr 2,%0" :: "r"((char*)tpval + 0x7008));
+ free(ptr);
}
diff --git a/lib/libc/gen/fnmatch.3 b/lib/libc/gen/fnmatch.3
index 5503884665b6..8cc0ef9551f1 100644
--- a/lib/libc/gen/fnmatch.3
+++ b/lib/libc/gen/fnmatch.3
@@ -30,7 +30,7 @@
.\" @(#)fnmatch.3 8.3 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd July 18, 2004
+.Dd April 2, 2022
.Dt FNMATCH 3
.Os
.Sh NAME
@@ -139,6 +139,10 @@ conform to
Collating symbol expressions, equivalence class expressions and
character class expressions are not supported.
.Sh HISTORY
+A predecessor to
+.Fn fnmatch ,
+.Fn gmatch ,
+first appeared in the Programmer's Workbench (PWB/UNIX).
The
.Fn fnmatch
function first appeared in
diff --git a/lib/libc/gen/fts-compat.c b/lib/libc/gen/fts-compat.c
index ccdd4f15905b..9f295110f1c7 100644
--- a/lib/libc/gen/fts-compat.c
+++ b/lib/libc/gen/fts-compat.c
@@ -610,6 +610,19 @@ __fts_set_clientptr_44bsd(FTS *sp, void *clientptr)
sp->fts_clientptr = clientptr;
}
+static struct freebsd11_dirent *
+fts_safe_readdir(DIR *dirp, int *readdir_errno)
+{
+ struct freebsd11_dirent *ret;
+
+ errno = 0;
+ if (!dirp)
+ return (NULL);
+ ret = freebsd11_readdir(dirp);
+ *readdir_errno = errno;
+ return (ret);
+}
+
/*
* This is the tricky part -- do not casually change *anything* in here. The
* idea is to build the linked list of entries that are used by fts_children
@@ -634,7 +647,7 @@ fts_build(FTS *sp, int type)
DIR *dirp;
void *oldaddr;
int cderrno, descend, len, level, maxlen, nlinks, oflag, saved_errno,
- nostat, doadjust, dnamlen;
+ nostat, doadjust, dnamlen, readdir_errno;
char *cp;
/* Set current node pointer. */
@@ -738,8 +751,9 @@ fts_build(FTS *sp, int type)
/* Read the directory, attaching each entry to the `link' pointer. */
doadjust = 0;
+ readdir_errno = 0;
for (head = tail = NULL, nitems = 0;
- dirp && (dp = freebsd11_readdir(dirp));) {
+ (dp = fts_safe_readdir(dirp, &readdir_errno));) {
dnamlen = dp->d_namlen;
if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
continue;
@@ -839,6 +853,16 @@ mem1: saved_errno = errno;
}
++nitems;
}
+
+ if (readdir_errno) {
+ cur->fts_errno = readdir_errno;
+ /*
+ * If we've not read any items yet, treat
+ * the error as if we can't access the dir.
+ */
+ cur->fts_info = nitems ? FTS_ERR : FTS_DNR;
+ }
+
if (dirp)
(void)closedir(dirp);
@@ -877,7 +901,8 @@ mem1: saved_errno = errno;
/* If didn't find anything, return NULL. */
if (!nitems) {
- if (type == BREAD)
+ if (type == BREAD &&
+ cur->fts_info != FTS_DNR && cur->fts_info != FTS_ERR)
cur->fts_info = FTS_DP;
return (NULL);
}
diff --git a/lib/libc/gen/fts-compat11.c b/lib/libc/gen/fts-compat11.c
index 288351d2008b..a18ce3f00a6a 100644
--- a/lib/libc/gen/fts-compat11.c
+++ b/lib/libc/gen/fts-compat11.c
@@ -607,6 +607,19 @@ freebsd11_fts_set_clientptr(FTS11 *sp, void *clientptr)
sp->fts_clientptr = clientptr;
}
+static struct freebsd11_dirent *
+fts_safe_readdir(DIR *dirp, int *readdir_errno)
+{
+ struct freebsd11_dirent *ret;
+
+ errno = 0;
+ if (!dirp)
+ return (NULL);
+ ret = freebsd11_readdir(dirp);
+ *readdir_errno = errno;
+ return (ret);
+}
+
/*
* This is the tricky part -- do not casually change *anything* in here. The
* idea is to build the linked list of entries that are used by fts_children
@@ -630,7 +643,8 @@ fts_build(FTS11 *sp, int type)
DIR *dirp;
void *oldaddr;
char *cp;
- int cderrno, descend, oflag, saved_errno, nostat, doadjust;
+ int cderrno, descend, oflag, saved_errno, nostat, doadjust,
+ readdir_errno;
long level;
long nlinks; /* has to be signed because -1 is a magic value */
size_t dnamlen, len, maxlen, nitems;
@@ -736,8 +750,9 @@ fts_build(FTS11 *sp, int type)
/* Read the directory, attaching each entry to the `link' pointer. */
doadjust = 0;
+ readdir_errno = 0;
for (head = tail = NULL, nitems = 0;
- dirp && (dp = freebsd11_readdir(dirp));) {
+ (dp = fts_safe_readdir(dirp, &readdir_errno));) {
dnamlen = dp->d_namlen;
if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
continue;
@@ -823,6 +838,16 @@ mem1: saved_errno = errno;
}
++nitems;
}
+
+ if (readdir_errno) {
+ cur->fts_errno = readdir_errno;
+ /*
+ * If we've not read any items yet, treat
+ * the error as if we can't access the dir.
+ */
+ cur->fts_info = nitems ? FTS_ERR : FTS_DNR;
+ }
+
if (dirp)
(void)closedir(dirp);
@@ -859,7 +884,8 @@ mem1: saved_errno = errno;
/* If didn't find anything, return NULL. */
if (!nitems) {
- if (type == BREAD)
+ if (type == BREAD &&
+ cur->fts_info != FTS_DNR && cur->fts_info != FTS_ERR)
cur->fts_info = FTS_DP;
return (NULL);
}
diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c
index d0705e123775..5186ae047a3b 100644
--- a/lib/libc/gen/fts.c
+++ b/lib/libc/gen/fts.c
@@ -604,6 +604,19 @@ fts_set_clientptr(FTS *sp, void *clientptr)
sp->fts_clientptr = clientptr;
}
+static struct dirent *
+fts_safe_readdir(DIR *dirp, int *readdir_errno)
+{
+ struct dirent *ret;
+
+ errno = 0;
+ if (!dirp)
+ return (NULL);
+ ret = readdir(dirp);
+ *readdir_errno = errno;
+ return (ret);
+}
+
/*
* This is the tricky part -- do not casually change *anything* in here. The
* idea is to build the linked list of entries that are used by fts_children
@@ -627,7 +640,8 @@ fts_build(FTS *sp, int type)
DIR *dirp;
void *oldaddr;
char *cp;
- int cderrno, descend, oflag, saved_errno, nostat, doadjust;
+ int cderrno, descend, oflag, saved_errno, nostat, doadjust,
+ readdir_errno;
long level;
long nlinks; /* has to be signed because -1 is a magic value */
size_t dnamlen, len, maxlen, nitems;
@@ -733,7 +747,9 @@ fts_build(FTS *sp, int type)
/* Read the directory, attaching each entry to the `link' pointer. */
doadjust = 0;
- for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) {
+ readdir_errno = 0;
+ for (head = tail = NULL, nitems = 0;
+ (dp = fts_safe_readdir(dirp, &readdir_errno));) {
dnamlen = dp->d_namlen;
if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name))
continue;
@@ -819,6 +835,16 @@ mem1: saved_errno = errno;
}
++nitems;
}
+
+ if (readdir_errno) {
+ cur->fts_errno = readdir_errno;
+ /*
+ * If we've not read any items yet, treat
+ * the error as if we can't access the dir.
+ */
+ cur->fts_info = nitems ? FTS_ERR : FTS_DNR;
+ }
+
if (dirp)
(void)closedir(dirp);
@@ -855,7 +881,8 @@ mem1: saved_errno = errno;
/* If didn't find anything, return NULL. */
if (!nitems) {
- if (type == BREAD)
+ if (type == BREAD &&
+ cur->fts_info != FTS_DNR && cur->fts_info != FTS_ERR)
cur->fts_info = FTS_DP;
return (NULL);
}
diff --git a/lib/libc/gen/pause.3 b/lib/libc/gen/pause.3
index fc057c7aa634..128e81279efc 100644
--- a/lib/libc/gen/pause.3
+++ b/lib/libc/gen/pause.3
@@ -28,7 +28,7 @@
.\" @(#)pause.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd April 3, 2022
.Dt PAUSE 3
.Os
.Sh NAME
@@ -77,6 +77,18 @@ The call was interrupted.
.Sh HISTORY
A
.Fn pause
-syscall
-appeared in
-.At v6 .
+system call first appeared in the Programmer's Workbench (PWB/UNIX)
+and was then ported to
+.At v7 .
+It was reimplemeted as a wrapper around the
+.Fn sigpause
+and
+.Fn sigblock
+system calls in
+.Bx 4.2 ,
+and around the
+.Xr sigsuspend 2
+and
+.Xr sigprocmask 2
+system calls in
+.Bx 4.3 Reno .
diff --git a/lib/libc/gen/sched_getaffinity.c b/lib/libc/gen/sched_getaffinity.c
index 5557d3d93b47..ed304c111985 100644
--- a/lib/libc/gen/sched_getaffinity.c
+++ b/lib/libc/gen/sched_getaffinity.c
@@ -26,12 +26,18 @@
* SUCH DAMAGE.
*/
-#define _WITH_CPU_SET_T
+#include <errno.h>
#include <sched.h>
+#include <string.h>
int
sched_getaffinity(pid_t pid, size_t cpusetsz, cpuset_t *cpuset)
{
- return (cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, pid,
- cpusetsz, cpuset));
+ int error;
+
+ error = cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
+ pid == 0 ? -1 : pid, cpusetsz, cpuset);
+ if (error == -1 && errno == ERANGE)
+ errno = EINVAL;
+ return (error);
}
diff --git a/lib/libc/gen/sched_getcpu_gen.c b/lib/libc/gen/sched_getcpu_gen.c
index 704075c0ae53..ef1bebc2915a 100644
--- a/lib/libc/gen/sched_getcpu_gen.c
+++ b/lib/libc/gen/sched_getcpu_gen.c
@@ -26,7 +26,6 @@
* SUCH DAMAGE.
*/
-#define _WITH_CPU_SET_T
#include <sched.h>
#include "libc_private.h"
diff --git a/lib/libc/gen/sched_setaffinity.c b/lib/libc/gen/sched_setaffinity.c
index ad775b5dbce5..0052521cd081 100644
--- a/lib/libc/gen/sched_setaffinity.c
+++ b/lib/libc/gen/sched_setaffinity.c
@@ -26,12 +26,42 @@
* SUCH DAMAGE.
*/
-#define _WITH_CPU_SET_T
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#include <errno.h>
#include <sched.h>
+#include <string.h>
int
sched_setaffinity(pid_t pid, size_t cpusetsz, const cpuset_t *cpuset)
{
- return (cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, pid,
- cpusetsz, cpuset));
+ static int mp_maxid;
+ cpuset_t c;
+ int error, lbs, cpu;
+ size_t len, sz;
+
+ sz = cpusetsz > sizeof(cpuset_t) ? sizeof(cpuset_t) : cpusetsz;
+ memset(&c, 0, sizeof(c));
+ memcpy(&c, cpuset, sz);
+
+ /* Linux ignores high bits */
+ if (mp_maxid == 0) {
+ len = sizeof(mp_maxid);
+ error = sysctlbyname("kern.smp.maxid", &mp_maxid, &len,
+ NULL, 0);
+ if (error == -1)
+ return (error);
+ }
+ lbs = CPU_FLS(&c) - 1;
+ if (lbs > mp_maxid) {
+ CPU_FOREACH_ISSET(cpu, &c)
+ if (cpu > mp_maxid)
+ CPU_CLR(cpu, &c);
+ }
+ error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID,
+ pid == 0 ? -1 : pid, sizeof(cpuset_t), &c);
+ if (error == -1 && errno == EDEADLK)
+ errno = EINVAL;
+
+ return (error);
}
diff --git a/lib/libc/gen/setjmp.3 b/lib/libc/gen/setjmp.3
index 5a5c0964ce10..2b6ea9afeb64 100644
--- a/lib/libc/gen/setjmp.3
+++ b/lib/libc/gen/setjmp.3
@@ -32,7 +32,7 @@
.\" @(#)setjmp.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd April 2, 2022
.Dt SETJMP 3
.Os
.Sh NAME
@@ -170,3 +170,9 @@ and
.Fn siglongjmp
functions conform to
.St -p1003.1-88 .
+.Sh HISTORY
+The
+.Fn setjmp
+and
+.Fn longjmp
+functions first appeared in the Programmer's Workbench (PWB/UNIX).
diff --git a/lib/libc/gen/sysctl.c b/lib/libc/gen/sysctl.c
index cdd2d3e391e6..59242b50bbed 100644
--- a/lib/libc/gen/sysctl.c
+++ b/lib/libc/gen/sysctl.c
@@ -46,6 +46,25 @@ __FBSDID("$FreeBSD$");
extern int __sysctl(const int *name, u_int namelen, void *oldp,
size_t *oldlenp, const void *newp, size_t newlen);
+static int
+set_user_str(void *dstp, size_t *dstlenp, const char *src, size_t len,
+ size_t maxlen)
+{
+ int retval;
+
+ retval = 0;
+ if (dstp != NULL) {
+ if (len > maxlen) {
+ len = maxlen;
+ errno = ENOMEM;
+ retval = -1;
+ }
+ memcpy(dstp, src, len);
+ }
+ *dstlenp = len;
+ return (retval);
+}
+
int
sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp,
const void *newp, size_t newlen)
@@ -74,17 +93,10 @@ sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp,
/* Variables under CLT_USER that may be overridden by kernel values */
switch (name[1]) {
case USER_LOCALBASE:
- if (oldlenp == NULL || *oldlenp != 1)
+ if (oldlenp == NULL || *oldlenp > sizeof(""))
return (0);
- if (oldp != NULL) {
- if (orig_oldlen < sizeof(_PATH_LOCALBASE)) {
- errno = ENOMEM;
- return (-1);
- }
- memmove(oldp, _PATH_LOCALBASE, sizeof(_PATH_LOCALBASE));
- }
- *oldlenp = sizeof(_PATH_LOCALBASE);
- return (0);
+ return (set_user_str(oldp, oldlenp, _PATH_LOCALBASE,
+ sizeof(_PATH_LOCALBASE), orig_oldlen));
}
/* Variables under CLT_USER whose values are immutably defined below */
@@ -95,14 +107,8 @@ sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp,
switch (name[1]) {
case USER_CS_PATH:
- if (oldp != NULL && orig_oldlen < sizeof(_PATH_STDPATH)) {
- errno = ENOMEM;
- return (-1);
- }
- *oldlenp = sizeof(_PATH_STDPATH);
- if (oldp != NULL)
- memmove(oldp, _PATH_STDPATH, sizeof(_PATH_STDPATH));
- return (0);
+ return (set_user_str(oldp, oldlenp, _PATH_STDPATH,
+ sizeof(_PATH_STDPATH), orig_oldlen));
}
if (oldp != NULL && *oldlenp < sizeof(int)) {
diff --git a/lib/libc/gen/sysctlbyname.c b/lib/libc/gen/sysctlbyname.c
index 9b4ffc0ca4ae..5086cc4b7d81 100644
--- a/lib/libc/gen/sysctlbyname.c
+++ b/lib/libc/gen/sysctlbyname.c
@@ -41,8 +41,17 @@ sysctlbyname(const char *name, void *oldp, size_t *oldlenp,
const void *newp, size_t newlen)
{
size_t len;
+ int oid[2];
- len = strlen(name);
- return (__sysctlbyname(name, len, oldp, oldlenp, newp,
- newlen));
+ if (__predict_true(strncmp(name, "user.", 5) != 0)) {
+ len = strlen(name);
+ return (__sysctlbyname(name, len, oldp, oldlenp,