aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-06-25 02:32:56 +0000
committerJim Ingham <jingham@apple.com>2014-06-25 02:32:56 +0000
commit106d02866d4d54b09c08e6a12915dba58e709294 (patch)
treed495af8b9b7f1823c685bc4ff2ce2a9a0289b5b9 /lldb/source/Commands/CommandObjectProcess.cpp
parentab8d0a0dd514e8313f39e3f09482468577ffe144 (diff)
downloadllvm-106d02866d4d54b09c08e6a12915dba58e709294.zip
llvm-106d02866d4d54b09c08e6a12915dba58e709294.tar.gz
llvm-106d02866d4d54b09c08e6a12915dba58e709294.tar.bz2
Added an option to turn OFF the "detach on error" behavior that was added
to debugserver when launching processes. <rdar://problem/16216199> llvm-svn: 211658
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 92735ec..4952ed5 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -208,6 +208,9 @@ protected:
if (target->GetDisableASLR())
m_options.launch_info.GetFlags().Set (eLaunchFlagDisableASLR);
+ if (target->GetDetachOnError())
+ m_options.launch_info.GetFlags().Set (eLaunchFlagDetachOnError);
+
if (target->GetDisableSTDIO())
m_options.launch_info.GetFlags().Set (eLaunchFlagDisableSTDIO);