diff options
author | Pavel Labath <labath@google.com> | 2016-08-18 12:32:41 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-08-18 12:32:41 +0000 |
commit | 27402d2a12fad5e347879e23eb91ba63778b3360 (patch) | |
tree | 411a7a375b257968dcbadac3e0df0874a7e70e02 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 2fc1985db3ea6f60156d9fb4b969cc05636586c0 (diff) | |
download | llvm-27402d2a12fad5e347879e23eb91ba63778b3360.zip llvm-27402d2a12fad5e347879e23eb91ba63778b3360.tar.gz llvm-27402d2a12fad5e347879e23eb91ba63778b3360.tar.bz2 |
Move QSyncThreadState packet generation to the gdb-remote client
llvm-svn: 279057
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index 7600c13..fc0cf6e 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -3582,9 +3582,22 @@ GDBRemoteCommunicationClient::RestoreRegisterState (lldb::tid_t tid, uint32_t sa } bool -GDBRemoteCommunicationClient::GetModuleInfo (const FileSpec& module_file_spec, - const lldb_private::ArchSpec& arch_spec, - ModuleSpec &module_spec) +GDBRemoteCommunicationClient::SyncThreadState(lldb::tid_t tid) +{ + if (!GetSyncThreadStateSupported()) + return false; + + StreamString packet; + StringExtractorGDBRemote response; + packet.Printf("QSyncThreadState:%4.4" PRIx64 ";", tid); + return SendPacketAndWaitForResponse(packet.GetString(), response, false) == + GDBRemoteCommunication::PacketResult::Success && + response.IsOKResponse(); +} + +bool +GDBRemoteCommunicationClient::GetModuleInfo(const FileSpec &module_file_spec, const lldb_private::ArchSpec &arch_spec, + ModuleSpec &module_spec) { if (!m_supports_qModuleInfo) return false; |