[Lldb-commits] [lldb] r226054 - Only set the StopInfo on Windows if the stop is valid for this thread.
Zachary Turner
zturner at google.com
Wed Jan 14 14:58:19 PST 2015
Author: zturner
Date: Wed Jan 14 16:58:19 2015
New Revision: 226054
URL: http://llvm.org/viewvc/llvm-project?rev=226054&view=rev
Log:
Only set the StopInfo on Windows if the stop is valid for this thread.
Modified:
lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp
Modified: lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp?rev=226054&r1=226053&r2=226054&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Windows/ProcessWindows.cpp Wed Jan 14 16:58:19 2015
@@ -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
More information about the lldb-commits
mailing list