diff options
| author | Zachary Turner <zturner@google.com> | 2014-11-05 22:16:28 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2014-11-05 22:16:28 +0000 |
| commit | 742346a22f591938ea8d0f10a9ae6135649d0057 (patch) | |
| tree | 981d81eca5886f59a75c88f9008db9c3956b7561 /lldb/source/Plugins/Process/Windows/LocalDebugDelegate.cpp | |
| parent | 1839abdabe24a8a5211e21c71769253d5cf69d1d (diff) | |
| download | bcm5719-llvm-742346a22f591938ea8d0f10a9ae6135649d0057.tar.gz bcm5719-llvm-742346a22f591938ea8d0f10a9ae6135649d0057.zip | |
Decouple ProcessWindows from the Windows debug driver thread.
In the llgs world, ProcessWindows will eventually go away and
we'll implement a different protocol. This patch decouples
ProcessWindows from the core debug loop so that this transition
will not be more difficult than it needs to be.
llvm-svn: 221405
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/LocalDebugDelegate.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Windows/LocalDebugDelegate.cpp | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Windows/LocalDebugDelegate.cpp b/lldb/source/Plugins/Process/Windows/LocalDebugDelegate.cpp new file mode 100644 index 00000000000..4f31b4317b3 --- /dev/null +++ b/lldb/source/Plugins/Process/Windows/LocalDebugDelegate.cpp @@ -0,0 +1,79 @@ +//===-- LocalDebugDelegate.cpp ----------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "LocalDebugDelegate.h" +#include "ProcessWindows.h" + +using namespace lldb; +using namespace lldb_private; + +LocalDebugDelegate::LocalDebugDelegate(ProcessSP process) + : m_process(process) +{ +} + +void +LocalDebugDelegate::OnProcessLaunched(const ProcessMessageCreateProcess &message) +{ + ((ProcessWindows &)*m_process).OnProcessLaunched(message); +} + +void +LocalDebugDelegate::OnExitProcess(const ProcessMessageExitProcess &message) +{ + ((ProcessWindows &)*m_process).OnExitProcess(message); +} + +void +LocalDebugDelegate::OnDebuggerConnected(const ProcessMessageDebuggerConnected &message) +{ + ((ProcessWindows &)*m_process).OnDebuggerConnected(message); +} + +void +LocalDebugDelegate::OnDebugException(const ProcessMessageException &message) +{ + ((ProcessWindows &)*m_process).OnDebugException(message); +} + +void +LocalDebugDelegate::OnCreateThread(const ProcessMessageCreateThread &message) +{ + ((ProcessWindows &)*m_process).OnCreateThread(message); +} + +void +LocalDebugDelegate::OnExitThread(const ProcessMessageExitThread &message) +{ + ((ProcessWindows &)*m_process).OnExitThread(message); +} + +void +LocalDebugDelegate::OnLoadDll(const ProcessMessageLoadDll &message) +{ + ((ProcessWindows &)*m_process).OnLoadDll(message); +} + +void +LocalDebugDelegate::OnUnloadDll(const ProcessMessageUnloadDll &message) +{ + ((ProcessWindows &)*m_process).OnUnloadDll(message); +} + +void +LocalDebugDelegate::OnDebugString(const ProcessMessageDebugString &message) +{ + ((ProcessWindows &)*m_process).OnDebugString(message); +} + +void +LocalDebugDelegate::OnDebuggerError(const ProcessMessageDebuggerError &message) +{ + ((ProcessWindows &)*m_process).OnDebuggerError(message); +} |

