summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/netbsd/Host.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/netbsd/Host.cpp')
-rw-r--r--lldb/source/Host/netbsd/Host.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/lldb/source/Host/netbsd/Host.cpp b/lldb/source/Host/netbsd/Host.cpp
index d927f95f067..8f7d53d857a 100644
--- a/lldb/source/Host/netbsd/Host.cpp
+++ b/lldb/source/Host/netbsd/Host.cpp
@@ -48,14 +48,7 @@ extern char **environ;
using namespace lldb;
using namespace lldb_private;
-size_t Host::GetEnvironment(StringList &env) {
- char **host_env = environ;
- char *env_entry;
- size_t i;
- for (i = 0; (env_entry = host_env[i]) != NULL; ++i)
- env.AppendString(env_entry);
- return i;
-}
+Environment Host::GetEnvironment() { return Environment(environ); }
static bool GetNetBSDProcessArgs(const ProcessInstanceInfoMatch *match_info_ptr,
ProcessInstanceInfo &process_info) {
OpenPOWER on IntegriCloud