blob: 1b260498806d083aad439bdff169f179c6613e5f [file] [log] [blame]
//===-- LanguageRuntime.h ---------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef liblldb_LanguageRuntime_h_
#define liblldb_LanguageRuntime_h_
// C Includes
// C++ Includes
// Other libraries and framework includes
// Project includes
#include "lldb/lldb-include.h"
#include "lldb/Core/PluginInterface.h"
#include "lldb/lldb-private.h"
#include "lldb/Core/ValueObject.h"
#include "lldb/Core/Value.h"
#include "lldb/Target/ExecutionContextScope.h"
namespace lldb_private {
class LanguageRuntime :
public PluginInterface
{
public:
virtual
~LanguageRuntime();
static LanguageRuntime*
FindPlugin (Process *process, lldb::LanguageType language);
virtual lldb::LanguageType
GetLanguageType () const = 0;
virtual bool
GetObjectDescription (Stream &str, ValueObject &object, ExecutionContextScope *exe_scope) = 0;
virtual bool
GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope) = 0;
virtual lldb::ValueObjectSP
GetDynamicValue (lldb::ValueObjectSP in_value, ExecutionContextScope *exe_scope) = 0;
virtual void
SetExceptionBreakpoints ()
{
}
virtual void
ClearExceptionBreakpoints ()
{
}
virtual bool
ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason)
{
return false;
}
protected:
//------------------------------------------------------------------
// Classes that inherit from LanguageRuntime can see and modify these
//------------------------------------------------------------------
LanguageRuntime(Process *process);
Process *m_process;
private:
DISALLOW_COPY_AND_ASSIGN (LanguageRuntime);
};
} // namespace lldb_private
#endif // liblldb_LanguageRuntime_h_