llvm-project/lldb/tools/lldb-server
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
..
Darwin/resources [NFC] Darwin llgs support from Week of Code 2016-09-04 00:18:56 +00:00
Acceptor.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Acceptor.h Move Connection and IOObject interfaces to Utility module 2017-06-27 10:33:14 +00:00
CMakeLists.txt [lldb] Use PRIVATE in target_link_libraries 2017-12-06 20:53:03 +00:00
LLDBServerUtilities.cpp Remove lldb streams from the Log class completely 2017-03-15 09:06:58 +00:00
LLDBServerUtilities.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldb-gdbserver.cpp llgs: Propagate the environment when launching the inferior from command line 2017-12-18 14:31:39 +00:00
lldb-platform.cpp Fix a copy-paste error in r307161 2017-07-06 11:43:25 +00:00
lldb-server.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldb-server.exports Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00