Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Khem Raj <kraj@mvista.com>
To: Manoj Iyer <manjo@austin.ibm.com>
Cc: gdb@sources.redhat.com
Subject: Re: warning: Unable to find dynamic linker breakpoint function.
Date: Sat, 12 Mar 2005 00:14:00 -0000	[thread overview]
Message-ID: <42323446.1070401@mvista.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0503111518320.18338@lazy>

Hi Manoj,

This is happening because of stripped version of glibc I think. You need 
this patch for glibc and I think the problem should go away.

Index: glibc-2.3.3/elf/Versions
===================================================================
--- glibc-2.3.3.orig/elf/Versions
+++ glibc-2.3.3/elf/Versions
@@ -54,5 +54,7 @@
_dl_get_tls_static_info; _dl_allocate_tls_init;
_dl_tls_setup; _dl_rtld_di_serinfo;
_dl_make_stack_executable;
+ # Only here for gdb while a better method is developed.
+ _dl_debug_state;
}
}


Manoj Iyer wrote:

>latest cvs GDB gives me a warning that it cannot set breakpoint in dynamic
>linker, but GDB from RH sources works ok. Sometihng in GDB changed? I saw
>a similar discussion for AMD64 last year (between Daniel and Adam
>Richard), but it does not make clear why this would happen on cvs version
>and not on older versions of GDB.
>
>Platform: ppc64
>OS: RH 4.
>
>---------------- CVS version of GDB --------------------
>GNU gdb 6.3.50.20050311-cvs
>This GDB was configured as "powerpc64-gnu-linux".
>
>GNU gdb 6.3.50.20050311-cvs
>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 "powerpc64-gnu-linux"...Using host libthread_db
>library "/lib64/tls/libthread_db.so.1".
>
>(gdb) br main
>Breakpoint 1 at 0x100005c4: file ../.././gdb/testsuite/gdb.base/annota1.c,
>line 32.
>(gdb) r
>Starting program: /tmp/manjo/2005-03-11/src/gdb/testsuite/gdb.base/annota1
>warning: Unable to find dynamic linker breakpoint function.
>GDB will be unable to debug shared library initializers
>and track explicitly loaded dynamic code.
>warning: Breakpoint address adjusted from 0x10010ac0 to 0x1000041c.
>
>Breakpoint 1, 0x00000000100005c4 in ?? ()
>(gdb)
>
>----------------------------- end cvs version ------------------
>
>----------- RH source RPM version ---------------------
>But the GDB GNU gdb Red Hat Linux (6.3.0.0-0.13rh)
>This GDB was configured as "powerpc64-unknown-linux-gnu".
>
>GNU gdb Red Hat Linux (6.3.0.0-0.13rh)
>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 "powerpc64-unknown-linux-gnu"...Using host
>libthread_db library "/lib64/tls/libthread_db.so.1".
>
>(gdb) br main
>Breakpoint 1 at 0x100005c4: file ../.././gdb/testsuite/gdb.base/annota1.c,
>line 32.
>(gdb) r
>Starting program: /tmp/manjo/2005-03-11/src/gdb/testsuite/gdb.base/annota1
>
>Breakpoint 1, main () at ../.././gdb/testsuite/gdb.base/annota1.c:32
>32        int my_array[3] = { 1, 2, 3 };
>(gdb)
>GNU gdb Red Hat Linux (6.3.0.0-0.13rh)
>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 "powerpc64-unknown-linux-gnu"...Using host
>libthread_db library "/lib64/tls/libthread_db.so.1".
>
>(gdb) br main
>Breakpoint 1 at 0x100005c4: file ../.././gdb/testsuite/gdb.base/annota1.c,
>line 32.
>(gdb) r
>Starting program: /tmp/manjo/2005-03-11/src/gdb/testsuite/gdb.base/annota1
>
>Breakpoint 1, main () at ../.././gdb/testsuite/gdb.base/annota1.c:32
>32        int my_array[3] = { 1, 2, 3 };
>(gdb)
>
>-------------------- end RH source RPM ------------------
>
>Can some one help?
>
>-----
>manjo
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>+ Cogito ergo sum                                                          +
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  
>


  reply	other threads:[~2005-03-12  0:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11 21:42 Manoj Iyer
2005-03-12  0:14 ` Khem Raj [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-12-29 21:33 Adam Richard
2004-12-29 21:44 ` Daniel Jacobowitz
2004-12-31  0:36   ` Adam Richard
2004-12-31  0:41     ` Daniel Jacobowitz
2004-12-31 13:51       ` Adam Richard
2004-12-31 19:09         ` Daniel Jacobowitz
2005-01-04 23:04           ` Adam Richard
2005-01-04 23:07             ` Daniel Jacobowitz
2005-01-05  3:10               ` Adam Richard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42323446.1070401@mvista.com \
    --to=kraj@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=manjo@austin.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox