summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBTarget.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-07-20 21:37:13 +0000
committerJim Ingham <jingham@apple.com>2012-07-20 21:37:13 +0000
commitcd16df9154d46bb4ff49ed8843df714a7376d072 (patch)
treeee33109563981740402ee3d93477eca660d07876 /lldb/source/API/SBTarget.cpp
parent5e4fe00e644177dd5b6c8bd330be6dfe0f25610b (diff)
downloadbcm5719-llvm-cd16df9154d46bb4ff49ed8843df714a7376d072.tar.gz
bcm5719-llvm-cd16df9154d46bb4ff49ed8843df714a7376d072.zip
Add "vAttachOrWait" to debugserver, so you can implement "attach to the process if it exists OR wait for it" without race conditions. Use that in lldb.
llvm-svn: 160578
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r--lldb/source/API/SBTarget.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 1dc30d1debc..7635a364901 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -369,6 +369,18 @@ SBAttachInfo::SetWaitForLaunch (bool b)
m_opaque_sp->SetWaitForLaunch (b);
}
+bool
+SBAttachInfo::GetIgnoreExisting ()
+{
+ return m_opaque_sp->GetIgnoreExisting();
+}
+
+void
+SBAttachInfo::SetIgnoreExisting (bool b)
+{
+ m_opaque_sp->SetIgnoreExisting (b);
+}
+
uint32_t
SBAttachInfo::GetUserID()
{
OpenPOWER on IntegriCloud