From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16593 invoked by alias); 4 Aug 2014 14:01:36 -0000 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 Received: (qmail 16526 invoked by uid 89); 4 Aug 2014 14:01:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 04 Aug 2014 14:01:17 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s74E1D9Y031963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Aug 2014 10:01:14 -0400 Received: from barimba (ovpn-113-151.phx2.redhat.com [10.3.113.151]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s74E1BF3017171 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 4 Aug 2014 10:01:11 -0400 From: Tom Tromey To: Alan Modra Cc: gdb-patches@sourceware.org Subject: Re: Prepare gdb for 64-bit obstacks References: <20140804085229.GP23728@bubble.grove.modra.org> Date: Mon, 04 Aug 2014 14:01:00 -0000 In-Reply-To: <20140804085229.GP23728@bubble.grove.modra.org> (Alan Modra's message of "Mon, 4 Aug 2014 18:22:29 +0930") Message-ID: <87ha1sqrq6.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-08/txt/msg00038.txt.bz2 >>>>> "Alan" == Alan Modra writes: Alan> Also for another upstream obstack change, obstack_base() now returning Alan> a void*. I didn't go wild with int -> size_t changes, making only Alan> obvious changes close to obstack calls. Alan> This patch of course also works with the existing libiberty obstacks. Alan> OK to apply? Alan> - printf_filtered (_(" Total memory used for objfile obstack: %d\n"), Alan> + printf_filtered (_(" Total memory used for objfile obstack: %lu\n"), Alan> + (unsigned long) Alan> obstack_memory_used (&objfile->objfile_obstack)); Alan> - printf_filtered (_(" Total memory used for BFD obstack: %d\n"), Alan> + printf_filtered (_(" Total memory used for BFD obstack: %lu\n"), Alan> + (unsigned long) Alan> obstack_memory_used (&objfile->per_bfd->storage_obstack)); It's more normal in gdb to use %s here along with pulongest (...). Ok with that change. thanks, Tom