From: Zachary Turner Date: Wed, 14 Jan 2015 22:58:19 +0000 (+0000) Subject: Only set the StopInfo on Windows if the stop is valid for this thread. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d46476b52add039d48230983148191afc32089cc;p=platform%2Fupstream%2Fllvm.git Only set the StopInfo on Windows if the stop is valid for this thread. llvm-svn: 226054 --- diff --git a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp index 6d31c03..890aa8f 100644 --- a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp @@ -324,15 +324,11 @@ ProcessWindows::RefreshStateAfterStop() // to ask the Platform how big a breakpoint opcode is. --pc; BreakpointSiteSP site(GetBreakpointSiteList().FindByAddress(pc)); - lldb::break_id_t break_id = LLDB_INVALID_BREAK_ID; - bool should_stop = true; - if (site) + if (site && site->ValidForThisThread(stop_thread.get())) { - should_stop = site->ValidForThisThread(stop_thread.get()); - break_id = site->GetID(); + lldb::break_id_t break_id = LLDB_INVALID_BREAK_ID; + stop_info = StopInfo::CreateStopReasonWithBreakpointSiteID(*stop_thread, site->GetID()); } - - stop_info = StopInfo::CreateStopReasonWithBreakpointSiteID(*stop_thread, break_id); stop_thread->SetStopInfo(stop_info); } else