diff options
author | Zachary Turner <zturner@google.com> | 2014-11-12 19:31:39 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-11-12 19:31:39 +0000 |
commit | d6a7b63f26ece27e78b05609b2ad56aba43aef8f (patch) | |
tree | 9d71573a2fa121a409392d23aff584d853ce03d5 /lldb/source/Plugins/Process/Windows/IDebugDelegate.h | |
parent | b5363110c7a550dccc9d163ae49c2ffd4fc490e2 (diff) | |
download | bcm5719-llvm-d6a7b63f26ece27e78b05609b2ad56aba43aef8f.tar.gz bcm5719-llvm-d6a7b63f26ece27e78b05609b2ad56aba43aef8f.zip |
[ProcessWindows] Simplify the DebugDelegate interface.
Due to a previous multi-threaded design involving message
passing, we used message classes to pass event information
to the delegate. Since the multi-threaded design has gone
away, we simplify this by passing event arguments as direct
function parameters, which is more clear and easier to
understand.
llvm-svn: 221806
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/IDebugDelegate.h')
-rw-r--r-- | lldb/source/Plugins/Process/Windows/IDebugDelegate.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lldb/source/Plugins/Process/Windows/IDebugDelegate.h b/lldb/source/Plugins/Process/Windows/IDebugDelegate.h index d5db044a0e8..3e7b2167cb6 100644 --- a/lldb/source/Plugins/Process/Windows/IDebugDelegate.h +++ b/lldb/source/Plugins/Process/Windows/IDebugDelegate.h @@ -11,9 +11,12 @@ #define liblldb_Plugins_Process_Windows_IDebugDelegate_H_ #include "ForwardDecl.h" +#include <string> namespace lldb_private { +class Error; +class HostThread; //---------------------------------------------------------------------- // IDebugDelegate @@ -26,15 +29,15 @@ class IDebugDelegate public: virtual ~IDebugDelegate() {} - virtual void OnExitProcess(const ProcessMessageExitProcess &message) = 0; - virtual void OnDebuggerConnected(const ProcessMessageDebuggerConnected &message) = 0; - virtual ExceptionResult OnDebugException(const ProcessMessageException &message) = 0; - virtual void OnCreateThread(const ProcessMessageCreateThread &message) = 0; - virtual void OnExitThread(const ProcessMessageExitThread &message) = 0; - virtual void OnLoadDll(const ProcessMessageLoadDll &message) = 0; - virtual void OnUnloadDll(const ProcessMessageUnloadDll &message) = 0; - virtual void OnDebugString(const ProcessMessageDebugString &message) = 0; - virtual void OnDebuggerError(const ProcessMessageDebuggerError &message) = 0; + virtual void OnExitProcess(uint32_t exit_code) = 0; + virtual void OnDebuggerConnected() = 0; + virtual ExceptionResult OnDebugException(bool first_chance, const ExceptionRecord &record) = 0; + virtual void OnCreateThread(const HostThread &thread) = 0; + virtual void OnExitThread(const HostThread &thread) = 0; + virtual void OnLoadDll() = 0; + virtual void OnUnloadDll() = 0; + virtual void OnDebugString(const std::string &string) = 0; + virtual void OnDebuggerError(const Error &error, uint32_t type) = 0; }; } |