llvm-project/lldb/unittests
Todd Fiala fcdb1af655 async structured data packet handling improvements
This change does the following:
* Changes the signature for the continuation delegate method that handles
  async structured data from accepting an already-parsed structured data
  element to taking just the packet contents.
* Moves the conversion of the JSON-async: packet contents from
  GDBRemoteClientBase to the continuation delegate method.
* Adds a new unit test for verifying that the $JSON-asyc: packets get
  decoded and that the decoded packets get forwarded on to the delegate
  for further processing. Thanks to Pavel for making that whole section of
  code easily unit testable!
* Tightens up the packet verification on reception of a $JSON-async:
  packet contents. The code prior to this change is susceptible to a
  segfault if a packet is carefully crafted that starts with $J but
  has a total length shorter than the length of "$JSON-async:".

Reviewers: labath, clayborg, zturner

Differential Revision: https://reviews.llvm.org/D23884

llvm-svn: 281121
2016-09-10 00:06:29 +00:00
..
Core *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Editline *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Expression *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Host Fix unittest compilation on windows 2016-09-07 08:46:50 +00:00
Interpreter *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Language *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Process async structured data packet handling improvements 2016-09-10 00:06:29 +00:00
ScriptInterpreter *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Symbol *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SymbolFile *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Utility *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CMakeLists.txt Fix parsing of complicated C++ names 2016-08-18 08:21:38 +00:00
gtest_common.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00