libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] [PATCH 2/7] Change debuglink lookup order


From: Daniel Jacobowitz
Subject: Re: [Libunwind-devel] [PATCH 2/7] Change debuglink lookup order
Date: Wed, 25 Jun 2008 08:23:40 -0400
User-agent: Mutt/1.5.17 (2008-05-11)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]