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.
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.
Created attachment 43872 [details, diff] Patch glibc to not strip dynamic linker.
as you can see in comment #5 on Bug 52100, not stripping ld is a workaround, not a fix
*** This bug has been marked as a duplicate of 52100 ***