Bug 6047

Summary: frysk.sys. fork/ptrace takes an environ[] not a LD_LIBRARY_PATH String
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Stan Cox <scox>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 5624    

Description Andrew Cagney 2008-04-08 02:01:22 UTC
There should be an object Environ that lets you manipulate an abstract
environment and then pass that to frysk.proc.Host's create child process.

Not doing this causes the following:

$ ./frysk/bindir/fhpd -sysroot / /usr/bin/printenv 
[0.0] Loaded executable file: /usr/bin/printenv
(fhpd) run
Attached to process 13167
running with this command: /usr/bin/printenv
Running process 13167
(fhpd) LD_LIBRARY_PATH=//lib://usr/lib
Task 13167 is exiting with status 0

notice the lack of environment variables.
Comment 1 Stan Cox 2008-04-15 16:12:10 UTC
Add support for process environment variables.
    
* Environ.java: New file.
* cni/Environ.cxx: New file.
* Fork.java (spawn): Use Environ.
* cni/Fork.cxx (spawn): Use Environ.