From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12082 invoked by alias); 14 Jan 2008 16:50:39 -0000 Received: (qmail 12075 invoked by uid 22791); 14 Jan 2008 16:50:39 -0000 X-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_75,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Jan 2008 16:50:21 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m0EGoJAE008979 for ; Mon, 14 Jan 2008 11:50:19 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0EGoJCi017990 for ; Mon, 14 Jan 2008 11:50:19 -0500 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m0EGoI1j029497; Mon, 14 Jan 2008 11:50:19 -0500 Message-ID: <478B9246.3060505@redhat.com> Date: Mon, 14 Jan 2008 16:50:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Stan Cox CC: frysk@sourceware.org Subject: /an/absolute/path/program.debug; Was: [SCM] master: Add -sysroot option to fhpd. References: <20080114051518.31275.qmail@sourceware.org> In-Reply-To: <20080114051518.31275.qmail@sourceware.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00022.txt.bz2 scox@sourceware.org wrote: > +/** > + * Given: a mock generated /sys/root/dir/usr/bin/program > + * /sys/root/dir/usr/lib/debug/usr/bin/program.debug > + * Elfutils can be given an absolute or relative path to look for program.debug. > + * It will look in: > + * 1. /sys/root/dir/usr/bin/program.debug > + * 2. /sys/root/dir/usr/bin/a/relative/path/program.debug > + * 3. /an/absolute/path/sys/root/dir/usr/bin/program.debug > I'm not sure I follow this one. > + * It would be helpful if it also looked in /an/absolute/path/program.debug > + * so it could be given /sys/root/dir/usr/lib/debug/usr/bin. Lacking that we > + * need to generate a relative path that has the same effect. > The sysroot, by defining the top-level of the debug-info tree, provides a consistent root for locating both: -> the debug info -> the source code directory search paths are different, so, I think, would want to be manipulated using a separate command; and their interaction with sysroot would need to be carefully considered. For instance, given $SYSROOT, should it search $SYSROOT/$DEBUGPATH? > + * XXX: Change to use java.io.File? > Yes, definitely. Andrew