blob: 07f2969d5a95c40ef4cd8e51ea75b15144f1c389 [file] [log] [blame]
Adrian McCarthy27785dd2015-08-24 16:00:51 +00001//===-- 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
13using namespace lldb;
14using namespace lldb_private;
15
16LocalDebugDelegate::LocalDebugDelegate(ProcessSP process)
17 : m_process(process)
18{
19}
20
21void
22LocalDebugDelegate::OnExitProcess(uint32_t exit_code)
23{
24 ((ProcessWindows &)*m_process).OnExitProcess(exit_code);
25}
26
27void
28LocalDebugDelegate::OnDebuggerConnected(lldb::addr_t image_base)
29{
30 ((ProcessWindows &)*m_process).OnDebuggerConnected(image_base);
31}
32
33ExceptionResult
34LocalDebugDelegate::OnDebugException(bool first_chance, const ExceptionRecord &record)
35{
36 return ((ProcessWindows &)*m_process).OnDebugException(first_chance, record);
37}
38
39void
40LocalDebugDelegate::OnCreateThread(const HostThread &thread)
41{
42 ((ProcessWindows &)*m_process).OnCreateThread(thread);
43}
44
45void
46LocalDebugDelegate::OnExitThread(lldb::tid_t thread_id, uint32_t exit_code)
47{
48 ((ProcessWindows &)*m_process).OnExitThread(thread_id, exit_code);
49}
50
51void
52LocalDebugDelegate::OnLoadDll(const lldb_private::ModuleSpec &module_spec, lldb::addr_t module_addr)
53{
54 ((ProcessWindows &)*m_process).OnLoadDll(module_spec, module_addr);
55}
56
57void
58LocalDebugDelegate::OnUnloadDll(lldb::addr_t module_addr)
59{
60 ((ProcessWindows &)*m_process).OnUnloadDll(module_addr);
61}
62
63void
64LocalDebugDelegate::OnDebugString(const std::string &string)
65{
66 ((ProcessWindows &)*m_process).OnDebugString(string);
67}
68
69void
70LocalDebugDelegate::OnDebuggerError(const Error &error, uint32_t type)
71{
72 ((ProcessWindows &)*m_process).OnDebuggerError(error, type);
73}