[Lldb-commits] [PATCH] D23884: Add StructuredData unit tests; move packet processing into delegate.
Todd Fiala via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 9 16:52:49 PDT 2016
tfiala added inline comments.
================
Comment at: unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp:38
@@ -36,2 +37,3 @@
unsigned stop_reply_called = 0;
+ std::vector<std::string> structured_data_packets;
----------------
Yeah, I did try a std::vector<llvm::StringRef> but that actually blew up since the backing storage did disappear.
For the rest of the interface, I was able to pipe through the llvm::StringRef, though, since that's all serial up to the JSON parser, which itself then makes a copy that it requires. So I think that's all for the better. Thanks for the suggestion!
https://reviews.llvm.org/D23884
More information about the lldb-commits
mailing list