LanguageRuntime.h revision 0de37195f17fefb536157b3296a18999116b8125
1//===-- LanguageRuntime.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_LanguageRuntime_h_ 11#define liblldb_LanguageRuntime_h_ 12 13// C Includes 14// C++ Includes 15// Other libraries and framework includes 16// Project includes 17#include "lldb/lldb-public.h" 18#include "lldb/Core/PluginInterface.h" 19#include "lldb/lldb-private.h" 20#include "lldb/Core/ValueObject.h" 21#include "lldb/Core/Value.h" 22#include "lldb/Target/ExecutionContextScope.h" 23 24namespace lldb_private { 25 26class LanguageRuntime : 27 public PluginInterface 28{ 29public: 30 virtual 31 ~LanguageRuntime(); 32 33 static LanguageRuntime* 34 FindPlugin (Process *process, lldb::LanguageType language); 35 36 virtual lldb::LanguageType 37 GetLanguageType () const = 0; 38 39 virtual bool 40 GetObjectDescription (Stream &str, ValueObject &object) = 0; 41 42 virtual bool 43 GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope) = 0; 44 45 virtual lldb::ValueObjectSP 46 GetDynamicValue (lldb::ValueObjectSP in_value) = 0; 47 48 virtual void 49 SetExceptionBreakpoints () 50 { 51 } 52 53 virtual void 54 ClearExceptionBreakpoints () 55 { 56 } 57 58 virtual bool 59 ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason) 60 { 61 return false; 62 } 63protected: 64 //------------------------------------------------------------------ 65 // Classes that inherit from LanguageRuntime can see and modify these 66 //------------------------------------------------------------------ 67 LanguageRuntime(Process *process); 68 Process *m_process; 69private: 70 DISALLOW_COPY_AND_ASSIGN (LanguageRuntime); 71}; 72 73} // namespace lldb_private 74 75#endif // liblldb_LanguageRuntime_h_ 76