llvm-project/lldb
Dave Lee 6e450d1347 [lldb] Use SWIG_fail in python-typemaps.swig (NFC)
When attempting to use SWIG's `-builtin` flag, there were a few compile
failures caused by a mismatch between return type and return value. In those
cases, the return type was `int` but many of the type maps assume returning
`NULL`/`nullptr` (only the latter caused compile failures).

This fix abstracts failure paths to use the `SWIG_fail` macro, which performs
`goto fail;`. Each of the generated functions contain a `fail` label, which
performs any resource cleanup and returns the appropriate failure value.

This change isn't strictly necessary at this point, but seems like the right
thing to do, and for anyone who tries `-builtin` later, it resolves those
issues.

Differential Revision: https://reviews.llvm.org/D133961
2022-09-16 08:25:01 -07:00
..
bindings [lldb] Use SWIG_fail in python-typemaps.swig (NFC) 2022-09-16 08:25:01 -07:00
cmake [CMake] Avoid `LLVM_BINARY_DIR` when other more specific variable are better-suited, part 2 2022-09-14 15:48:58 -04:00
docs [lldb] Fixed a number of typos 2022-09-13 10:38:38 -07:00
examples [lldb] Fixed a number of typos 2022-09-13 10:38:38 -07:00
include/lldb Revert "Revert "Be more careful to maintain quoting information when parsing commands."" 2022-09-14 14:49:51 -07:00
packages/Python/lldbsuite [lldb] Improve formatting of skipped categories message (NFC) 2022-09-15 20:39:25 -07:00
resources
scripts
source [LLDB][NativePDB] Global ctor and dtor should be global decls. 2022-09-15 22:35:58 -07:00
test [clang] use getCommonSugar in an assortment of places 2022-09-16 16:36:00 +02:00
third_party/Python/module [lldb] Remove uses of six module (NFC) 2022-08-11 19:06:15 -07:00
tools [lldb][fuzz] Allow expression fuzzer to be passed as a flag. 2022-09-13 15:39:15 -07:00
unittests Fix DW_OP_convert to resolve the CU relative offset correctly. 2022-09-12 16:53:19 -07:00
utils Fix a bug in lldb-dotest that was uncovered by setting no value for dotest_args_str. 2022-08-31 18:00:18 -07:00
.clang-format
.clang-tidy [LLDB] Applying clang-tidy modernize-use-override over LLDB 2022-04-22 13:29:47 -07:00
.gitignore
CMakeLists.txt lldb: Disable unittests if llvm_gtest target does not exist 2022-08-10 16:56:08 -07:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py