summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Thread.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-01-24 06:34:17 +0000
committerJim Ingham <jingham@apple.com>2011-01-24 06:34:17 +0000
commit444586b5d2ccc6130de20677a5822ecd1df0fdaa (patch)
treeed2abf9c99f41fb01208a22fbcc4b8780bff4c80 /lldb/source/Target/Thread.cpp
parent2ad6670ef1511244d8017a2dd4f3e42b3cb47c60 (diff)
downloadbcm5719-llvm-444586b5d2ccc6130de20677a5822ecd1df0fdaa.tar.gz
bcm5719-llvm-444586b5d2ccc6130de20677a5822ecd1df0fdaa.zip
More useful STEP logging.
Be sure to clear out the base plan's m_report_run and m_report_stop each time we resume so we don't use stale values. llvm-svn: 124113
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r--lldb/source/Target/Thread.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 2c544a2ca5b..232bf287f63 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -351,17 +351,35 @@ Vote
Thread::ShouldReportRun (Event* event_ptr)
{
StateType thread_state = GetResumeState ();
+
if (thread_state == eStateSuspended
|| thread_state == eStateInvalid)
+ {
return eVoteNoOpinion;
-
+ }
+
+ LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
if (m_completed_plan_stack.size() > 0)
{
// Don't use GetCompletedPlan here, since that suppresses private plans.
+ if (log)
+ log->Printf ("Current Plan for thread %d (0x%4.4x): %s being asked whether we should report run.",
+ GetIndexID(),
+ GetID(),
+ m_completed_plan_stack.back()->GetName());
+
return m_completed_plan_stack.back()->ShouldReportRun (event_ptr);
}
else
+ {
+ if (log)
+ log->Printf ("Current Plan for thread %d (0x%4.4x): %s being asked whether we should report run.",
+ GetIndexID(),
+ GetID(),
+ GetCurrentPlan()->GetName());
+
return GetCurrentPlan()->ShouldReportRun (event_ptr);
+ }
}
bool
OpenPOWER on IntegriCloud