From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12071 invoked by alias); 20 Feb 2006 04:33:42 -0000 Received: (qmail 12061 invoked by uid 22791); 20 Feb 2006 04:33:42 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 20 Feb 2006 04:33:40 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FB2jy-0000Ng-CB; Sun, 19 Feb 2006 23:33:38 -0500 Date: Mon, 20 Feb 2006 05:49:00 -0000 From: Daniel Jacobowitz To: Frank Chen Cc: gdb@sources.redhat.com Subject: Re: gdbserver couldn't find thread library Message-ID: <20060220043338.GA1424@nevyn.them.org> Mail-Followup-To: Frank Chen , gdb@sources.redhat.com References: <20060220031628.35250.qmail@web34705.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060220031628.35250.qmail@web34705.mail.mud.yahoo.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes 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 X-SW-Source: 2006-02/txt/msg00262.txt.bz2 On Sun, Feb 19, 2006 at 07:16:28PM -0800, Frank Chen wrote: > I am debugging a multi-threaded program using > gdbserver. The function call to td_ta_new in > thread_db_init() (in thread_db.c) returns > TD_NOLIBTHREAD. And the program does not run properly > afterwards. > > However, when I debug the same program locally using > gdb, it works fine. The gdb displays the following > message during start up. > > Using host libthread_db library > "/lib/tls/libthread_db.so.1" > > Since this is a UI program, running gdb locally > doesn't work. I would like to use the gdbserver. It > seems that I need to point gdbserver to the above > location for the thread library. Could someone tell me > how to do that? You need to point GDB at the exact same versions of libraries that you are using on the machine running gdbserver. I recommend using "set solib-absolute-prefix". If you're still having trouble, and you can't find an answer in the list archives, please show us exactly what commands you are using. -- Daniel Jacobowitz CodeSourcery