Bug 5641

Summary: Assume there's always a sysroot.
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 5624    

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.