From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14228 invoked by alias); 20 Feb 2006 03:16:32 -0000 Received: (qmail 14011 invoked by uid 22791); 20 Feb 2006 03:16:31 -0000 X-Spam-Check-By: sourceware.org Received: from web34705.mail.mud.yahoo.com (HELO web34705.mail.mud.yahoo.com) (209.191.68.154) by sourceware.org (qpsmtpd/0.31) with SMTP; Mon, 20 Feb 2006 03:16:30 +0000 Received: (qmail 35252 invoked by uid 60001); 20 Feb 2006 03:16:28 -0000 Message-ID: <20060220031628.35250.qmail@web34705.mail.mud.yahoo.com> Received: from [24.19.222.108] by web34705.mail.mud.yahoo.com via HTTP; Sun, 19 Feb 2006 19:16:28 PST Date: Mon, 20 Feb 2006 05:07:00 -0000 From: Frank Chen Subject: gdbserver couldn't find thread library To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/msg00261.txt.bz2 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? Thanks, Frank __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com