Fixes the case where we created a dummy target, deleted it, and then tried to evaluate an expression with no target.

llvm-svn: 157110
This commit is contained in:
Filipe Cabecinhas
2012-05-19 09:59:08 +00:00
parent 6166178573
commit 721ba3ff77
4 changed files with 25 additions and 12 deletions

View File

@@ -502,7 +502,7 @@ SBTarget::GetBroadcasterClassName ()
bool
SBTarget::IsValid () const
{
return m_opaque_sp.get() != NULL;
return m_opaque_sp.get() != NULL && m_opaque_sp->IsValid();
}
SBProcess