[Lldb-commits] [PATCH] Moved PlatformDarwin::GetEnvironment() to PlatformPOSIX

Shawn Best sbest at blueshiftinc.com
Wed Sep 24 15:58:56 PDT 2014


Hi tfiala, clayborg,

I was tracking a problem where llgs on linux would not pick up any environment variables.  On OSX there is a virtual function PlatformDarwin::GetEnvironment() which correctly sets up the list of environment variables.  On linux llgs it defaults to a base class default implementation which clears the list.

I  moved the OSX implementation down to PlatformPOSIX.  This fixes my problem on linux still works properly on OSX.

http://reviews.llvm.org/D5486

Files:
  source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
  source/Plugins/Platform/MacOSX/PlatformDarwin.h
  source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
  source/Plugins/Platform/POSIX/PlatformPOSIX.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5486.14055.patch
Type: text/x-patch
Size: 2240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140924/48d6f51d/attachment.bin>


More information about the lldb-commits mailing list