| Summary: | Assume there's always a sysroot. | ||
|---|---|---|---|
| Product: | frysk | Reporter: | Andrew Cagney <cagney> |
| Component: | general | Assignee: | Unassigned <frysk-bugzilla> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Host: | Target: | ||
| Build: | Last reconfirmed: | ||
| Project(s) to access: | ssh public key: | ||
| Bug Depends on: | |||
| Bug Blocks: | 5624 | ||
* DebugInfoFrame.java (getLine): Get sysroot via DwflCache.getSysroot.
* DwflCache.java (Mod.sysroot): New.
(sysrootMap): New.
(getDwfl): Set Mod.sysroot.
(setSysroot): New.
(getSysroot): New.
* DbgVariables.java (DbgVariables): Remove SYSROOT.
|
Rather than special caseing: + else { + String sysroot = DbgVariables.getStringValue("SYSROOT"); + if (sysroot.length() > 0) { + File parent = new File(sysroot); + f = new File(parent, dwflLine.getSourceFile()); + } + } the code can be constructed so that there is always a sysroot (a Sysroot object?) and anything needing to resolve a path can use that to do it.