OSDN Git Service

[lldb/Reproducers] Support reproducers for PlatformRemoteGDBServer
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 20 May 2020 16:10:20 +0000 (09:10 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 20 May 2020 16:18:57 +0000 (09:18 -0700)
commitd57b80e13ebd140f0b9acefa02423e1bc4a835d4
tree0c7f73f1abd7a428b65ec55a5e070bd36fd3cc52
parent071358e08224b9971f6b7fc49a5e014a5662187c
[lldb/Reproducers] Support reproducers for PlatformRemoteGDBServer

Add reproducer support to PlatformRemoteGDBServer. The logic is
essentially the same as for ProcessGDBRemote. During capture we record
the GDB packets and during replay we connect to a replay server.

This fixes TestPlatformClient.py when run form a reproducer.

Differential Revision: https://reviews.llvm.org/D80224
lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h