From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14002 invoked by alias); 22 Apr 2010 16:59:38 -0000 Received: (qmail 13988 invoked by uid 22791); 22 Apr 2010 16:59:36 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Apr 2010 16:59:29 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3MGxR7u028362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 22 Apr 2010 12:59:27 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3MGxOsp012672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 22 Apr 2010 12:59:26 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o3MGxOkb001185 for ; Thu, 22 Apr 2010 18:59:24 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o3MGxOdA001184 for gdb@sources.redhat.com; Thu, 22 Apr 2010 18:59:24 +0200 Date: Thu, 22 Apr 2010 16:59:00 -0000 From: Jan Kratochvil To: gdb Mailing List Subject: Re: pthread_t ids of threads not showed by "thread info" Message-ID: <20100422165924.GA1109@host0.dyn.jankratochvil.net> References: <20100422151855.GA3128@geppetto> <20100422154404.GB3128@geppetto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100422154404.GB3128@geppetto> User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00083.txt.bz2 On Thu, 22 Apr 2010 17:44:04 +0200, Stefano Sabatini wrote: > The difference between the first and the second scenario is that the > first output was issued debugging a core, the second one by running a > process through gdb run. Yes, IIRC GDB does not use linux-thread-db.c (libthread_db) for core files. `info threads' displays LWPs (and not real threads) in such case. > May be possible that it is not possible to extract the pthread_t > info from a core file? LWPs do not have associated pthread_t. > Can you explain why? IIRC I tried once to add linux-thread-db.c for core files but for some reason it was not completely trivial and I rather debugged the specific case by hand iterating some pthread_t structures for that crash. Regards, Jan