Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 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 | // Other libraries and framework includes |
| 16 | // Project includes |
| 17 | #include "lldb/lldb-private.h" |
Jim Ingham | 133e0fb | 2012-03-03 02:05:11 +0000 | [diff] [blame] | 18 | #include "lldb/Breakpoint/BreakpointResolver.h" |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 19 | #include "lldb/Target/LanguageRuntime.h" |
| 20 | #include "lldb/Target/CPPLanguageRuntime.h" |
| 21 | #include "lldb/Core/Value.h" |
| 22 | |
Siva Chandra | 0f404e0 | 2015-04-09 18:48:34 +0000 | [diff] [blame^] | 23 | #include <map> |
| 24 | #include <vector> |
| 25 | |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 26 | namespace lldb_private { |
| 27 | |
| 28 | class ItaniumABILanguageRuntime : |
| 29 | public lldb_private::CPPLanguageRuntime |
| 30 | { |
| 31 | public: |
| 32 | ~ItaniumABILanguageRuntime() { } |
| 33 | |
| 34 | virtual bool |
| 35 | IsVTableName (const char *name); |
| 36 | |
Jim Ingham | 78a685a | 2011-04-16 00:01:13 +0000 | [diff] [blame] | 37 | virtual bool |
Jim Ingham | 2837b76 | 2011-05-04 03:43:18 +0000 | [diff] [blame] | 38 | GetDynamicTypeAndAddress (ValueObject &in_value, |
| 39 | lldb::DynamicValueType use_dynamic, |
| 40 | TypeAndOrName &class_type_or_name, |
| 41 | Address &address); |
Jim Ingham | 78a685a | 2011-04-16 00:01:13 +0000 | [diff] [blame] | 42 | |
| 43 | virtual bool |
| 44 | CouldHaveDynamicValue (ValueObject &in_value); |
| 45 | |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 46 | //------------------------------------------------------------------ |
| 47 | // Static Functions |
| 48 | //------------------------------------------------------------------ |
| 49 | static void |
| 50 | Initialize(); |
| 51 | |
| 52 | static void |
| 53 | Terminate(); |
| 54 | |
| 55 | static lldb_private::LanguageRuntime * |
| 56 | CreateInstance (Process *process, lldb::LanguageType language); |
| 57 | |
Greg Clayton | 57abc5d | 2013-05-10 21:47:16 +0000 | [diff] [blame] | 58 | static lldb_private::ConstString |
| 59 | GetPluginNameStatic(); |
| 60 | |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 61 | //------------------------------------------------------------------ |
| 62 | // PluginInterface protocol |
| 63 | //------------------------------------------------------------------ |
Greg Clayton | 57abc5d | 2013-05-10 21:47:16 +0000 | [diff] [blame] | 64 | virtual lldb_private::ConstString |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 65 | GetPluginName(); |
| 66 | |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 67 | virtual uint32_t |
| 68 | GetPluginVersion(); |
| 69 | |
| 70 | virtual void |
Sean Callanan | f211510 | 2010-11-03 22:19:38 +0000 | [diff] [blame] | 71 | SetExceptionBreakpoints (); |
| 72 | |
| 73 | virtual void |
| 74 | ClearExceptionBreakpoints (); |
| 75 | |
| 76 | virtual bool |
Jim Ingham | 6fbc48b | 2013-11-07 00:11:47 +0000 | [diff] [blame] | 77 | ExceptionBreakpointsAreSet (); |
| 78 | |
| 79 | virtual bool |
Sean Callanan | f211510 | 2010-11-03 22:19:38 +0000 | [diff] [blame] | 80 | ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason); |
Greg Clayton | a4f4223 | 2013-03-11 20:02:03 +0000 | [diff] [blame] | 81 | |
Jim Ingham | 219ba19 | 2012-03-05 04:47:34 +0000 | [diff] [blame] | 82 | virtual lldb::BreakpointResolverSP |
| 83 | CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp); |
Greg Clayton | a4f4223 | 2013-03-11 20:02:03 +0000 | [diff] [blame] | 84 | |
Greg Clayton | bff7825 | 2013-03-11 18:42:51 +0000 | [diff] [blame] | 85 | virtual lldb::SearchFilterSP |
| 86 | CreateExceptionSearchFilter (); |
| 87 | |
Siva Chandra | 0f404e0 | 2015-04-09 18:48:34 +0000 | [diff] [blame^] | 88 | virtual size_t |
| 89 | GetAlternateManglings(const ConstString &mangled, std::vector<ConstString> &alternates); |
| 90 | |
Greg Clayton | a4f4223 | 2013-03-11 20:02:03 +0000 | [diff] [blame] | 91 | protected: |
| 92 | |
Greg Clayton | bff7825 | 2013-03-11 18:42:51 +0000 | [diff] [blame] | 93 | lldb::BreakpointResolverSP |
Jim Ingham | f0fd55e | 2012-03-06 18:10:38 +0000 | [diff] [blame] | 94 | CreateExceptionResolver (Breakpoint *bkpt, bool catch_bp, bool throw_bp, bool for_expressions); |
| 95 | |
Greg Clayton | bff7825 | 2013-03-11 18:42:51 +0000 | [diff] [blame] | 96 | lldb::BreakpointSP |
| 97 | CreateExceptionBreakpoint(bool catch_bp, |
| 98 | bool throw_bp, |
| 99 | bool for_expressions, |
| 100 | bool is_internal); |
| 101 | |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 102 | private: |
| 103 | ItaniumABILanguageRuntime(Process *process) : lldb_private::CPPLanguageRuntime(process) { } // Call CreateInstance instead. |
Sean Callanan | f211510 | 2010-11-03 22:19:38 +0000 | [diff] [blame] | 104 | |
| 105 | lldb::BreakpointSP m_cxx_exception_bp_sp; |
Siva Chandra | 0f404e0 | 2015-04-09 18:48:34 +0000 | [diff] [blame^] | 106 | |
| 107 | static std::map<ConstString, std::vector<ConstString> > s_alternate_mangling_prefixes; |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 108 | }; |
| 109 | |
| 110 | } // namespace lldb_private |
| 111 | |
| 112 | #endif // liblldb_ItaniumABILanguageRuntime_h_ |