summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBTarget.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-12-20 01:22:03 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-12-20 01:22:03 +0000
commit3ac503e042bca5f4c6c1c661a8b5d17fef9555fc (patch)
tree6c2f0f8c9064e71bd1b62a29eb56c54794f8ca7c /lldb/source/API/SBTarget.cpp
parent00723591b859bb2c62a066bb3fafe14d0c4790ba (diff)
downloadbcm5719-llvm-3ac503e042bca5f4c6c1c661a8b5d17fef9555fc.tar.gz
bcm5719-llvm-3ac503e042bca5f4c6c1c661a8b5d17fef9555fc.zip
Work in progress for:
rdar://problem/10577182 Audit lldb API impl for places where we need to perform a NULL check Add a NULL check for SBTarget.AttachToProcessWithName() so it will not hang. llvm-svn: 146948
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 059f91c4444..967ea6b836f 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -379,7 +379,7 @@ SBTarget::AttachToProcessWithName
)
{
SBProcess sb_process;
- if (m_opaque_sp)
+ if (name && m_opaque_sp)
{
Mutex::Locker api_locker (m_opaque_sp->GetAPIMutex());
OpenPOWER on IntegriCloud