Bug 5830 - move -sysroot option code into common CommandlineParser
Summary: move -sysroot option code into common CommandlineParser
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:23 UTC by Andrew Cagney
Modified: 2008-03-17 20:27 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:23:13 UTC
There's growing and duplicated code being scattered across individual tools for
what should be standard across all utilities.
Comment 1 Stan Cox 2008-03-17 20:27:51 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.