Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71072 - sys-devel/gdb-6.2.1-r1 unable to debug shared libraries.
Summary: sys-devel/gdb-6.2.1-r1 unable to debug shared libraries.
Status: RESOLVED DUPLICATE of bug 52100
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-13 09:48 UTC by David Brown
Modified: 2005-12-15 23:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch glibc to not strip dynamic linker. (glibc-2.3.4-20040808-r1.ebuild.patch,506 bytes, patch)
2004-11-13 10:25 UTC, David Brown
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Brown 2004-11-13 09:48:10 UTC
Gdb is unable to track the dynamic loader and is unable to track dynamically loaded code.  Trying to debug dynamically loaded code becomes difficult, since there are no symbols.

davidb@old tmp $ gdb foo
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x8048394: file foo.c, line 6.
(gdb) r
Starting program: /tmp/foo
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Comment 1 David Brown 2004-11-13 10:10:46 UTC
This appears to be #52100.  It is not fixed by sys-libs/glibc-2.3.4.20040808-r1, since ld-2.3.4.so is still stripped.
Comment 2 David Brown 2004-11-13 10:25:16 UTC
Created attachment 43872 [details, diff]
Patch glibc to not strip dynamic linker.
Comment 3 SpanKY gentoo-dev 2004-12-05 00:15:02 UTC
as you can see in comment #5 on Bug 52100, not stripping ld is a workaround, not a fix
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-12-15 23:21:36 UTC

*** This bug has been marked as a duplicate of 52100 ***