llvm-project/lldb
Jonas Devlieghere 2f025bb87c [lldb/Reproducers] Implement custom replayers for (char *, size_t)
Some SB API methods returns strings through a char* and a length. This
is a problem for the deserializer, which considers a single type at a
time, and therefore cannot know how many bytes to allocate for the
character buffer.

We can solve this problem by implementing a custom replayer, which
ignores the passed-in char* and allocates a buffer of the correct size
itself, before invoking the original API method or function.

This patch adds three new macros to register a custom replayer for
methods that take a char* and a size_t. It supports arbitrary return
values (some functions return a bool while others return a size_t).
2020-02-05 19:59:38 -08:00
..
bindings [lldb/Bindings] Sort headers in headers.swig 2020-01-28 10:58:07 -08:00
cmake [lldb/CMake] Only auto-enable Lua when SWIG is found 2020-01-08 14:02:47 -08:00
docs Revert "[lldb/Target] Add Assert StackFrame Recognizer" 2020-02-05 15:51:38 -08:00
examples [Examples] Move structured-data unpacking out of the loop. (NFC) 2019-11-22 15:43:39 -08:00
include/lldb [lldb/Reproducers] Implement custom replayers for (char *, size_t) 2020-02-05 19:59:38 -08:00
packages/Python/lldbsuite Revert "[LLDB] Add DynamicLoaderWasmDYLD plugin for WebAssembly debugging" 2020-02-05 16:22:19 -08:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts [lldb/Scripts] Remove swig_bot_lib/__init__.py 2020-01-16 09:15:41 -08:00
source [lldb/Reproducers] Implement custom replayers for (char *, size_t) 2020-02-05 19:59:38 -08:00
test Revert "[LLDB] Add DynamicLoaderWasmDYLD plugin for WebAssembly debugging" 2020-02-05 16:22:19 -08:00
third_party/Python/module Increase timeout in pexpect to lower chances of tests failing under ASAN. 2019-10-10 16:16:49 +00:00
tools Two more small fixes for debugserver attach failure messaging. 2020-02-05 19:24:38 -08:00
unittests [lldb] Remove clang classes from lldb-forward.h 2020-02-04 14:23:58 -08:00
utils [lldb] pass --lldb-libs-dir argument to lldb-dotest 2020-02-05 15:51:38 -08:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt [lldb/Cmake] Add a CMakeLists.txt to the utils directory... 2020-01-16 22:31:01 -08:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py