diff options
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)); |