From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22134 invoked by alias); 3 Nov 2005 16:28:25 -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 22026 invoked by uid 22791); 3 Nov 2005 16:28:20 -0000 Received: from elbarto.betaversion.net (HELO elbarto.betaversion.net) (82.165.28.81) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 16:28:20 +0000 Received: by elbarto.betaversion.net (Postfix, from userid 8) id 8F8F9A36ED; Thu, 3 Nov 2005 17:28:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id CF5D9A373E; Thu, 3 Nov 2005 17:28:10 +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 02255-07; Thu, 3 Nov 2005 17:28:09 +0100 (CET) Received: from elbarto.betaversion.net (localhost [127.0.0.1]) by elbarto.betaversion.net (Postfix) with ESMTP id D08B8A36ED; Thu, 3 Nov 2005 17:28:09 +0100 (CET) Received: from p54A7D878.dip.t-dialin.net (p54A7D878.dip.t-dialin.net [84.167.216.120]) by admin.betaversion.net (Horde) with HTTP for ; Thu, 03 Nov 2005 17:28:09 +0100 Message-ID: <20051103172809.nzyshptn7w5cscs0@admin.betaversion.net> Date: Thu, 03 Nov 2005 16:28:00 -0000 From: Frank Meerkoetter To: Daniel Jacobowitz Cc: gdb@sourceware.org Subject: Re: multithreaded programs on arm-linux References: <20051102134303.GA26674@nevyn.them.org> <20051102143909.GA27932@nevyn.them.org> <20051102165558.mg4g0d5htl8ockco@admin.betaversion.net> <20051102164925.GA31801@nevyn.them.org> <20051103093306.qyr5bz57icqo04ck@admin.betaversion.net> <20051103135617.GA29302@nevyn.them.org> <20051103160009.8sy1s7ydxhwok0ww@admin.betaversion.net> <20051103150707.GA31256@nevyn.them.org> <20051103165107.69fo0r6r2li8csws@admin.betaversion.net> <20051103155928.GA630@nevyn.them.org> In-Reply-To: <20051103155928.GA630@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/msg00066.txt.bz2 Quoting Daniel Jacobowitz : > On Thu, Nov 03, 2005 at 04:51:07PM +0100, Frank Meerkoetter wrote: >> >You'll need to attach a debugger to gdb and look at thread_db_init. >> >The first call will generally fail but a later one should succeed. >> >> frank@linux:~/gdb/gdb-6.3> global thread_db_init >> gdb/gdbserver/thread-db.c >> gdb/thread-db.c >> >> thread_db_init of the gdbserver could fail but not thread_db_init >> of the gdb. > > Try thread_db_new_objfile. thread_db_new_objfile() is called two times. On the first run it prints the library name and than branches on the falg using_thread_db to the label quit. There it returns without executing target_new_objfile_chain (objfile). The second time the same path is followed but without branching into the block protected by the flag dejavu. In neither cases is this line executed: /* Now attempt to open a connection to the thread library. */ err = td_ta_new_p (&proc_handle, &thread_agent); Regards, Frank