summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/Breakpoint.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-10-14 23:45:03 +0000
committerJim Ingham <jingham@apple.com>2010-10-14 23:45:03 +0000
commit36f3b369d2632e6898166c0e697f85e2ab458ece (patch)
tree62bfedb1bc23100bdf34b43673fa90dbc0f38d5e /lldb/source/Breakpoint/Breakpoint.cpp
parent3f1cf0f373ab9915d4f7dff04c57017c62869386 (diff)
downloadbcm5719-llvm-36f3b369d2632e6898166c0e697f85e2ab458ece.tar.gz
bcm5719-llvm-36f3b369d2632e6898166c0e697f85e2ab458ece.zip
Added support for breakpoint conditions. I also had to separate the "run the expression" part of ClangFunction::Execute from the "Gather the expression result" so that in the case of the Breakpoint condition I can move the condition evaluation into the normal thread plan processing.
Also added support for remembering the "last set breakpoint" so that "break modify" will act on the last set breakpoint. llvm-svn: 116542
Diffstat (limited to 'lldb/source/Breakpoint/Breakpoint.cpp')
-rw-r--r--lldb/source/Breakpoint/Breakpoint.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/lldb/source/Breakpoint/Breakpoint.cpp b/lldb/source/Breakpoint/Breakpoint.cpp
index c79b1a89afe..fd2296df681 100644
--- a/lldb/source/Breakpoint/Breakpoint.cpp
+++ b/lldb/source/Breakpoint/Breakpoint.cpp
@@ -185,6 +185,24 @@ Breakpoint::GetThreadID ()
return m_options.GetThreadSpec()->GetTID();
}
+void
+Breakpoint::SetCondition (const char *condition)
+{
+ m_options.SetCondition (condition);
+}
+
+ThreadPlan *
+Breakpoint::GetThreadPlanToTestCondition (ExecutionContext &exe_ctx, lldb::BreakpointLocationSP loc_sp, Stream &error)
+{
+ return m_options.GetThreadPlanToTestCondition (exe_ctx, loc_sp, error);
+}
+
+const char *
+Breakpoint::GetConditionText ()
+{
+ return m_options.GetConditionText();
+}
+
// This function is used when "baton" doesn't need to be freed
void
Breakpoint::SetCallback (BreakpointHitCallback callback, void *baton, bool is_synchronous)
OpenPOWER on IntegriCloud