From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14557 invoked by alias); 16 Apr 2007 14:10:54 -0000 Received: (qmail 14538 invoked by uid 22791); 16 Apr 2007 14:10:53 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Apr 2007 15:10:40 +0100 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0) with ESMTP id l3GEAT9W002435; Mon, 16 Apr 2007 16:10:29 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.0/8.14.0/Submit) id l3GEARpW030103; Mon, 16 Apr 2007 16:10:27 +0200 (CEST) Date: Mon, 16 Apr 2007 14:19:00 -0000 Message-Id: <200704161410.l3GEARpW030103@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: yoriko@sm.sony.co.jp CC: gdb-patches@sourceware.org In-reply-to: <20070416111505.AE36.YORIKO@sm.sony.co.jp> (message from Yoriko Komatsuzaki on Mon, 16 Apr 2007 11:39:55 +0900) Subject: Re: deal thread id as unsigned References: <20070416111505.AE36.YORIKO@sm.sony.co.jp> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00249.txt.bz2 > Date: Mon, 16 Apr 2007 11:39:55 +0900 > From: Yoriko Komatsuzaki > > Hello. > > I would like to ask you to consider this tiny patch about thread id type. > Thread id is unsigned type in Linux. I believe it used to be a signed type in Linux. Anyway, you can't really change it, since on other OS'es the type defenitely is signed. You'll only really notice this when the msb is set anyway. I think this happens on the Linux threads implementation of today the thread id isn't an integer at all, but a pointer instead. This suggests that it should really be printed as an (unsigned) hexadecimal number. Doing so doesn't need any changes to defs.h and therefore wouldn't affect any other platforms at all. Mark