From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21499 invoked by alias); 12 Mar 2005 00:14:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21453 invoked from network); 12 Mar 2005 00:14:00 -0000 Received: from unknown (HELO av.mvista.com) (12.44.186.158) by sourceware.org with SMTP; 12 Mar 2005 00:14:00 -0000 Received: from [10.0.4.50] (av [127.0.0.1]) by av.mvista.com (8.9.3/8.9.3) with ESMTP id QAA25687; Fri, 11 Mar 2005 16:13:58 -0800 Message-ID: <42323446.1070401@mvista.com> Date: Sat, 12 Mar 2005 00:14:00 -0000 From: Khem Raj Reply-To: kraj@mvista.com Organization: MontaVista Software Inc. User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: Manoj Iyer CC: gdb@sources.redhat.com Subject: Re: warning: Unable to find dynamic linker breakpoint function. References: In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00133.txt.bz2 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 + >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >