summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ThreadPlanTestCondition.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-11-30 02:22:11 +0000
committerJim Ingham <jingham@apple.com>2010-11-30 02:22:11 +0000
commitf48169bb4f4ff2921b3522fd7a4b8586f5473984 (patch)
treea3b94bf2e3539c728fa233eb3368280f302b14fe /lldb/source/Target/ThreadPlanTestCondition.cpp
parentd4900a644ce3e5ff9e5c5acd4bd379ec45017d8d (diff)
downloadbcm5719-llvm-f48169bb4f4ff2921b3522fd7a4b8586f5473984.tar.gz
bcm5719-llvm-f48169bb4f4ff2921b3522fd7a4b8586f5473984.zip
Moved the code in ClangUserExpression that set up & ran the thread plan with timeouts, and restarting with all threads into a utility function in Process. This required a bunch of renaming.
Added a ThreadPlanCallUserExpression that differs from ThreadPlanCallFunction in that it holds onto a shared pointer to its ClangUserExpression so that can't go away before the thread plan is done using it. Fixed the stop message when you hit a breakpoint while running a user expression so it is more obvious what has happened. llvm-svn: 120386
Diffstat (limited to 'lldb/source/Target/ThreadPlanTestCondition.cpp')
-rw-r--r--lldb/source/Target/ThreadPlanTestCondition.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Target/ThreadPlanTestCondition.cpp b/lldb/source/Target/ThreadPlanTestCondition.cpp
index 0087dfc920f..b5f7db87f8d 100644
--- a/lldb/source/Target/ThreadPlanTestCondition.cpp
+++ b/lldb/source/Target/ThreadPlanTestCondition.cpp
@@ -64,7 +64,10 @@ ThreadPlanTestCondition::ValidatePlan (Stream *error)
void
ThreadPlanTestCondition::GetDescription (Stream *s, lldb::DescriptionLevel level)
{
-
+ if (m_expression)
+ s->Printf("Thread plan to test condition: \"%s\".", m_expression->GetUserText());
+ else
+ s->Printf("Thread plan to test unspecified condition.");
}
bool
OpenPOWER on IntegriCloud