From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130987 invoked by alias); 14 Nov 2019 21:27:20 -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 130976 invoked by uid 89); 14 Nov 2019 21:27:19 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: gateway23.websitewelcome.com Received: from gateway23.websitewelcome.com (HELO gateway23.websitewelcome.com) (192.185.50.164) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Nov 2019 21:27:18 +0000 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway23.websitewelcome.com (Postfix) with ESMTP id ADC37BABE for ; Thu, 14 Nov 2019 15:25:32 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id VMcOiEuLwiJ43VMcOimi1h; Thu, 14 Nov 2019 15:25:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1t4NOD9lmQQcxjiTgfj15FA7GiGMT5nXww6XQLfdHYM=; b=AWL9JF54z8vycMFb2L+OrED3eX y+EPhghqoUVGfs6yQ8pWiUzgDM+RpqbAtcENe8YIzx9C4SdiSolYfP2syFNV1ltfqSpH513nzAe5N kG5gdTcSHHcUiluzL7YxAlWCQ; Received: from 174-29-59-178.hlrn.qwest.net ([174.29.59.178]:37868 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iVMcO-002h1R-9n; Thu, 14 Nov 2019 14:25:32 -0700 From: Tom Tromey To: Andrew Burgess Cc: Eli Zaretskii , simon.marchi@polymtl.ca, tromey@sourceware.org, palves@redhat.com, brobecker@adacore.com, kevinb@redhat.com, gdb-patches@sourceware.org Subject: Re: [pushed] gdb: Support printf 'z' size modifier References: <20191112235315.5BD6728171@gnutoolchain-gerrit.osci.io> <83y2wi62jp.fsf@gnu.org> <20191114164945.GP11037@embecosm.com> Date: Thu, 14 Nov 2019 21:27:00 -0000 In-Reply-To: <20191114164945.GP11037@embecosm.com> (Andrew Burgess's message of "Thu, 14 Nov 2019 16:49:45 +0000") Message-ID: <87a78y1778.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-11/txt/msg00411.txt.bz2 >>>>> "Andrew" == Andrew Burgess writes: Andrew> For the long long case we might also translate to %I64d if Andrew> USE_PRINTF_I64 is true. FWIW, today I debugged a crash on an internal test case that turned out to happen because format_pieces does not recognize %I64d, but format.c also already changes %lld to %I64d. So, we need to handle something here. I am leaning toward just teaching format.c about %I64d as well. Tom