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" |
| 18 | #include "lldb/Target/LanguageRuntime.h" |
| 19 | #include "lldb/Target/CPPLanguageRuntime.h" |
| 20 | #include "lldb/Core/Value.h" |
| 21 | |
| 22 | namespace lldb_private { |
| 23 | |
| 24 | class ItaniumABILanguageRuntime : |
| 25 | public lldb_private::CPPLanguageRuntime |
| 26 | { |
| 27 | public: |
| 28 | ~ItaniumABILanguageRuntime() { } |
| 29 | |
| 30 | virtual bool |
| 31 | IsVTableName (const char *name); |
| 32 | |
Jim Ingham | 78a685a | 2011-04-16 00:01:13 +0000 | [diff] [blame^] | 33 | virtual bool |
| 34 | GetDynamicValue (ValueObject &in_value, lldb::TypeSP &type_sp, Address &address); |
| 35 | |
| 36 | virtual bool |
| 37 | CouldHaveDynamicValue (ValueObject &in_value); |
| 38 | |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 39 | //------------------------------------------------------------------ |
| 40 | // Static Functions |
| 41 | //------------------------------------------------------------------ |
| 42 | static void |
| 43 | Initialize(); |
| 44 | |
| 45 | static void |
| 46 | Terminate(); |
| 47 | |
| 48 | static lldb_private::LanguageRuntime * |
| 49 | CreateInstance (Process *process, lldb::LanguageType language); |
| 50 | |
| 51 | //------------------------------------------------------------------ |
| 52 | // PluginInterface protocol |
| 53 | //------------------------------------------------------------------ |
| 54 | virtual const char * |
| 55 | GetPluginName(); |
| 56 | |
| 57 | virtual const char * |
| 58 | GetShortPluginName(); |
| 59 | |
| 60 | virtual uint32_t |
| 61 | GetPluginVersion(); |
| 62 | |
| 63 | virtual void |
Sean Callanan | f211510 | 2010-11-03 22:19:38 +0000 | [diff] [blame] | 64 | SetExceptionBreakpoints (); |
| 65 | |
| 66 | virtual void |
| 67 | ClearExceptionBreakpoints (); |
| 68 | |
| 69 | virtual bool |
| 70 | ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason); |
| 71 | |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 72 | protected: |
| 73 | private: |
| 74 | ItaniumABILanguageRuntime(Process *process) : lldb_private::CPPLanguageRuntime(process) { } // Call CreateInstance instead. |
Sean Callanan | f211510 | 2010-11-03 22:19:38 +0000 | [diff] [blame] | 75 | |
| 76 | lldb::BreakpointSP m_cxx_exception_bp_sp; |
| 77 | lldb::BreakpointSP m_cxx_exception_alloc_bp_sp; |
Jim Ingham | 2277701 | 2010-09-23 02:01:19 +0000 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | } // namespace lldb_private |
| 81 | |
| 82 | #endif // liblldb_ItaniumABILanguageRuntime_h_ |