summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.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/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
parentab8d0a0dd514e8313f39e3f09482468577ffe144 (diff)
downloadbcm5719-llvm-106d02866d4d54b09c08e6a12915dba58e709294.tar.gz
bcm5719-llvm-106d02866d4d54b09c08e6a12915dba58e709294.zip
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/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp')
-rw-r--r--lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
index aa1b6eee8aa..6641998c0ba 100644
--- a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
+++ b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
@@ -353,6 +353,7 @@ PlatformRemoteGDBServer::LaunchProcess (ProcessLaunchInfo &launch_info)
m_gdb_client.SetSTDOUT ("/dev/null");
m_gdb_client.SetSTDERR ("/dev/null");
m_gdb_client.SetDisableASLR (launch_info.GetFlags().Test (eLaunchFlagDisableASLR));
+ m_gdb_client.SetDetachOnError (launch_info.GetFlags().Test (eLaunchFlagDetachOnError));
const char *working_dir = launch_info.GetWorkingDirectory();
if (working_dir && working_dir[0])
OpenPOWER on IntegriCloud