diff options
author | Pavel Labath <labath@google.com> | 2017-12-18 14:31:39 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-12-18 14:31:39 +0000 |
commit | 11e5917d2aecff32546644e91132f8efb565b4c9 (patch) | |
tree | 307da454cc4de73ee6af09e2b6a10badf4067e81 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 1acab00229576cdb8ba5972d3794dfcc76282c08 (diff) | |
download | llvm-11e5917d2aecff32546644e91132f8efb565b4c9.zip llvm-11e5917d2aecff32546644e91132f8efb565b4c9.tar.gz llvm-11e5917d2aecff32546644e91132f8efb565b4c9.tar.bz2 |
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
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions