diff options
author | Jim Ingham <jingham@apple.com> | 2010-10-14 23:45:03 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-10-14 23:45:03 +0000 |
commit | 36f3b369d2632e6898166c0e697f85e2ab458ece (patch) | |
tree | 62bfedb1bc23100bdf34b43673fa90dbc0f38d5e /lldb/source/Target/StopInfo.cpp | |
parent | 3f1cf0f373ab9915d4f7dff04c57017c62869386 (diff) | |
download | bcm5719-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/Target/StopInfo.cpp')
-rw-r--r-- | lldb/source/Target/StopInfo.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/Target/StopInfo.cpp b/lldb/source/Target/StopInfo.cpp index 49f07926715..877988f5812 100644 --- a/lldb/source/Target/StopInfo.cpp +++ b/lldb/source/Target/StopInfo.cpp @@ -56,6 +56,14 @@ public: { } + StopInfoBreakpoint (Thread &thread, break_id_t break_id, bool should_stop) : + StopInfo (thread, break_id), + m_description(), + m_should_stop (should_stop), + m_should_stop_is_valid (true) + { + } + virtual ~StopInfoBreakpoint () { } @@ -367,6 +375,12 @@ StopInfo::CreateStopReasonWithBreakpointSiteID (Thread &thread, break_id_t break } StopInfoSP +StopInfo::CreateStopReasonWithBreakpointSiteID (Thread &thread, break_id_t break_id, bool should_stop) +{ + return StopInfoSP (new StopInfoBreakpoint (thread, break_id, should_stop)); +} + +StopInfoSP StopInfo::CreateStopReasonWithWatchpointID (Thread &thread, break_id_t watch_id) { return StopInfoSP (new StopInfoWatchpoint (thread, watch_id)); |