This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

/an/absolute/path/program.debug; Was: [SCM] master: Add -sysroot option to fhpd.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]