summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBTarget.cpp
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2012-05-19 09:59:08 +0000
committerFilipe Cabecinhas <me@filcab.net>2012-05-19 09:59:08 +0000
commit721ba3ff77ed456f0c96640636c7ca9b2d2e58b6 (patch)
tree32a08ff9e40396ebada3dcf2c9dd1d914c1eeed6 /lldb/source/API/SBTarget.cpp
parent6166178573651d6436a19184508d38c75ef83d38 (diff)
downloadbcm5719-llvm-721ba3ff77ed456f0c96640636c7ca9b2d2e58b6.tar.gz
bcm5719-llvm-721ba3ff77ed456f0c96640636c7ca9b2d2e58b6.zip
Fixes the case where we created a dummy target, deleted it, and then tried to evaluate an expression with no target.
llvm-svn: 157110
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r--lldb/source/API/SBTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 1ec639763ba..d1275e6392b 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -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
OpenPOWER on IntegriCloud