From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25729 invoked by alias); 2 Nov 2005 08:00:42 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 25711 invoked by uid 22791); 2 Nov 2005 08:00:36 -0000 Received: from elbarto.betaversion.net (HELO elbarto.betaversion.net) (82.165.28.81) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 02 Nov 2005 08:00:36 +0000 Received: by elbarto.betaversion.net (Postfix, from userid 8) id 09A09A36F7; Wed, 2 Nov 2005 09:00:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id 5EF8CA3715 for ; Wed, 2 Nov 2005 09:00:19 +0100 (CET) Received: from elbarto.betaversion.net ([127.0.0.1]) by localhost (elbarto.betaversion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29678-05 for ; Wed, 2 Nov 2005 09:00:18 +0100 (CET) Received: from elbarto.betaversion.net (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id 89D5CA36F7 for ; Wed, 2 Nov 2005 09:00:18 +0100 (CET) Received: from p54A7E13F.dip.t-dialin.net (p54A7E13F.dip.t-dialin.net [84.167.225.63]) by admin.betaversion.net (Horde) with HTTP for ; Wed, 02 Nov 2005 09:00:18 +0100 Message-ID: <20051102090018.va9dq0zxu4eocc0o@admin.betaversion.net> Date: Wed, 02 Nov 2005 08:00:00 -0000 From: frank@betaversion.net To: gdb@sourceware.org Subject: Re: multithreaded programs on arm-linux References: <20051101191051.01may9ecmkmsc4wk@admin.betaversion.net> <20051101182213.GA388@nevyn.them.org> In-Reply-To: <20051101182213.GA388@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0) X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1 X-SW-Source: 2005-11/txt/msg00023.txt.bz2 Quoting Daniel Jacobowitz : > On Tue, Nov 01, 2005 at 07:10:51PM +0100, frank@betaversion.net wrote: >> libthread_db is available on the system (/lib/libthread_db.so.1). >> gdb successfully ran "thread_db_load()". >> >> Any ideas how i can debug this? > > Has libpthread.so been stripped? Debug info can be removed, but you > must leave the static symbol table (.symtab) to use native libthread_db. No, it hasn't been stripped. And the the section .symtab also seems to be available. $ file libthread_db.so.1 libthread_db.so.1: ELF 32-bit LSB shared object, ARM, version 1 (ARM), not stripped $ readelf -a libthread_db.so.1 Section Headers: [...] [26] .symtab SYMTAB 00000000 0047ec 000f80 10 27 189 4 [...] Symbol table '.symtab' contains 248 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000100 0 SECTION LOCAL DEFAULT 1 2: 00000120 0 SECTION LOCAL DEFAULT 2 3: 0000041c 0 SECTION LOCAL DEFAULT 3 [...] 245: 00003254 268 FUNC GLOBAL DEFAULT 13 td_ta_clear_event 246: 000022a0 204 FUNC GLOBAL DEFAULT 13 td_thr_setfpregs 247: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ [...] Regards, Frank