Bug 6047 - frysk.sys. fork/ptrace takes an environ[] not a LD_LIBRARY_PATH String
Summary: frysk.sys. fork/ptrace takes an environ[] not a LD_LIBRARY_PATH String
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
Depends on:
Blocks: 5624
  Show dependency treegraph
 
Reported: 2008-04-08 02:01 UTC by Andrew Cagney
Modified: 2008-04-15 16:12 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.