From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8437 invoked by alias); 24 Jan 2008 13:38:48 -0000 Received: (qmail 8426 invoked by uid 22791); 24 Jan 2008 13:38:47 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 24 Jan 2008 13:38:27 +0000 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 216FE266E2 for ; Thu, 24 Jan 2008 14:38:25 +0100 (CET) Date: Thu, 24 Jan 2008 13:38:00 -0000 From: Olaf Hering To: gdb@sourceware.org Subject: Re: gdb follows symlinks when looking for debuginfo Message-ID: <20080124133824.GA915@suse.de> References: <20080123161537.GA25123@suse.de> <20080123173137.GA15119@caradoc.them.org> <20080123180428.GA26139@suse.de> <20080123181558.GA17880@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20080123181558.GA17880@caradoc.them.org> X-DOS: I got your 640K Real Mode Right Here Buddy! X-Homeland-Security: You are not supposed to read this line! You are a terrorist! User-Agent: Mutt und vi sind doch schneller als Notes (und GroupWise) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00248.txt.bz2 On Wed, Jan 23, Daniel Jacobowitz wrote: > On Wed, Jan 23, 2008 at 07:04:28PM +0100, Olaf Hering wrote: > > For 3 yast libs (the first 3 libs to load), the path is wrong. > > Are these the only ones symlinked? I bet this: > > > 2953 open("/usr/lib/YaST2/plugin/libpy2wfm.so.2", O_RDONLY) = 7 > > is a symlink to /mounts/instsys, and this: The YaST2 directory is a symlink: /usr/lib/YaST2 -> /mounts/instsys/usr/lib/YaST2 > > 2953 open("/lib/libexpat.so.1", O_RDONLY) = 3 > > is not. /lib/libexpat.so.1 -> libexpat.so.1.5.2 -> /mounts/instsys/lib/libexpat.so.1.5.2 I will create a tmpfs bind mount to store the debuginfo in /mounts/instsys/usr/lib/debug. This will work for all libs, except the ones in /usr/lib/YaST2/plugin/