From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11400 invoked by alias); 3 Nov 2005 15:07:12 -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 10984 invoked by uid 22791); 3 Nov 2005 15:07:09 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 15:07:09 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EXggF-0008AR-9n; Thu, 03 Nov 2005 10:07:07 -0500 Date: Thu, 03 Nov 2005 15:07:00 -0000 From: Daniel Jacobowitz To: Frank Meerkoetter Cc: gdb@sourceware.org Subject: Re: multithreaded programs on arm-linux Message-ID: <20051103150707.GA31256@nevyn.them.org> Mail-Followup-To: Frank Meerkoetter , gdb@sourceware.org References: <20051102134615.0uzlh7ogng4kc44o@admin.betaversion.net> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051103160009.8sy1s7ydxhwok0ww@admin.betaversion.net> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00063.txt.bz2 On Thu, Nov 03, 2005 at 04:00:09PM +0100, Frank Meerkoetter wrote: > Quoting Daniel Jacobowitz : > > Hi, > > >OK, let's start at the top then. > > > >1. Is gdbserver linked to libthread_db.so during build? > > I'm not using the gdbserver but rather running the gdb on > the target. The reason is that i didn't managed to > remote debug a program which is dynamically linked. > > I assume gdb is linked against libthread_db.so GDB uses dlopen to get at libthread_db.so. Does it do that? Does initialization fail? 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. -- Daniel Jacobowitz CodeSourcery, LLC