From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31016 invoked by alias); 5 Apr 2009 19:22:01 -0000 Received: (qmail 31004 invoked by uid 22791); 5 Apr 2009 19:22:00 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_37,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 05 Apr 2009 19:21:54 +0000 Received: from spaceape7.eur.corp.google.com (spaceape7.eur.corp.google.com [172.28.16.141]) by smtp-out.google.com with ESMTP id n35JLolM007724 for ; Sun, 5 Apr 2009 12:21:51 -0700 Received: from wf-out-1314.google.com (wfc25.prod.google.com [10.142.3.25]) by spaceape7.eur.corp.google.com with ESMTP id n35JLmJE018619 for ; Sun, 5 Apr 2009 12:21:48 -0700 Received: by wf-out-1314.google.com with SMTP id 25so2455685wfc.22 for ; Sun, 05 Apr 2009 12:21:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.221.11 with SMTP id t11mr1042317wfg.335.1238959307733; Sun, 05 Apr 2009 12:21:47 -0700 (PDT) In-Reply-To: <83vdpjarmx.fsf@gnu.org> References: <20090404184604.8524C1C759C@localhost> <200904041904.n34J4UXV013513@brahms.sibelius.xs4all.nl> <20090404192132.GA28232@caradoc.them.org> <834ox4cfz2.fsf@gnu.org> <20090404212114.GA3077@caradoc.them.org> <831vs7dcc1.fsf@gnu.org> <8ac60eac0904042047q39429d61laed945cf17606759@mail.gmail.com> <83vdpjarmx.fsf@gnu.org> Date: Sun, 05 Apr 2009 20:11:00 -0000 Message-ID: <8ac60eac0904051221w1ed36cf2gd876570920239442@mail.gmail.com> Subject: Re: improved thread id reporting From: Paul Pluzhnikov To: Eli Zaretskii Cc: drow@false.org, mark.kettenis@xs4all.nl, dje@google.com, gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-System-Of-Record: true 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: 2009-04/txt/msg00065.txt.bz2 On Sun, Apr 5, 2009 at 11:21 AM, Eli Zaretskii wrote: > Would it be a good idea to mention this in the manual? Something like this: Index: gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.578 diff -u -r1.578 gdb.texinfo --- gdb.texinfo 2 Apr 2009 15:56:08 -0000 1.578 +++ gdb.texinfo 5 Apr 2009 19:05:58 -0000 @@ -2469,11 +2469,14 @@ @sc{gnu}/Linux, you might see @smallexample -[New Thread 46912507313328 (LWP 25582)] +[New Thread 0x7f1bad6cd6d0 (LWP 17573)] @end smallexample @noindent -when @value{GDBN} notices a new thread. In contrast, on an SGI system, +when @value{GDBN} notices a new thread. The @var{systag} thread identifier +in this case is the same as the return value from @code{pthread_self}. + +In contrast, on an SGI system, the @var{systag} is simply something like @samp{process 368}, with no further qualifier. The example above changed because the format of thread-id on linux was changed here: linux-thread-db.c revision 1.30 date: 2007/05/14 16:52:12; author: drow; state: Exp; lines: +2 -2 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs as hexadecimal. but the manual was not updated. -- Paul Pluzhnikov