llvm-project/lldb/unittests/Process/gdb-remote
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
..
CMakeLists.txt Simplify the gdb-remote unit tests 2017-06-22 15:54:21 +00:00
GDBRemoteClientBaseTest.cpp Handle O reply packets during qRcmd 2018-01-10 14:39:08 +00:00
GDBRemoteCommunicationClientTest.cpp Fix regression in jModulesInfo packet handling 2017-12-18 14:31:44 +00:00
GDBRemoteTestUtils.cpp Simplify the gdb-remote unit tests 2017-06-22 15:54:21 +00:00
GDBRemoteTestUtils.h Simplify the gdb-remote unit tests 2017-06-22 15:54:21 +00:00