If a breakpoint gets deleted, any SBBreakpoints representing that
breakpoint should return false from IsValid. llvm-svn: 212206
This commit is contained in:
@@ -138,7 +138,12 @@ SBBreakpoint::GetID () const
|
||||
bool
|
||||
SBBreakpoint::IsValid() const
|
||||
{
|
||||
return (bool) m_opaque_sp;
|
||||
if (!m_opaque_sp)
|
||||
return false;
|
||||
else if (m_opaque_sp->GetTarget().GetBreakpointByID(m_opaque_sp->GetID()))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user