Adrian McCarthy | 27785dd | 2015-08-24 16:00:51 +0000 | [diff] [blame] | 1 | //===-- LocalDebugDelegate.cpp ----------------------------------*- C++ -*-===//
|
| 2 | //
|
| 3 | // The LLVM Compiler Infrastructure
|
| 4 | //
|
| 5 | // This file is distributed under the University of Illinois Open Source
|
| 6 | // License. See LICENSE.TXT for details.
|
| 7 | //
|
| 8 | //===----------------------------------------------------------------------===//
|
| 9 |
|
| 10 | #include "LocalDebugDelegate.h"
|
| 11 | #include "ProcessWindows.h"
|
| 12 |
|
| 13 | using namespace lldb;
|
| 14 | using namespace lldb_private;
|
| 15 |
|
| 16 | LocalDebugDelegate::LocalDebugDelegate(ProcessSP process)
|
| 17 | : m_process(process)
|
| 18 | {
|
| 19 | }
|
| 20 |
|
| 21 | void
|
| 22 | LocalDebugDelegate::OnExitProcess(uint32_t exit_code)
|
| 23 | {
|
| 24 | ((ProcessWindows &)*m_process).OnExitProcess(exit_code);
|
| 25 | }
|
| 26 |
|
| 27 | void
|
| 28 | LocalDebugDelegate::OnDebuggerConnected(lldb::addr_t image_base)
|
| 29 | {
|
| 30 | ((ProcessWindows &)*m_process).OnDebuggerConnected(image_base);
|
| 31 | }
|
| 32 |
|
| 33 | ExceptionResult
|
| 34 | LocalDebugDelegate::OnDebugException(bool first_chance, const ExceptionRecord &record)
|
| 35 | {
|
| 36 | return ((ProcessWindows &)*m_process).OnDebugException(first_chance, record);
|
| 37 | }
|
| 38 |
|
| 39 | void
|
| 40 | LocalDebugDelegate::OnCreateThread(const HostThread &thread)
|
| 41 | {
|
| 42 | ((ProcessWindows &)*m_process).OnCreateThread(thread);
|
| 43 | }
|
| 44 |
|
| 45 | void
|
| 46 | LocalDebugDelegate::OnExitThread(lldb::tid_t thread_id, uint32_t exit_code)
|
| 47 | {
|
| 48 | ((ProcessWindows &)*m_process).OnExitThread(thread_id, exit_code);
|
| 49 | }
|
| 50 |
|
| 51 | void
|
| 52 | LocalDebugDelegate::OnLoadDll(const lldb_private::ModuleSpec &module_spec, lldb::addr_t module_addr)
|
| 53 | {
|
| 54 | ((ProcessWindows &)*m_process).OnLoadDll(module_spec, module_addr);
|
| 55 | }
|
| 56 |
|
| 57 | void
|
| 58 | LocalDebugDelegate::OnUnloadDll(lldb::addr_t module_addr)
|
| 59 | {
|
| 60 | ((ProcessWindows &)*m_process).OnUnloadDll(module_addr);
|
| 61 | }
|
| 62 |
|
| 63 | void
|
| 64 | LocalDebugDelegate::OnDebugString(const std::string &string)
|
| 65 | {
|
| 66 | ((ProcessWindows &)*m_process).OnDebugString(string);
|
| 67 | }
|
| 68 |
|
| 69 | void
|
| 70 | LocalDebugDelegate::OnDebuggerError(const Error &error, uint32_t type)
|
| 71 | {
|
| 72 | ((ProcessWindows &)*m_process).OnDebuggerError(error, type);
|
| 73 | }
|