Bug 5834

Summary: (fhpd) load -sysroot /tmp /bin/ls ignores sysroot
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, 5829    

Description Andrew Cagney 2008-03-03 20:53:16 UTC
/bin/ls, instead of /tmp/bin/ls will be loaded.
Comment 1 Stan Cox 2008-03-17 21:35:46 UTC
Move SysRoot handling to SysRoot.java
    
* SysRootFile.java: New.
* SysRoot.java: Renamed from Sysroot.java.  Changed to use SysRootFile.
* TestSysRoot.java: Renamed from TestSysroot.java.  Changed to use SysRootFile.
* SysRootCache.java: Renamed from SysrootCache.java. Change all callers.
* LinuxExeFactory.java (findExe): Move to SysRoot.findExe.
(createProc): Use it.
* DebugInfoFrame.java (getLine): Use SysRoot.
* ListCommand.java (interpret): Use SysRoot.
* TestFstack.java (getCanonicalAbsRootSrcDir): New. Use instead of
Config.getRootSrcDir.
* CommandlineParser.java (parseSysRoot): Make private.


.../frysk-core/frysk/bindir/fhpd 
(fhpd) load which -sysroot /tmp/which-dir
[0.0] Loaded executable file: /tmp/which-dir/usr/bin/which
(fhpd) break main
breakpoint 0 deferred
(fhpd) run
Attached to process 12533
starting/running with this command: which
Running process 12533
(fhpd) info debuginfo
/tmp/which-dir/usr/bin/which
/tmp/which-dir/usr/bin/../../usr/lib/debug/usr/bin/which.debug
(fhpd) list
[0.0]
   398     opt_skip_alias,
...