blob: d9d26008761216c3f54f5ff2234efba8bb6af47d [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
Jim Ingham2837b762011-05-04 03:43:18 +000034 GetDynamicTypeAndAddress (ValueObject &in_value,
35 lldb::DynamicValueType use_dynamic,
36 TypeAndOrName &class_type_or_name,
37 Address &address);
Jim Ingham78a685a2011-04-16 00:01:13 +000038
39 virtual bool
40 CouldHaveDynamicValue (ValueObject &in_value);
41
Jim Ingham22777012010-09-23 02:01:19 +000042 //------------------------------------------------------------------
43 // Static Functions
44 //------------------------------------------------------------------
45 static void
46 Initialize();
47
48 static void
49 Terminate();
50
51 static lldb_private::LanguageRuntime *
52 CreateInstance (Process *process, lldb::LanguageType language);
53
54 //------------------------------------------------------------------
55 // PluginInterface protocol
56 //------------------------------------------------------------------
57 virtual const char *
58 GetPluginName();
59
60 virtual const char *
61 GetShortPluginName();
62
63 virtual uint32_t
64 GetPluginVersion();
65
66 virtual void
Sean Callananf2115102010-11-03 22:19:38 +000067 SetExceptionBreakpoints ();
68
69 virtual void
70 ClearExceptionBreakpoints ();
71
72 virtual bool
73 ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason);
74
Jim Ingham22777012010-09-23 02:01:19 +000075 protected:
76 private:
77 ItaniumABILanguageRuntime(Process *process) : lldb_private::CPPLanguageRuntime(process) { } // Call CreateInstance instead.
Sean Callananf2115102010-11-03 22:19:38 +000078
79 lldb::BreakpointSP m_cxx_exception_bp_sp;
80 lldb::BreakpointSP m_cxx_exception_alloc_bp_sp;
Jim Ingham22777012010-09-23 02:01:19 +000081 };
82
83} // namespace lldb_private
84
85#endif // liblldb_ItaniumABILanguageRuntime_h_