llvm-project/lldb/tools
Pavel Labath 11e5917d2a llgs: Propagate the environment when launching the inferior from command line
Summary:
We were failing to propagate the environment when lldb-server was
started with a pre-loaded process
(e.g.: lldb-server gdbserver -- inferior --inferior_args)

This patch makes sure the environment is propagated. Instead of adding a
new GDBRemoteCommunicationServerLLGS::SetLaunchEnvironment function to
complement SetLaunchArgs and SetLaunchFlags, I replace these with a
more generic SetLaunchInfo, which can be used to set any launch-related
property.

The accompanying test also verifies that the server correctly terminates
the connection after sending the exit packet (specifically, that it does
not send the exit packet twice).

Reviewers: clayborg, eugene

Subscribers: lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D41070

llvm-svn: 320984
2017-12-18 14:31:39 +00:00
..
argdumper Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
compact-unwind *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
darwin-debug [CMake] Refactor LLDB libraries and tools to be components 2016-12-15 22:01:17 +00:00
darwin-threads *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
debugserver Change uses of strncpy in debugserver to strlcpy 2017-12-09 03:37:09 +00:00
driver Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
install-headers add back an Xcode-specific Makefile for header installation 2016-01-28 22:34:36 +00:00
intel-features Fix LLVM_LINK_LLVM_DYLIB build (pr35053) 2017-10-31 13:23:19 +00:00
lldb-mi Remove default case from switch. 2017-10-11 19:38:35 +00:00
lldb-perf Make lldb -Werror clean for -Wstring-conversion 2017-01-06 00:38:06 +00:00
lldb-server llgs: Propagate the environment when launching the inferior from command line 2017-12-18 14:31:39 +00:00
lldb-test ObjectFileELF: Add support for compressed sections 2017-12-15 14:23:58 +00:00
CMakeLists.txt Add lldb-test. 2017-12-01 00:52:51 +00:00