This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

symtab/1947: gdb should canonicalize symlinks when looking for .debug files


>Number:         1947
>Category:       symtab
>Synopsis:       gdb should canonicalize symlinks when looking for .debug files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 23 22:18:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     greenrd@greenrd.org
>Release:        gdb-6.3.0.0-1.21 (Fedora development release)
>Organization:
>Environment:
Fedora Core 3.92 (pre-FC4)
>Description:
When I tried to debug /usr/bin/rpmbuild, gdb couldn't find the debugging information (i.e. the .debug file) for that executable, because /usr/bin/rpmbuild is actually a symlink to /usr/lib/rpm/rpmb, and therefore the relevant .debug file was actually /usr/lib/debug/usr/lib/rpm/rpmb.debug. I would argue that gdb should canonicalize symlinks before looking for a .debug file, because it does not make sense to have a separate .debug file for a symlink. 
>How-To-Repeat:
Create a symlink to an executable which has an associated .debug file installed, that gdb can find.
Run gdb --args /path/to/symlink
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]