summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-10-05 22:58:37 +0000
committerGreg Clayton <gclayton@apple.com>2015-10-05 22:58:37 +0000
commitb3788eaf9976ce0323f886fda0bd510cfe8a2dea (patch)
tree9c1c1a9f01e19d5ad5786c348da62f2bd5058b67 /lldb/source/API
parent41127ad7af1ff9b9573e402f599024bd24d18110 (diff)
downloadbcm5719-llvm-b3788eaf9976ce0323f886fda0bd510cfe8a2dea.tar.gz
bcm5719-llvm-b3788eaf9976ce0323f886fda0bd510cfe8a2dea.zip
SBTarget::Attach(SBAttachInfo &) was changed to not be asynchronous back in February and this affected Xcode's abililty to cancel an attach to process by name.
Added the ability to specify if an attach by name should be synchronous or not in SBAttachInfo and ProcessAttachInfo. <rdar://problem/22821480> llvm-svn: 249361
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBAttachInfo.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/source/API/SBAttachInfo.cpp b/lldb/source/API/SBAttachInfo.cpp
index 07446df27df..0f2ab7afc9c 100644
--- a/lldb/source/API/SBAttachInfo.cpp
+++ b/lldb/source/API/SBAttachInfo.cpp
@@ -36,6 +36,15 @@ SBAttachInfo::SBAttachInfo (const char *path, bool wait_for) :
m_opaque_sp->SetWaitForLaunch (wait_for);
}
+SBAttachInfo::SBAttachInfo (const char *path, bool wait_for, bool async) :
+ m_opaque_sp (new ProcessAttachInfo())
+{
+ if (path && path[0])
+ m_opaque_sp->GetExecutableFile().SetFile(path, false);
+ m_opaque_sp->SetWaitForLaunch (wait_for);
+ m_opaque_sp->SetAsync(async);
+}
+
SBAttachInfo::SBAttachInfo (const SBAttachInfo &rhs) :
m_opaque_sp (new ProcessAttachInfo())
{
@@ -127,6 +136,13 @@ SBAttachInfo::SetWaitForLaunch (bool b)
m_opaque_sp->SetWaitForLaunch (b);
}
+void
+SBAttachInfo::SetWaitForLaunch (bool b, bool async)
+{
+ m_opaque_sp->SetWaitForLaunch (b);
+ m_opaque_sp->SetAsync(async);
+}
+
bool
SBAttachInfo::GetIgnoreExisting ()
{
OpenPOWER on IntegriCloud