From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29476 invoked by alias); 17 Sep 2011 02:29:07 -0000 Received: (qmail 29467 invoked by uid 22791); 17 Sep 2011 02:29:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Sep 2011 02:28:51 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1D0A42BB294; Fri, 16 Sep 2011 22:28:51 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7OYfxfqSs+M2; Fri, 16 Sep 2011 22:28:51 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C829D2BB1FD; Fri, 16 Sep 2011 22:28:50 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id ED7F3145615; Fri, 16 Sep 2011 22:28:40 -0400 (EDT) Date: Sat, 17 Sep 2011 06:47:00 -0000 From: Joel Brobecker To: John Spencer Cc: gdb-patches@sourceware.org, Pedro Alves Subject: Re: wrong assumptions about pthread_t being numeric Message-ID: <20110917022840.GD17681@adacore.com> References: <4E73D06F.603@barfooze.de> <201109170000.43306.pedro@codesourcery.com> <4E73D806.2040302@barfooze.de> <201109170130.42276.pedro@codesourcery.com> <4E73F1A4.2020606@barfooze.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E73F1A4.2020606@barfooze.de> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2011-09/txt/msg00335.txt.bz2 > i disagree. adding a proper solution once is superior to creating > dozens of special case hacks. also it saves a lot of time in the long > term. Based on my experience so far, I have to agree with Pedro. But if you do have a superior solution, we'll take a look. I still have to tell you that I won't like it if your solution makes the code harder to read. Sometimes, that's OK because it helps achieving portability. But when there is no such need for portability, it just gets in the way. Let's also be pragmatic, here and fix the problems that we know we have. -- Joel