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
..
2020-01-09 08:44:34 -08:00
2016-10-29 00:29:15 +00:00
2016-02-18 17:01:40 +00:00
2015-09-04 00:00:41 +00:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-30 21:57:23 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2019-05-03 10:03:28 +00:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-02-05 19:59:38 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-02-04 15:10:03 -08:00
2020-02-05 19:59:38 -08:00
2020-01-24 08:52:55 +01:00
2020-01-30 21:57:23 -08:00
2020-01-30 21:57:23 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-28 17:11:12 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-28 17:11:12 -08:00
2020-02-05 19:59:38 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2019-08-05 05:43:48 +00:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-28 23:25:25 +01:00
2020-01-24 08:52:55 +01:00
2020-02-05 19:59:38 -08:00
2020-01-30 21:57:23 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-02-04 19:05:13 -08:00
2020-02-05 19:59:38 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-30 21:57:23 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-02-03 10:50:38 -08:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-01-24 08:52:55 +01:00
2020-02-05 16:22:19 -08:00
2019-04-10 20:48:55 +00:00
2019-08-14 22:19:23 +00:00