The other motivation for this kind of feature is so that you can ship
libraries in both object and source form, and make it easy for users to
refer to the source code in the debugger. You need to make absolute
paths into relative ones. Daniel, does GDB already have the ability to
do the substitution? In other words, does Dan's functionality provide
any additional leverage for that use case?
I'm not sure what you're asking. GDB has the ability to transform a
specified path into another path in source files. You have to get the
specified path into your objects somehow. We already know at least one
way to do this (the RPM debugedit tool, which we were talking about
using for our own packages too). Or you could do it in the compiler,
but then you have to make sure to compile everything with appropriate
flags :-)