From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16035 invoked by alias); 23 Jan 2008 18:16:27 -0000 Received: (qmail 16027 invoked by uid 22791); 23 Jan 2008 18:16:27 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 23 Jan 2008 18:16:01 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 96D5C98375; Wed, 23 Jan 2008 18:15:59 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 70910980E0; Wed, 23 Jan 2008 18:15:59 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JHk8k-0004f3-I6; Wed, 23 Jan 2008 13:15:58 -0500 Date: Wed, 23 Jan 2008 18:16:00 -0000 From: Daniel Jacobowitz To: Olaf Hering Cc: gdb@sourceware.org Subject: Re: gdb follows symlinks when looking for debuginfo Message-ID: <20080123181558.GA17880@caradoc.them.org> Mail-Followup-To: Olaf Hering , gdb@sourceware.org References: <20080123161537.GA25123@suse.de> <20080123173137.GA15119@caradoc.them.org> <20080123180428.GA26139@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080123180428.GA26139@suse.de> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes 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/msg00235.txt.bz2 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: > 2953 open("/lib/libexpat.so.1", O_RDONLY) = 3 is not. I don't know what to suggest. The real location of the file, on an installed system, is probably relative to where the real debug info will be found. You can work around this with a couple of creative symlinks. For instance: > 2953 open("/mounts/instsys/usr/lib/YaST2/plugin/libpy2wfm.so.2.0.0.debug", O_RDONLY) = -1 ENOENT (No such file or directory) > 2953 open("/mounts/instsys/usr/lib/YaST2/plugin/.debug/libpy2wfm.so.2.0.0.debug", O_RDONLY) = -1 ENOENT (No such file or directory) > 2953 open("/mounts/instsys/usr/lib/debug//mounts/instsys/usr/lib/YaST2/plugin/libpy2wfm.so.2.0.0.debug", O_RDONLY) = -1 ENOENT (No such file or directory) The third path is wrong for you, but you can make the second path right. Symlink /mounts/instsys/usr/lib/YaST2/plugin/.debug to /mounts/instsys/usr/lib/debug/usr/lib/YaST2/plugin. -- Daniel Jacobowitz CodeSourcery