public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/5641] New: Assume there's always a sysroot.
@ 2008-01-18  1:30 cagney at redhat dot com
  2008-01-25 14:54 ` [Bug general/5641] " scox at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: cagney at redhat dot com @ 2008-01-18  1:30 UTC (permalink / raw)
  To: frysk-bugzilla

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.

-- 
           Summary: Assume there's always a sysroot.
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: cagney at redhat dot com
OtherBugsDependingO 5624
             nThis:


http://sourceware.org/bugzilla/show_bug.cgi?id=5641

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug general/5641] Assume there's always a sysroot.
  2008-01-18  1:30 [Bug general/5641] New: Assume there's always a sysroot cagney at redhat dot com
@ 2008-01-25 14:54 ` scox at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: scox at redhat dot com @ 2008-01-25 14:54 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From scox at redhat dot com  2008-01-25 14:54 -------
    * 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.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=5641

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-25 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-18  1:30 [Bug general/5641] New: Assume there's always a sysroot cagney at redhat dot com
2008-01-25 14:54 ` [Bug general/5641] " scox at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).