diff options
author | Diana Picus <diana.picus@linaro.org> | 2021-10-12 12:40:48 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2021-10-28 07:49:30 +0000 |
commit | 824bf908194c9267f1f09065ba8e41d7969006ab (patch) | |
tree | 1f84e01d073a389bc9a24ca2126d653a3525689f /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | |
parent | 177176f75c6fa3f624d6d964b9d340ce39511565 (diff) | |
download | llvm-824bf908194c9267f1f09065ba8e41d7969006ab.zip llvm-824bf908194c9267f1f09065ba8e41d7969006ab.tar.gz llvm-824bf908194c9267f1f09065ba8e41d7969006ab.tar.bz2 |
[flang] runtime: Read environment variables directly
Add support for reading environment variables directly, via std::getenv.
This needs to allocate a C-style string to pass into std::getenv. If the
memory allocation for that fails, we terminate.
This also changes the interface for EnvVariableLength to receive the
source file and line so we can crash gracefully.
Note that we are now completely ignoring the envp pointer passed into
ProgramStart, since that could go stale if the environment is modified
during execution.
Differential Revision: https://reviews.llvm.org/D111785
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp')
0 files changed, 0 insertions, 0 deletions