OSDN Git Service

[lldb/Reproducers] Include string length in string (de)serialization.
authorJonas Devlieghere <jonas@devlieghere.com>
Sat, 1 Feb 2020 00:17:28 +0000 (16:17 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Sat, 1 Feb 2020 01:40:49 +0000 (17:40 -0800)
commitc62ffb1b192daa66a8602d1511e04fb31809ffbe
tree794162cb5191a8ec29a8f561cd8fe619896474b7
parent98aaed2980d7cdece5918115166b6c2445368f0d
[lldb/Reproducers] Include string length in string (de)serialization.

This allows us to differentiate between an empty string and a nullptr.

(cherry picked from commit 53e206284fa715886020d6a5553bf791582850a3)
lldb/include/lldb/Utility/ReproducerInstrumentation.h
lldb/source/Utility/ReproducerInstrumentation.cpp
lldb/unittests/Utility/ReproducerInstrumentationTest.cpp