aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorEwan Crawford <ewan@codeplay.com>2015-06-16 15:50:18 +0000
committerEwan Crawford <ewan@codeplay.com>2015-06-16 15:50:18 +0000
commitfab40d3911d3052085220c616820e9761ed9e32f (patch)
tree16a95e44cfad8e587dbcabd51b5029a7cbf17445 /llvm/lib/Object/MachOObjectFile.cpp
parentc81f450f1a71c2630fbb42671111507e811c753c (diff)
downloadllvm-fab40d3911d3052085220c616820e9761ed9e32f.zip
llvm-fab40d3911d3052085220c616820e9761ed9e32f.tar.gz
llvm-fab40d3911d3052085220c616820e9761ed9e32f.tar.bz2
Add Read Thread to GDBRemoteCommunication
In order to support asynchronous notifications for non-stop mode this patch adds a packet read thread. This is done by implementing AppendBytesToCache() from the communications class, which continually reads packets into a packet queue. To initialize this thread StartReadThread() must be called by the client, so since llgs and platform tools use the GBDRemoteCommunicatos code they must also call this function as well as ProcessGDBRemote. When the read thread detects an async notify packet it broadcasts this event, where the matching listener will be added in the next non-stop patch. Packets are now accessed by calling ReadPacket() which pops a packet from the queue, instead of using WaitForPacketWithTimeoutMicroSecondsNoLock() Reviewers: vharron, clayborg Subscribers: lldb-commits, labath, ted, domipheus, deepak2427 Differential Revision: http://reviews.llvm.org/D10085 llvm-svn: 239824
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions