From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123160 invoked by alias); 14 Nov 2019 17:06:29 -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 123150 invoked by uid 89); 14 Nov 2019 17:06:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 spammy=HX-Languages-Length:652 X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Nov 2019 17:06:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573751186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8I0ITGkASAFyA43caCDNu5d+pqZs/F6q9Lw9kvPGtOs=; b=dF/xIMd8OO8kvPlhYmBJ9WnEW+iV9GAToXqk2Ku+F2CBFQPY8qR2RkvIt6UFbqUfJlZxo9 eBcZoMTgMD8dGp9Kh1s5mo9O3v9vCmcopbPcrqM/GjIdXIX5Ga/2CQ1VK/pRnLNbkMbVU2 lL054Yi0HPB+ZAbjdjKg8N3vETWKQiA= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-421-sNQFm2vqPiqGwwpfPFAryw-1; Thu, 14 Nov 2019 12:06:25 -0500 Received: by mail-wr1-f69.google.com with SMTP id p6so4795918wrs.5 for ; Thu, 14 Nov 2019 09:06:25 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f913:f700:56ee:75ff:fe8d:232b? ([2001:8a0:f913:f700:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id f13sm7491913wrq.96.2019.11.14.09.06.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Nov 2019 09:06:21 -0800 (PST) Subject: Re: [pushed] gdb: Support printf 'z' size modifier To: Andrew Burgess , Eli Zaretskii References: <20191112235315.5BD6728171@gnutoolchain-gerrit.osci.io> <83y2wi62jp.fsf@gnu.org> <20191114164945.GP11037@embecosm.com> Cc: noreply@gnutoolchain-gerrit.osci.io, simon.marchi@polymtl.ca, tromey@sourceware.org, brobecker@adacore.com, kevinb@redhat.com, gdb-patches@sourceware.org From: Pedro Alves Message-ID: <78e8882f-0e78-c64f-98d6-c5092df4f47e@redhat.com> Date: Thu, 14 Nov 2019 17:06:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20191114164945.GP11037@embecosm.com> X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-11/txt/msg00399.txt.bz2 On 11/14/19 4:49 PM, Andrew Burgess wrote: > * Eli Zaretskii [2019-11-14 14:54:50 +0200]: >=20 >> I believe this requires to use __USE_MINGW_ANSI_STDIO with the MinGW >> builds, since %z is not universally supported by the Windows runtime. >=20 > I only stumbled onto this issue as I hit a use of %z (which wasn't > guarded with __USE_MINGW_ANSI_STDIO) and wanted it to work now that > these strings pass through GDB's formatting code. Isn't gnulib taking care of this, by either enforcing __USE_MINGW_ANSI_STDI= O, or by replacing printf with it's own implementation? Thanks, Pedro Alves