This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
/an/absolute/path/program.debug; Was: [SCM] master: Add -sysroot option to fhpd.
- From: Andrew Cagney <cagney at redhat dot com>
- To: Stan Cox <scox at redhat dot com>
- Cc: frysk at sourceware dot org
- Date: Mon, 14 Jan 2008 11:48:06 -0500
- Subject: /an/absolute/path/program.debug; Was: [SCM] master: Add -sysroot option to fhpd.
- References: <20080114051518.31275.qmail@sourceware.org>
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