Make sure the OperatingSystem plug-ins will work on linux as well. This goes with my previous fix with revision 234364.

llvm-svn: 234366
This commit is contained in:
Greg Clayton 2015-04-07 22:23:53 +00:00
parent 18cd75cc47
commit ad36820873
1 changed files with 4 additions and 1 deletions

View File

@ -512,7 +512,10 @@ POSIXThread::BreakNotify(const ProcessMessage &message)
if (bp_site)
{
lldb::break_id_t bp_id = bp_site->GetID();
if (bp_site->ValidForThisThread(this))
// If we have an operating system plug-in, we might have set a thread specific breakpoint using the
// operating system thread ID, so we can't make any assumptions about the thread ID so we must always
// report the breakpoint regardless of the thread.
if (bp_site->ValidForThisThread(this) || thread.GetProcess()->GetOperatingSystem () != NULL)
SetStopInfo (StopInfo::CreateStopReasonWithBreakpointSiteID(*this, bp_id));
else
{