Gregory P. Smith wrote:
> On Fri, Feb 11, 2005 at 01:27:50AM -0600, Hareesh Nagarajan wrote:
> > 1. warning: Unable to find dynamic linker breakpoint function.
> > GDB will be unable to debug shared library initializers
> > and track explicitly loaded dynamic code.
>
> I also see the above error and am unable to do useful debugging
> of dynamically loaded code.  this is a problem.  any ideas on a
> fix?

Not a fix, but a workaround:

--- /usr/portage/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild  2005-02-19 
21:48:06.000000000 +0100
+++ /usr/local/portage/sys-libs/glibc/glibc-2.3.4.20050125-r1.ebuild    
2005-02-24 23:54:34.000000000 +0100
@@ -371,8 +371,10 @@
        fi
 
        # now, strip everything but the thread libs #46186
        mkdir -p ${T}/thread-backup
        mv ${D}$(alt_libdir)/lib{pthread,thread_db}* ${T}/thread-backup/
+       # Also, don't strip the dynamic linker:
+       mv ${D}/$(get_libdir)/ld-* ${T}/thread-backup
        if use !nptlonly && want_nptl ; then
                mkdir -p ${T}/thread-backup/tls
                mv ${D}$(alt_libdir)/tls/lib{pthread,thread_db}* 
${T}/thread-backup/tls

Benno
--
[email protected] mailing list

Reply via email to