From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5044 invoked by alias); 26 Jun 2002 17:24:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5036 invoked from network); 26 Jun 2002 17:24:27 -0000 Received: from unknown (HELO sj-msg-core-3.cisco.com) (171.70.157.152) by sources.redhat.com with SMTP; 26 Jun 2002 17:24:27 -0000 Received: from nisser.cisco.com (nisser.cisco.com [171.71.176.85]) by sj-msg-core-3.cisco.com (8.12.2/8.12.2) with ESMTP id g5QHGHK5004843 for ; Wed, 26 Jun 2002 10:16:17 -0700 (PDT) Received: from GCHISHOL-W2K.cisco.com ([10.66.227.56] (may be forged)) by nisser.cisco.com (8.8.6 (PHNE_14041)/CISCO.SERVER.1.2) with ESMTP id KAA02254 for ; Wed, 26 Jun 2002 10:16:16 -0700 (PDT) Message-Id: <5.1.0.14.2.20020626100642.02b055a0@ringer.cisco.com> X-Sender: gchishol@ringer.cisco.com Date: Wed, 26 Jun 2002 10:24:00 -0000 To: gdb@sources.redhat.com From: Glenn Chisholm Subject: Threads GDB 5.2 Linux Help Needed Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2002-06/txt/msg00268.txt.bz2 G'Day, I am currently working on a system that has gdb 5.2 when I debug a threaded program it acts like I have no thread support. However if I take the exact same gdb binary and the same program onto another host it works. Now I realize that I could be hitting 1000 different things machine hopping however here it is on a working system: > ./gdb a.out GNU gdb 5.2 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) run Starting program: /local/gchishol/gdb/bin/a.out [New Thread 1024 (LWP 15070)] [New Thread 2049 (LWP 15079)] [New Thread 1026 (LWP 15080)] [New Thread 2051 (LWP 15081)] Program received signal SIGINT, Interrupt. Here it is on the non working system: # ./gdb a.out GNU gdb 5.2 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) run Starting program: /local/local1/core_dir/a.out Program received signal SIG32, Real-time event 32. 0x2585ede6 in sigsuspend () from /lib/libc.so.6 (gdb) For the life of me I can not work out what is happening. The libthread_db seems to be available on both hosts. When I strace I can see the non working system open the library on both hosts. In this case it is the pthread.c from the gdb testsuite. The gdb is 5.2 built on the working system, the other does not have a compiler. Am I missing a library? A clue? Can some one please point me at a starting point to get this working? Where should I look what libraries should I check? What debug can I watch? Anyone got a beer? glenn