summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
diff options
context:
space:
mode:
authorOleksiy Vyalov <ovyalov@google.com>2015-01-28 17:36:59 +0000
committerOleksiy Vyalov <ovyalov@google.com>2015-01-28 17:36:59 +0000
commitf8ce61c5d8c4cdca039871f27270cbee1e8595fc (patch)
tree4d305d18b15db5bb0cdc5cb1d16b30e7f0216d71 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
parent64a74bf1cf5b3e8a569ce20f1739d3f15898b4a6 (diff)
downloadbcm5719-llvm-f8ce61c5d8c4cdca039871f27270cbee1e8595fc.tar.gz
bcm5719-llvm-f8ce61c5d8c4cdca039871f27270cbee1e8595fc.zip
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 2ad4103cae4..ef903fb6dd6 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -757,10 +757,12 @@ GDBRemoteCommunication::StartDebugserverProcess (const char *hostname,
}
// use native registers, not the GDB registers
- debugserver_args.AppendArgument("--native-regs");
- // make debugserver run in its own session so signals generated by
- // special terminal key sequences (^C) don't affect debugserver
- debugserver_args.AppendArgument("--setsid");
+ debugserver_args.AppendArgument("--native-regs");
+
+ if (launch_info.GetLaunchInSeparateProcessGroup())
+ {
+ debugserver_args.AppendArgument("--setsid");
+ }
char named_pipe_path[PATH_MAX];
named_pipe_path[0] = '\0';
OpenPOWER on IntegriCloud