From 2d386b35eb5c1e5f1f354ac6af71bef658b21830 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 30 Apr 2013 23:42:24 +0000 Subject: Make "process handle -n true -s false" actually notifies of the signal. rdar://problem/12020085 llvm-svn: 180829 --- lldb/source/Target/ThreadPlanBase.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lldb/source/Target/ThreadPlanBase.cpp') diff --git a/lldb/source/Target/ThreadPlanBase.cpp b/lldb/source/Target/ThreadPlanBase.cpp index 817393924d1..e07228f4a52 100644 --- a/lldb/source/Target/ThreadPlanBase.cpp +++ b/lldb/source/Target/ThreadPlanBase.cpp @@ -78,6 +78,22 @@ ThreadPlanBase::PlanExplainsStop (Event *event_ptr) return true; } +Vote +ThreadPlanBase::ShouldReportStop(Event *event_ptr) +{ + StopInfoSP stop_info_sp = GetPrivateStopReason(); + if (stop_info_sp) + { + bool should_notify = stop_info_sp->ShouldNotify(event_ptr); + if (should_notify) + return eVoteYes; + else + return eVoteNoOpinion; + } + else + return eVoteNoOpinion; +} + bool ThreadPlanBase::ShouldStop (Event *event_ptr) { -- cgit v1.2.3