Bug 5641 - Assume there's always a sysroot.
Summary: Assume there's always a sysroot.
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 5624
  Show dependency treegraph
 
Reported: 2008-01-18 01:29 UTC by Andrew Cagney
Modified: 2008-01-25 14:54 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-01-18 01:29:33 UTC
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.
Comment 1 Stan Cox 2008-01-25 14:54:05 UTC
    * 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.