llvm-project/lldb/source
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
..
API [lldb/Reproducers] Implement custom replayers for (char *, size_t) 2020-02-05 19:59:38 -08:00
Breakpoint Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Commands Fix after c25938d 2020-02-04 16:37:22 -08:00
Core Revert "[lldb/Target] Add Assert StackFrame Recognizer" 2020-02-05 15:51:38 -08:00
DataFormatters [lldb/StringPrinter] Simplify StringPrinterBufferPointer, NFC 2020-02-03 15:57:33 -08:00
Expression [lldb][NFCI] Remove UserExpression::GetJITModule 2020-01-30 23:20:19 -08:00
Host [LLDB] Add missing declarations for linking to psapi 2020-02-03 12:59:11 +02:00
Initialization [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
Interpreter Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Plugins Revert "[LLDB] Add DynamicLoaderWasmDYLD plugin for WebAssembly debugging" 2020-02-05 16:22:19 -08:00
Symbol [lldb] Rename Type::ResolveClangType to Type::ResolveCompilerType 2020-02-04 15:40:48 -08:00
Target Revert "[lldb/Target] Add Assert StackFrame Recognizer" 2020-02-05 15:51:38 -08:00
Utility [lldb/Reproducers] Change the way we instrument void* arguments 2020-02-04 19:05:13 -08:00
CMakeLists.txt Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well. 2020-01-16 19:04:08 -05:00
lldb.cpp [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00