From: Daniel Jacobowitz <drow@false.org>
To: Olaf Hering <olh@suse.de>
Cc: gdb@sourceware.org
Subject: Re: gdb follows symlinks when looking for debuginfo
Date: Wed, 23 Jan 2008 18:16:00 -0000 [thread overview]
Message-ID: <20080123181558.GA17880@caradoc.them.org> (raw)
In-Reply-To: <20080123180428.GA26139@suse.de>
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
next prev parent reply other threads:[~2008-01-23 18:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-23 16:16 Olaf Hering
2008-01-23 17:32 ` Daniel Jacobowitz
2008-01-23 18:04 ` Olaf Hering
2008-01-23 18:16 ` Daniel Jacobowitz [this message]
2008-01-24 13:38 ` Olaf Hering
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080123181558.GA17880@caradoc.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=olh@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox