Reapply "Rewrite gdb-remote's SendContinuePacketAndWaitForResponse"
authorPavel Labath <labath@google.com>
Tue, 9 Aug 2016 12:04:46 +0000 (12:04 +0000)
committerPavel Labath <labath@google.com>
Tue, 9 Aug 2016 12:04:46 +0000 (12:04 +0000)
commit8c1b6bd7d2ac9c4a1a017405959185978204c5d5
treeec8abb4d98f22b4248087064de8b6532305a7b7b
parent0e0e07f436f939b844ada9671f7ce38e62ecb69b
Reapply "Rewrite gdb-remote's SendContinuePacketAndWaitForResponse"

Resumbitting the commit after fixing the following problems:
- broken unit tests on windows: incorrect gtest usage on my part (TEST vs. TEST_F)
- the new code did not correctly handle the case where we went to interrupt the process, but it
  stopped due to a different reason - the interrupt request would remain queued and would
  interfere with the following "continue". I also added a unit test for this case.

This reapplies r277156 and r277139.

llvm-svn: 278118
16 files changed:
lldb/lldb.xcodeproj/project.pbxproj
lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp [new file with mode: 0644]
lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h [new file with mode: 0644]
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
lldb/source/Utility/StringExtractor.cpp
lldb/unittests/CMakeLists.txt
lldb/unittests/Process/CMakeLists.txt [new file with mode: 0644]
lldb/unittests/Process/gdb-remote/CMakeLists.txt [new file with mode: 0644]
lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp [new file with mode: 0644]