From f8ce61c5d8c4cdca039871f27270cbee1e8595fc Mon Sep 17 00:00:00 2001 From: Oleksiy Vyalov Date: Wed, 28 Jan 2015 17:36:59 +0000 Subject: Launch lldb-gdbserver in same process group when launched remotely using lldb-platform - commit on behalf of flackr. http://reviews.llvm.org/D7211 llvm-svn: 227329 --- .../source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp index c2f1b7b9fce..4a04a5a0d98 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp @@ -1921,6 +1921,9 @@ GDBRemoteCommunicationServer::Handle_qLaunchGDBServer (StringExtractorGDBRemote if (log) log->Printf("Launching debugserver with: %s:%u...\n", hostname.c_str(), port); + // Do not run in a new session so that it can not linger after the + // platform closes. + debugserver_launch_info.SetLaunchInSeparateProcessGroup(false); debugserver_launch_info.SetMonitorProcessCallback(ReapDebugserverProcess, this, false); std::string platform_scheme; -- cgit v1.2.3