summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-08-09 12:04:46 +0000
committerPavel Labath <labath@google.com>2016-08-09 12:04:46 +0000
commit8c1b6bd7d2ac9c4a1a017405959185978204c5d5 (patch)
treeec8abb4d98f22b4248087064de8b6532305a7b7b /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
parent0e0e07f436f939b844ada9671f7ce38e62ecb69b (diff)
downloadbcm5719-llvm-8c1b6bd7d2ac9c4a1a017405959185978204c5d5.tar.gz
bcm5719-llvm-8c1b6bd7d2ac9c4a1a017405959185978204c5d5.zip
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
index 23568cd4b36..13325410e48 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
@@ -114,21 +114,12 @@ public:
CalculcateChecksum (const char *payload,
size_t payload_length);
- bool
- GetSequenceMutex(std::unique_lock<std::recursive_mutex> &lock, const char *failure_message = nullptr);
-
PacketType
CheckForPacket (const uint8_t *src,
size_t src_len,
StringExtractorGDBRemote &packet);
bool
- IsRunning() const
- {
- return m_public_is_running.GetValue();
- }
-
- bool
GetSendAcks ()
{
return m_send_acks;
@@ -285,13 +276,6 @@ protected:
uint32_t m_packet_timeout;
uint32_t m_echo_number;
LazyBool m_supports_qEcho;
-#ifdef ENABLE_MUTEX_ERROR_CHECKING
-#error TrackingMutex is no longer supported
-#else
- std::recursive_mutex m_sequence_mutex; // Restrict access to sending/receiving packets to a single thread at a time
-#endif
- Predicate<bool> m_public_is_running;
- Predicate<bool> m_private_is_running;
History m_history;
bool m_send_acks;
bool m_is_platform; // Set to true if this class represents a platform,
@@ -301,10 +285,6 @@ protected:
CompressionType m_compression_type;
PacketResult
- SendPacket (const char *payload,
- size_t payload_length);
-
- PacketResult
SendPacketNoLock (const char *payload,
size_t payload_length);
@@ -321,9 +301,6 @@ protected:
bool sync_on_timeout);
bool
- WaitForNotRunningPrivate(const std::chrono::microseconds &timeout);
-
- bool
CompressionIsEnabled ()
{
return m_compression_type != CompressionType::None;
OpenPOWER on IntegriCloud