On Wed, Jun 25, 2008 at 07:51:09AM -0400, Anderson Lizardo wrote:
> Current lookup order for e.g. /lib/libc.so.6 is:
> 
> 1) /lib/libc.so.6
> 2) /lib/.debug/libc.so.6
> 3) /usr/lib/debug/lib/libc.so.6
> 
> That does not work, because it will first read /lib/libc.so.6, see the
> debuglink pointing to "libc.so.6" and again try to lookup /lib/libc.so.6. This
> patch changes that order to: 
> 
> 1) /usr/lib/debug/lib/libc.so.6
> 2) /lib/.debug/libc.so.6
> 3) /lib/libc.so.6

The existing search order is the same as that used by other tools
which handle .gnu_debuglink, so I suggest you do not change it.  One
options is to reject separate debuginfo files that include a
.gnu_debuglink section.  Another would be to use any other naming
convention; Debian uses libc.so.6.debug.

-- 
Daniel Jacobowitz
CodeSourcery


_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to