summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/MacOSX-Kernel
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-11-30 11:09:47 +0000
committerPavel Labath <labath@google.com>2016-11-30 11:09:47 +0000
commitfafff0c569842e890938acc68fa172ab9f919c25 (patch)
treefc633bbbbcd28922d713afbfa23ae18524ea5c2c /lldb/source/Plugins/Process/MacOSX-Kernel
parentd35031e1e5b1dbe31f960a1054f139f7ba2c3f35 (diff)
downloadbcm5719-llvm-fafff0c569842e890938acc68fa172ab9f919c25.tar.gz
bcm5719-llvm-fafff0c569842e890938acc68fa172ab9f919c25.zip
Fix OSX build for r288238
llvm-svn: 288239
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel')
-rw-r--r--lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
index e3842e162e6..bc738d748a1 100644
--- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
+++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
@@ -796,7 +796,7 @@ void *ProcessKDP::AsyncThread(void *arg) {
log->Printf("ProcessKDP::AsyncThread (pid = %" PRIu64
") listener.WaitForEvent (NULL, event_sp)...",
pid);
- if (listener_sp->WaitForEvent(std::chrono::microseconds(0), event_sp)) {
+ if (listener_sp->GetEvent(event_sp, llvm::None)) {
uint32_t event_type = event_sp->GetType();
if (log)
log->Printf("ProcessKDP::AsyncThread (pid = %" PRIu64
@@ -831,7 +831,8 @@ void *ProcessKDP::AsyncThread(void *arg) {
// Check to see if we are supposed to exit. There is no way to
// interrupt a running kernel, so all we can do is wait for an
// exception or detach...
- if (listener_sp->GetNextEvent(event_sp)) {
+ if (listener_sp->GetEvent(event_sp,
+ std::chrono::microseconds(0))) {
// We got an event, go through the loop again
event_type = event_sp->GetType();
}
OpenPOWER on IntegriCloud