From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18995 invoked by alias); 9 Feb 2010 01:23:38 -0000 Received: (qmail 18985 invoked by uid 22791); 9 Feb 2010 01:23:37 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS 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; Tue, 09 Feb 2010 01:23:31 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o191NUsA022845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 8 Feb 2010 20:23:30 -0500 Received: from qcore.mollernet.net (vpn-248-21.phx2.redhat.com [10.3.248.21]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o191NScq012375 for ; Mon, 8 Feb 2010 20:23:28 -0500 Message-ID: <4B70B90F.7060409@redhat.com> Date: Tue, 09 Feb 2010 01:23:00 -0000 From: Chris Moller User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: pr9164 patch References: <4B709B9A.3050001@redhat.com> <20100208233407.GA30829@caradoc.them.org> In-Reply-To: <20100208233407.GA30829@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2010-02/txt/msg00243.txt.bz2 On 02/08/10 18:34, Daniel Jacobowitz wrote: > On Mon, Feb 08, 2010 at 06:17:46PM -0500, Chris Moller wrote: > >> I was rooting around in the gdb c++ bug list a bit ago and came >> across this one: "sizeof should have unsigned type in print >> expressions." Assuming that, as in C/C++, size_t is typedeffed from >> unsigned int, the fix is a one-line patch in c-exp.y, attached. If >> that assumption is wrong, well, never mind... >> > > Try it on x86_64 - size_t is platform dependent, and it's often > unsigned long. > I did--it's 4 bytes on both i386 and x86_64. I just don't know about non-intel archs.