llvm-project/lldb/unittests
Pavel Labath 7da84753a3 Handle O reply packets during qRcmd
Summary:
Gdb servers like openocd may send many $O reply packets for the client to output during a qRcmd command sequence.  Currently, lldb interprets the first O packet as an unexpected response.  Besides generating no output, this causes lldb to get out of sync with future commands because it continues reading O packets from the first command as response to subsequent commands.

This patch handles any O packets during an qRcmd, treating the first non-O packet as the true response.

Preliminary discussion at http://lists.llvm.org/pipermail/lldb-dev/2018-January/013078.html

Reviewers: clayborg

Reviewed By: clayborg

Subscribers: labath, lldb-commits

Differential Revision: https://reviews.llvm.org/D41745
Patch by Owen Shaw <llvm@owenpshaw.net>

llvm-svn: 322190
2018-01-10 14:39:08 +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 Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +00:00
Interpreter Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +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 Handle O reply packets during qRcmd 2018-01-10 14:39:08 +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 Update failing PDB unit tests that are searching for symbols by regex 2017-12-28 06:29:59 +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 Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +00:00
debugserver [CMake] Need to set WITH_LOCKDOWN on debugserver target 2017-09-06 20:15:43 +00:00
tools Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +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