AppleObjCRuntime.h [plain text]
#ifndef liblldb_AppleObjCRuntime_h_
#define liblldb_AppleObjCRuntime_h_
#include "lldb/lldb-private.h"
#include "lldb/Target/LanguageRuntime.h"
#include "lldb/Target/ObjCLanguageRuntime.h"
#include "lldb/Core/ValueObject.h"
#include "AppleObjCTrampolineHandler.h"
#include "AppleThreadPlanStepThroughObjCTrampoline.h"
namespace lldb_private {
class AppleObjCRuntime :
public lldb_private::ObjCLanguageRuntime
{
public:
virtual ~AppleObjCRuntime() { }
virtual bool
GetObjectDescription (Stream &str, Value &value, ExecutionContextScope *exe_scope);
virtual bool
GetObjectDescription (Stream &str, ValueObject &object);
virtual bool
CouldHaveDynamicValue (ValueObject &in_value);
virtual bool
GetDynamicTypeAndAddress (ValueObject &in_value,
lldb::DynamicValueType use_dynamic,
TypeAndOrName &class_type_or_name,
Address &address);
virtual bool
IsModuleObjCLibrary (const lldb::ModuleSP &module_sp);
virtual bool
ReadObjCLibrary (const lldb::ModuleSP &module_sp);
virtual bool
HasReadObjCLibrary ()
{
return m_read_objc_library;
}
virtual lldb::ThreadPlanSP
GetStepThroughTrampolinePlan (Thread &thread, bool stop_others);
lldb::ModuleSP
GetObjCModule ();
protected:
virtual bool
CalculateHasNewLiteralsAndIndexing();
static bool
AppleIsModuleObjCLibrary (const lldb::ModuleSP &module_sp);
static enum ObjCRuntimeVersions
GetObjCVersion (Process *process, lldb::ModuleSP &objc_module_sp);
public:
virtual void
SetExceptionBreakpoints();
virtual void
ClearExceptionBreakpoints ();
virtual bool
ExceptionBreakpointsExplainStop (lldb::StopInfoSP stop_reason);
protected:
Address *
GetPrintForDebuggerAddr();
std::auto_ptr<Address> m_PrintForDebugger_addr;
bool m_read_objc_library;
std::auto_ptr<lldb_private::AppleObjCTrampolineHandler> m_objc_trampoline_handler_ap;
lldb::BreakpointSP m_objc_exception_bp_sp;
lldb::ModuleWP m_objc_module_wp;
AppleObjCRuntime(Process *process) :
lldb_private::ObjCLanguageRuntime(process),
m_read_objc_library (false),
m_objc_trampoline_handler_ap(NULL)
{ } };
}
#endif // liblldb_AppleObjCRuntime_h_