Before this change we were overriding the launch info environment with the target environment. This meant that the environment variables passed to process launch --environment <> were lost. Instead of replacing the Environment, we should merge them.
Details
Details
- Reviewers
labath aprantl davide - Commits
- rZORG4b3bc2c23fdd: Merge target and launch info environments
rZORG39687ff8d733: Merge target and launch info environments
rG4b3bc2c23fdd: Merge target and launch info environments
rG39687ff8d733: Merge target and launch info environments
rGae54fc9f0422: Merge target and launch info environments
rL360612: Merge target and launch info environments
rLLDB360612: Merge target and launch info environments
Diff Detail
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
Comment Actions
The fix looks good, but it seems like it wouldn't be hard to make the test windows-compatible, so I think we should do that. All it would take is to compile a very dumb version of "env" which just prints the value of the single env var. If you can get it to print in a different format then you can also avoid the double quote trick (which also doesn't work on windows).
Also, doesn't debugging of /usr/bin/env fail on darwin with SIP ?