1 //===-- ItaniumABILanguageRuntime.h -----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ItaniumABILanguageRuntime_h_
11 #define liblldb_ItaniumABILanguageRuntime_h_
17 // Other libraries and framework 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"
25 namespace lldb_private {
27 class ItaniumABILanguageRuntime :
28 public lldb_private::CPPLanguageRuntime
31 ~ItaniumABILanguageRuntime() override = default;
33 //------------------------------------------------------------------
35 //------------------------------------------------------------------
42 static lldb_private::LanguageRuntime *
43 CreateInstance (Process *process, lldb::LanguageType language);
45 static lldb_private::ConstString
46 GetPluginNameStatic();
49 IsVTableName(const char *name) override;
52 GetDynamicTypeAndAddress(ValueObject &in_value,
53 lldb::DynamicValueType use_dynamic,
54 TypeAndOrName &class_type_or_name,
56 Value::ValueType &value_type) override;
59 FixUpDynamicType(const TypeAndOrName& type_and_or_name,
60 ValueObject& static_value) override;
63 CouldHaveDynamicValue(ValueObject &in_value) override;
66 SetExceptionBreakpoints() override;
69 ClearExceptionBreakpoints() override;
72 ExceptionBreakpointsAreSet() override;
75 ExceptionBreakpointsExplainStop(lldb::StopInfoSP stop_reason) override;
77 lldb::BreakpointResolverSP
78 CreateExceptionResolver(Breakpoint *bkpt, bool catch_bp, bool throw_bp) override;
81 CreateExceptionSearchFilter() override;
84 GetAlternateManglings(const ConstString &mangled, std::vector<ConstString> &alternates) override;
86 //------------------------------------------------------------------
87 // PluginInterface protocol
88 //------------------------------------------------------------------
89 lldb_private::ConstString
90 GetPluginName() override;
93 GetPluginVersion() override;
96 lldb::BreakpointResolverSP
97 CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp, bool for_expressions);
100 CreateExceptionBreakpoint(bool catch_bp,
102 bool for_expressions,
106 ItaniumABILanguageRuntime(Process *process) : lldb_private::CPPLanguageRuntime(process) { } // Call CreateInstance instead.
108 lldb::BreakpointSP m_cxx_exception_bp_sp;
111 } // namespace lldb_private
113 #endif // liblldb_ItaniumABILanguageRuntime_h_