]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h
Merge LLDB 3.8
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Plugins / LanguageRuntime / CPlusPlus / ItaniumABI / ItaniumABILanguageRuntime.h
1 //===-- ItaniumABILanguageRuntime.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_ItaniumABILanguageRuntime_h_
11 #define liblldb_ItaniumABILanguageRuntime_h_
12
13 // C Includes
14 // C++ Includes
15 #include <vector>
16
17 // Other libraries and framework includes
18 // Project includes
19 #include "lldb/lldb-private.h"
20 #include "lldb/Breakpoint/BreakpointResolver.h"
21 #include "lldb/Target/LanguageRuntime.h"
22 #include "lldb/Target/CPPLanguageRuntime.h"
23 #include "lldb/Core/Value.h"
24
25 namespace lldb_private {
26     
27     class ItaniumABILanguageRuntime :
28     public lldb_private::CPPLanguageRuntime
29     {
30     public:
31         ~ItaniumABILanguageRuntime() override = default;
32         
33         //------------------------------------------------------------------
34         // Static Functions
35         //------------------------------------------------------------------
36         static void
37         Initialize();
38         
39         static void
40         Terminate();
41         
42         static lldb_private::LanguageRuntime *
43         CreateInstance (Process *process, lldb::LanguageType language);
44         
45         static lldb_private::ConstString
46         GetPluginNameStatic();
47
48         bool
49         IsVTableName(const char *name) override;
50         
51         bool
52         GetDynamicTypeAndAddress(ValueObject &in_value,
53                                  lldb::DynamicValueType use_dynamic,
54                                  TypeAndOrName &class_type_or_name,
55                                  Address &address,
56                                  Value::ValueType &value_type) override;
57         
58         TypeAndOrName
59         FixUpDynamicType(const TypeAndOrName& type_and_or_name,
60                          ValueObject& static_value) override;
61         
62         bool
63         CouldHaveDynamicValue(ValueObject &in_value) override;
64         
65         void
66         SetExceptionBreakpoints() override;
67         
68         void
69         ClearExceptionBreakpoints() override;
70         
71         bool
72         ExceptionBreakpointsAreSet() override;
73         
74         bool
75         ExceptionBreakpointsExplainStop(lldb::StopInfoSP stop_reason) override;
76
77         lldb::BreakpointResolverSP
78         CreateExceptionResolver(Breakpoint *bkpt, bool catch_bp, bool throw_bp) override;
79         
80         lldb::SearchFilterSP
81         CreateExceptionSearchFilter() override;
82
83         size_t
84         GetAlternateManglings(const ConstString &mangled, std::vector<ConstString> &alternates) override;
85
86         //------------------------------------------------------------------
87         // PluginInterface protocol
88         //------------------------------------------------------------------
89         lldb_private::ConstString
90         GetPluginName() override;
91         
92         uint32_t
93         GetPluginVersion() override;
94
95     protected:
96         lldb::BreakpointResolverSP
97         CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp, bool for_expressions);
98
99         lldb::BreakpointSP
100         CreateExceptionBreakpoint(bool catch_bp,
101                                   bool throw_bp,
102                                   bool for_expressions,
103                                   bool is_internal);
104         
105     private:
106         ItaniumABILanguageRuntime(Process *process) : lldb_private::CPPLanguageRuntime(process) { } // Call CreateInstance instead.
107         
108         lldb::BreakpointSP                              m_cxx_exception_bp_sp;
109     };
110     
111 } // namespace lldb_private
112
113 #endif // liblldb_ItaniumABILanguageRuntime_h_