This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2433: gdb creates debuginfo path incorrectly for symlinked files
- From: schommer at us dot ibm dot com
- To: gdb-gnats at sources dot redhat dot com
- Cc: ppjsand at us dot ibm dot com, jecarey at us dot ibm dot com
- Date: 24 Mar 2008 18:48:36 -0000
- Subject: gdb/2433: gdb creates debuginfo path incorrectly for symlinked files
- Reply-to: schommer at us dot ibm dot com
>Number: 2433
>Category: gdb
>Synopsis: gdb creates debuginfo path incorrectly for symlinked files
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Mar 24 18:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Pete Schommer
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
I have a debug info RPM that installs under /usr/lib/debug
The file is: /opt/cell/sdk/prototype/usr/lib64/dacs/debug/libdacs_hybrid.so.3.1
it install such that the /opt/cell is symlinked to /vnfs/optdev_DRV_20080319/opt/cell
When gdb tries to construct file names for each of the debug info file searches below, it assumes the base name of the shared lib to be:
/vnfs/optdev_DRV_20080319/opt/cell/sdk/prototype/usr/lib64/dacs/debug/libdacs_hybrid.so.3.1.debug
so when it tries to search in /usr/lib/debug for the shared lib it looks for:
/usr/lib/debug/vnfs/optdev_DRV_20080319/opt/cell/sdk/prototype/usr/lib64/dacs/debug/libdacs_hybrid.so.3.1.debug
which of course it can't find.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: