diff options
author | Filipe Cabecinhas <me@filcab.net> | 2012-05-19 09:59:08 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2012-05-19 09:59:08 +0000 |
commit | 721ba3ff77ed456f0c96640636c7ca9b2d2e58b6 (patch) | |
tree | 32a08ff9e40396ebada3dcf2c9dd1d914c1eeed6 /lldb/source/API/SBTarget.cpp | |
parent | 6166178573651d6436a19184508d38c75ef83d38 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |