blob: 421ac12725f6a8971c5e2907f43d79483d2984cd [file] [log] [blame]
Jim Ingham22777012010-09-23 02:01:19 +00001//===-- 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
22namespace 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 Ingham78a685a2011-04-16 00:01:13 +000033 virtual bool
34 GetDynamicValue (ValueObject &in_value, lldb::TypeSP &type_sp, Address &address);
35
36 virtual bool
37 CouldHaveDynamicValue (ValueObject &in_value);
38
Jim Ingham22777012010-09-23 02:01:19 +000039 //------------------------------------------------------------------
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 Callananf2115102010-11-03 22:19:38 +000064 SetExceptionBreakpoints ();
65
66 virtual void
67 ClearExceptionBreakpoints ();
68
69 virtual bool
70 ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason);
71
Jim Ingham22777012010-09-23 02:01:19 +000072 protected:
73 private:
74 ItaniumABILanguageRuntime(Process *process) : lldb_private::CPPLanguageRuntime(process) { } // Call CreateInstance instead.
Sean Callananf2115102010-11-03 22:19:38 +000075
76 lldb::BreakpointSP m_cxx_exception_bp_sp;
77 lldb::BreakpointSP m_cxx_exception_alloc_bp_sp;
Jim Ingham22777012010-09-23 02:01:19 +000078 };
79
80} // namespace lldb_private
81
82#endif // liblldb_ItaniumABILanguageRuntime_h_