[Reproducer] Move GDB Remote Packet into Utility. (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 13 Sep 2019 23:14:10 +0000 (23:14 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 13 Sep 2019 23:14:10 +0000 (23:14 +0000)
commitff5225bfb634369e907c889e16cbee36b260362a
tree139f9eddc776b4dce949daaff7b9e4542f281ffa
parentae530c5c80048ad3802cb1ed0fde77b6adf0fe57
[Reproducer] Move GDB Remote Packet into Utility. (NFC)

To support dumping the reproducer's GDB remote packets, we need the
(de)serialization logic to live in Utility rather than the GDB remote
plugin. This patch renames StreamGDBRemote to GDBRemote and moves the
relevant packet code there.

Its uses in the GDBRemoteCommunicationHistory and the
GDBRemoteCommunicationReplayServer are updated as well.

Differential revision: https://reviews.llvm.org/D67523

llvm-svn: 371907
17 files changed:
lldb/include/lldb/Utility/GDBRemote.h [new file with mode: 0644]
lldb/include/lldb/Utility/Reproducer.h
lldb/include/lldb/Utility/StreamGDBRemote.h [deleted file]
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
lldb/source/Utility/CMakeLists.txt
lldb/source/Utility/GDBRemote.cpp [new file with mode: 0644]
lldb/source/Utility/StreamGDBRemote.cpp [deleted file]
lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp