llvm-project/lldb/unittests
Pavel Labath 8c92c899c6 Fix regression in jModulesInfo packet handling
The recent UUID cleanups exposed a bug in the parsing code for the
jModulesInfo response, which was passing wrong value for the second
argument to UUID::SetFromStringRef (it passed the length of the string,
whereas the correct value should be the number of decoded bytes we
expect to receive).

This was not picked up by tests, because they test with 16-byte uuids,
for which the function happens to do the right thing even if the length
does not match (if the length does not match, the function does not
update m_num_uuid_bytes member, but that member is already 16 to begin
with).

I fix that and add a test with 20-byte uuid to catch if this regresses.
I have also added more safeguards into the parsing code to fail if we
cannot parse the entire uuid field we recieve. While testing the latter
part, I noticed that the "negative" jModulesInfo tests were succeeding
because we were sending malformed json (and not because the json
contents was invalid), so I make those tests a bit more robuts as well.

llvm-svn: 320985
2017-12-18 14:31:44 +00:00
..
Breakpoint Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Core Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
Editline Move PseudoTerminal to the lldb_private namespace 2017-12-11 10:09:14 +00:00
Expression Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Host Move PseudoTerminal to the lldb_private namespace 2017-12-11 10:09:14 +00:00
Interpreter Add a StringList constructor to Args class 2017-12-11 14:22:30 +00:00
Language Enable parsing C++ names generated by lambda functions. 2017-07-13 19:48:43 +00:00
ObjectFile ObjectFileELF: Add support for compressed sections 2017-12-15 14:23:58 +00:00
Platform [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Process Fix regression in jModulesInfo packet handling 2017-12-18 14:31:44 +00:00
ScriptInterpreter Added new API to SBStructuredData class 2017-05-29 08:25:46 +00:00
Signals Make LLDB skip server-client roundtrip for signals that don't require any actions 2017-03-07 21:34:40 +00:00
Symbol Fix assertion in ClangASTContext 2017-11-30 10:16:54 +00:00
SymbolFile Fix netbsd, freebsd and osx builds for ArchSpec move 2017-11-13 16:47:37 +00:00
Target cmake + xcode: prevent gtests from using includes from project root 2017-10-03 21:20:18 +00:00
TestingSupport cmake + xcode: prevent gtests from using includes from project root 2017-10-03 21:20:18 +00:00
UnwindAssembly Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
Utility Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
debugserver [CMake] Need to set WITH_LOCKDOWN on debugserver target 2017-09-06 20:15:43 +00:00
tools llgs: Propagate the environment when launching the inferior from command line 2017-12-18 14:31:39 +00:00
CMakeLists.txt [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
gtest_common.h [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00