Make sure we've read in the ObjC runtime library data before trying to use it...

llvm-svn: 114956
This commit is contained in:
Jim Ingham 2010-09-28 16:06:31 +00:00
parent d6ea6bd2a3
commit a8298d3ba5
1 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,10 @@ static const char *pluginShort = "language.apple.objc.v2";
bool
AppleObjCRuntimeV2::GetObjectDescription (Stream &str, ValueObject &object, ExecutionContextScope *exe_scope)
{
if (!m_read_objc_library)
return false;
ExecutionContext exe_ctx;
exe_scope->Calculate(exe_ctx);
@ -186,7 +190,8 @@ ThreadPlanSP
AppleObjCRuntimeV2::GetStepThroughTrampolinePlan (Thread &thread, bool stop_others)
{
ThreadPlanSP thread_plan_sp;
thread_plan_sp = m_objc_trampoline_handler_ap->GetStepThroughDispatchPlan (thread, stop_others);
if (m_objc_trampoline_handler_ap.get())
thread_plan_sp = m_objc_trampoline_handler_ap->GetStepThroughDispatchPlan (thread, stop_others);
return thread_plan_sp;
}