diff options
author | 2021-02-09 21:35:45 +0000 | |
---|---|---|
committer | 2021-02-09 21:35:45 +0000 | |
commit | 972f549b71a24bab39c35c97f14ab2f72eae5e8d (patch) | |
tree | 96693cefd25aab1fa0b96078e6a627f3d0740251 /gnu/llvm/lldb/source/Host/openbsd/Host.cpp | |
parent | These regress tests expect coredumps to be written so run them with (diff) | |
download | wireguard-openbsd-972f549b71a24bab39c35c97f14ab2f72eae5e8d.tar.xz wireguard-openbsd-972f549b71a24bab39c35c97f14ab2f72eae5e8d.zip |
Fix lldb.
Map deliberately invalid signal to zero when passing to PT_STEP and P_CONTINUE.
Also clean up getting Environment so setting LLDB_DEBUGSERVER env vars works again.
ok patrick@
Diffstat (limited to 'gnu/llvm/lldb/source/Host/openbsd/Host.cpp')
-rw-r--r-- | gnu/llvm/lldb/source/Host/openbsd/Host.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gnu/llvm/lldb/source/Host/openbsd/Host.cpp b/gnu/llvm/lldb/source/Host/openbsd/Host.cpp index c5d42334804..776202f23d6 100644 --- a/gnu/llvm/lldb/source/Host/openbsd/Host.cpp +++ b/gnu/llvm/lldb/source/Host/openbsd/Host.cpp @@ -41,18 +41,7 @@ namespace lldb_private { class ProcessLaunchInfo; } -Environment Host::GetEnvironment() { - Environment env; - char *v; - char **var = environ; - for (; var != NULL && *var != NULL; ++var) { - v = strchr(*var, (int)'-'); - if (v == NULL) - continue; - env.insert(v); - } - return env; -} +Environment Host::GetEnvironment() { return Environment(environ); } static bool GetOpenBSDProcessArgs(const ProcessInstanceInfoMatch *match_info_ptr, |