Bug 5833 - << <cmd> -sysroot /tmp /bin/ls>> doesn't work
Summary: << <cmd> -sysroot /tmp /bin/ls>> doesn't work
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 5829
  Show dependency treegraph
 
Reported: 2008-03-03 20:51 UTC by Andrew Cagney
Modified: 2008-04-23 20:32 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-03-03 20:51:03 UTC
Similarly for core files.  The sysroot is being applied after the process has
initially been established, not before.

This means, minimially, that LinuxExeFactory and LinuxCoreFactory should both be
parameterized with the sysroot object.
Comment 1 Stan Cox 2008-04-23 20:32:19 UTC
Move SysRoot handling to SysRoot.java
    
* LinuxExeFactory.java (findExe): Move to SysRoot.findExe.
(createProc): Use it.
* DebugInfoFrame.java (getLine): Use SysRoot.
* CommandlineParser.java (parseSysRoot): Make private.
* CoreCommand.java (interpret): Use exePath instead of exeFile.
* LinuxCoreFactory.java (createProc): Add SysRoot to signature.
* LinuxCoreInfo.java (LinuxCoreInfo): Likewise.
* (getExeFile): Likewise.