diff options
author | Pavel Labath <labath@google.com> | 2016-08-18 08:30:03 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-08-18 08:30:03 +0000 |
commit | 4b6f9591d390c317084e63ed3e695c7a19c64543 (patch) | |
tree | 2d7a1151219b81ee322add30cadffd173d47cd77 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | |
parent | c233995b1e2b514a4366248827e904e3c37e7582 (diff) | |
download | bcm5719-llvm-4b6f9591d390c317084e63ed3e695c7a19c64543.tar.gz bcm5719-llvm-4b6f9591d390c317084e63ed3e695c7a19c64543.zip |
gdb-remote: Centralize thread specific packet handling
Summary:
Before this, each function had a copy of the code which handled appending of the thread suffix to
the packet (or using $Hg instead). I have moved that code into a single function and made
everyone else use that. The function takes the partial packet as a StreamString rvalue reference,
to avoid a copy and to remind the users that the packet will have undeterminate contents after
the call.
This also fixes the incorrect formatting of the QRestoreRegisterState packet in case thread
suffix is not supported.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D23604
llvm-svn: 279040
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h index 676386f34be..7b6e5e6784d 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h @@ -633,6 +633,10 @@ protected: void OnRunPacketSent(bool first) override; + PacketResult + SendThreadSpecificPacketAndWaitForResponse(lldb::tid_t tid, StreamString &&payload, + StringExtractorGDBRemote &response, bool send_async); + private: DISALLOW_COPY_AND_ASSIGN (GDBRemoteCommunicationClient); }; |