]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - source/Plugins/Process/Windows/MiniDump/ProcessWinMiniDump.h
Vendor import of lldb release_39 branch r276489:
[FreeBSD/FreeBSD.git] / source / Plugins / Process / Windows / MiniDump / ProcessWinMiniDump.h
1 //===-- ProcessWinMiniDump.h ------------------------------------*- 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 #ifndef liblldb_ProcessWinMiniDump_h_
11 #define liblldb_ProcessWinMiniDump_h_
12
13 #include <list>
14 #include <vector>
15
16 #include "lldb/Core/ConstString.h"
17 #include "lldb/Core/Error.h"
18 #include "lldb/Target/Process.h"
19
20 #include "Plugins/Process/Windows/Common/ProcessWindows.h"
21
22 struct ThreadData;
23
24 class ProcessWinMiniDump : public lldb_private::ProcessWindows
25 {
26   public:
27     static lldb::ProcessSP
28     CreateInstance (lldb::TargetSP target_sp,
29                     lldb::ListenerSP listener_sp,
30                     const lldb_private::FileSpec *crash_file_path);
31
32     static void
33     Initialize();
34
35     static void
36     Terminate();
37
38     static lldb_private::ConstString
39     GetPluginNameStatic();
40
41     static const char *
42     GetPluginDescriptionStatic();
43
44     ProcessWinMiniDump(lldb::TargetSP target_sp,
45                        lldb::ListenerSP listener_sp,
46                        const lldb_private::FileSpec &core_file);
47
48     virtual
49     ~ProcessWinMiniDump();
50
51     bool
52     CanDebug(lldb::TargetSP target_sp, bool plugin_specified_by_name) override;
53
54     lldb_private::Error
55     DoLoadCore() override;
56
57     lldb_private::DynamicLoader *
58     GetDynamicLoader() override;
59
60     lldb_private::ConstString
61     GetPluginName() override;
62
63     uint32_t
64     GetPluginVersion() override;
65
66     lldb_private::Error
67     DoDestroy() override;
68
69     void
70     RefreshStateAfterStop() override;
71
72     bool
73     IsAlive() override;
74
75     bool
76     WarnBeforeDetach () const override;
77
78     size_t
79     ReadMemory(lldb::addr_t addr, void *buf, size_t size, lldb_private::Error &error) override;
80
81     size_t
82     DoReadMemory(lldb::addr_t addr, void *buf, size_t size, lldb_private::Error &error) override;
83
84     lldb_private::ArchSpec
85     GetArchitecture();
86
87     lldb_private::Error
88     GetMemoryRegionInfo(lldb::addr_t load_addr, lldb_private::MemoryRegionInfo &range_info) override;
89
90   protected:
91     void
92     Clear();
93
94     bool
95     UpdateThreadList(lldb_private::ThreadList &old_thread_list,
96                      lldb_private::ThreadList &new_thread_list) override;
97
98   private:
99       // Keep Windows-specific types out of this header.
100       class Impl;
101       std::unique_ptr<Impl> m_impl_up;
102 };
103
104 #endif  // liblldb_ProcessWinMiniDump_h_