This is the mail archive of the gdb@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]

Re: warning: Unable to find dynamic linker breakpoint function.


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 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




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