If a breakpoint gets deleted, any SBBreakpoints representing that

breakpoint should return false from IsValid.

llvm-svn: 212206
This commit is contained in:
Jim Ingham
2014-07-02 18:44:43 +00:00
parent 9408f5282e
commit e029fa5781
4 changed files with 90 additions and 1 deletions

View File

@@ -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