Add a few more needed bits to the scripted thread plans.

llvm-svn: 277879
This commit is contained in:
Jim Ingham
2016-08-05 22:06:12 +00:00
parent 272cbacc25
commit c915a7d2e8
11 changed files with 94 additions and 4 deletions

View File

@@ -100,6 +100,29 @@ ThreadPlanPython::ShouldStop (Event *event_ptr)
return should_stop;
}
bool
ThreadPlanPython::IsPlanStale()
{
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_THREAD));
if (log)
log->Printf ("%s called on Python Thread Plan: %s )",
__PRETTY_FUNCTION__, m_class_name.c_str());
bool is_stale = true;
if (m_implementation_sp)
{
ScriptInterpreter *script_interp = m_thread.GetProcess()->GetTarget().GetDebugger().GetCommandInterpreter().GetScriptInterpreter();
if (script_interp)
{
bool script_error;
is_stale = script_interp->ScriptedThreadPlanIsStale (m_implementation_sp, script_error);
if (script_error)
SetPlanComplete(false);
}
}
return is_stale;
}
bool
ThreadPlanPython::DoPlanExplainsStop (Event *event_ptr)
{