From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10038 invoked by alias); 14 Aug 2006 15:58:53 -0000 Received: (qmail 10029 invoked by uid 22791); 14 Aug 2006 15:58:52 -0000 X-Spam-Check-By: sourceware.org Received: from imx2.starhub.net.sg (HELO imx2.starhub.net.sg) (203.116.254.42) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Aug 2006 16:58:48 +0100 Received: from kbsmtao1.starhub.net.sg (kbsmtao1.starhub.net.sg [203.116.2.164]) by imx2.starhub.net.sg (8.12.10/8.12.10) with ESMTP id k7EFrKMa024856 for ; Mon, 14 Aug 2006 23:53:20 +0800 Received: from wrobbie.solution-space.com ([218.212.248.112]) by kbsmtao1.starhub.net.sg (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTPP id <0J3Z00HJ7WDX1X10@kbsmtao1.starhub.net.sg> for gdb@sourceware.org; Mon, 14 Aug 2006 23:58:45 +0800 (SGT) Received: from localhost (localhost [127.0.0.1]) by wrobbie.solution-space.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id k7EFqOig013768 for ; Mon, 14 Aug 2006 23:52:26 +0800 Date: Mon, 14 Aug 2006 15:58:00 -0000 From: Rob Kramer Subject: Missing thread support.. To: gdb@sourceware.org Message-id: <200608142352.23711.robk@starhub.net.sg> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.9.1 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-08/txt/msg00116.txt.bz2 Hi, When trying to find a deadlock in my program, I noticed my gdb (6.4 for i586-linux target, cross-compiled by OpenEmbedded) lacks thread support. It doesn't detect when a new thread starts, and 'info threads' always returns an empty list. Below is the output on i586-linux, versus a proper setup that works as expected: OpenEmbedded distro (gdb 6.4): -------------------- This GDB was configured as "i586-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r 2 Starting program: /home/root/phello 2 Hello from node 0 Hello from node 1 -------------------- SUSE 10.1 (gdb 6.3): -------------------- This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r 2 Starting program: /home/rob/phello 2 [Thread debugging using libthread_db enabled] [New Thread -1210440016 (LWP 13673)] [New Thread -1210442848 (LWP 13676)] Hello from node 0 Hello from node 1 -------------------- I've probably misconfigured or mis-crosscompiled my gdb, but how can I find out where I should start looking? Is there a way gdb can tell me why it doesn't support thread debugging? Do the config.{log|status} files record what might be wrong? (It all seems correct to me) Glibc is version 2.4, (cross) gcc is 4.1.1, linux 2.6.16.27. Cheers! Rob -- 1.8026175e+12 furlongs per fortnight.