summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-08-30 13:56:11 +0000
committerPavel Labath <labath@google.com>2016-08-30 13:56:11 +0000
commit5c95ee4dd87f34b4564e6eada2e8e4b70834db68 (patch)
tree863645a416ed01b5f4f07962a535d3ad172ce13d /lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h
parentfdc628f7219f6974c1693e0d40fbdae79ea3a282 (diff)
downloadbcm5719-llvm-5c95ee4dd87f34b4564e6eada2e8e4b70834db68.tar.gz
bcm5719-llvm-5c95ee4dd87f34b4564e6eada2e8e4b70834db68.zip
Revert "gdb-remote: Make the sequence mutex non-recursive"
This reverts commit r279725 as it breaks "dynamic register size" feature of mips. llvm-svn: 280088
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h
index a3bcc865ac6..684ef3e80d1 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h
@@ -73,7 +73,7 @@ public:
Lock(GDBRemoteClientBase &comm, bool interrupt);
~Lock();
- explicit operator bool() const { return m_acquired; }
+ explicit operator bool() { return m_acquired; }
// Whether we had to interrupt the continue thread to acquire the connection.
bool
@@ -83,7 +83,7 @@ public:
}
private:
- std::unique_lock<std::mutex> m_async_lock;
+ std::unique_lock<std::recursive_mutex> m_async_lock;
GDBRemoteClientBase &m_comm;
bool m_acquired;
bool m_did_interrupt;
@@ -94,7 +94,7 @@ public:
protected:
PacketResult
- SendPacketAndWaitForResponse(llvm::StringRef payload, StringExtractorGDBRemote &response, const Lock &lock);
+ SendPacketAndWaitForResponseNoLock(llvm::StringRef payload, StringExtractorGDBRemote &response);
virtual void
OnRunPacketSent(bool first);
@@ -126,7 +126,7 @@ private:
// This handles the synchronization between individual async threads. For now they just use a
// simple mutex.
- std::mutex m_async_mutex;
+ std::recursive_mutex m_async_mutex;
bool
ShouldStop(const UnixSignals &signals, StringExtractorGDBRemote &response);
OpenPOWER on IntegriCloud