From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Fqd7ARU/aWnXNQUAWB0awg (envelope-from ) for ; Thu, 15 Jan 2026 14:25:09 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=bEeQSz5Q; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E873A1E08D; Thu, 15 Jan 2026 14:25:08 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 6739D1E08D for ; Thu, 15 Jan 2026 14:25:08 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id CC6934BA2E2B for ; Thu, 15 Jan 2026 19:25:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC6934BA2E2B Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=bEeQSz5Q Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 699184BA2E1E for ; Thu, 15 Jan 2026 19:24:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 699184BA2E1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 699184BA2E1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768505071; cv=none; b=tESovn4/rbMFReyIY/+Xkcv4v5ByEPPDM7dehA1MTKhHV/GS81ehTjahZTe/ZLYgPfkyF1Inmi4h1AAXLCx3p8rLFrFvkezLvY8Mxxm3kj98t0kzRC0wotK8q3QGZn8Nyg5ixMhuIO8gUZdL8+uml8JHqx6tCg33stDjUwxhkBw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768505071; c=relaxed/simple; bh=u+HB7NVQGfPRwODoIxZJC0qX2VEebdPmTN8uvuPeGrU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wddS3neyyBTBXQpkR/eDnKghgvhaLb2O65rdKDrfMzEHzihwQ2/hKiYFIc9mKHJhtC46o53zN2zdlb5119mYoLvXQKCzhs8jabn+eP8FUcTQS9WgP/yqbnCjV/TwW8BaOjNcWzqqTbeqnrVuUwNQwEWVu4Ka5ns33oemhU/I99o= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 699184BA2E1E Received: from eig-obgw-5004b.ext.cloudfilter.net ([10.0.29.208]) by cmsmtp with ESMTPS id gSV8vP9L9CxrGgSxLvhyiN; Thu, 15 Jan 2026 19:24:31 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id gSxKv1StMqfpWgSxKvDTes; Thu, 15 Jan 2026 19:24:30 +0000 X-Authority-Analysis: v=2.4 cv=A55sP7WG c=1 sm=1 tr=0 ts=69693eee a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=vUbySO9Y5rIA:10 a=ItBw4LHWJt0A:10 a=_ZhYKdCeAAAA:8 a=zstS-IiYAAAA:8 a=DVSGXNicH9Iyqk6jLGgA:9 a=zZCYzV9kfG8A:10 a=uqOk3ZSnBfCTOznnrPA1:22 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 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:Date:References:In-Reply-To :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=PTxnO4Rie4TwVBKrHIkYakf0zGlT1+zE4G3CXXPWZqA=; b=bEeQSz5QGdppemhpXr21M3YZx8 sgPS0C87TQLAeD73AMG5pXiGF04M1aFhvJflc3pJHItcgOflurYOIW9j/9ccul53BqvEgXnwzBHWm Wfs6iLIlxKVAENxR+arsJwSj7; Received: from 97-122-114-32.hlrn.qwest.net ([97.122.114.32]:53806 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vgSxK-00000000idd-0tPD; Thu, 15 Jan 2026 12:24:30 -0700 From: Tom Tromey To: simon.marchi@polymtl.ca Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] gdb, gdbsupport, gdbserver: add support for printf 't' length modifier In-Reply-To: <20260112182407.622150-1-simon.marchi@polymtl.ca> (simon marchi's message of "Mon, 12 Jan 2026 13:24:02 -0500") References: <20260112182407.622150-1-simon.marchi@polymtl.ca> X-Attribution: Tom Date: Thu, 15 Jan 2026 12:24:28 -0700 Message-ID: <87sec6el1v.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.114.32 X-Source-L: No X-Exim-ID: 1vgSxK-00000000idd-0tPD X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-114-32.hlrn.qwest.net (bapiya) [97.122.114.32]:53806 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfJHy/qT8tW6uXYav3tPk/cdAhv7tek2O/hrLi0PGrcGqK1Jns93pAXF77+v4D5gdG6b5tn/ZMi4fBhJAjLEnMUNcxQto7g+7abeWdVdFcGKFawMvzriO RQ8CQi8yWwlk2SpP41hWFiAvhGFi/4HK/2G67CW70Be8GH6xVBzxaFjXHGBpBhSnPiYf8G5FkE5v4L7yALkMH63VU3Pg0oh/fAI= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Simon" == simon marchi writes: Simon> Add support for the `t` length modifier in format_pieces, which Simon> gdb_printf ultimately uses (through ui_out::vmessage). Modify the three Simon> users of format_pieces: gdb's printf command, gdb's ui_out::vmessage Simon> function and gdbserver's ax_printf function. Thanks. These modifiers are one of the clearest reasons that printf should be replaced. I think we should generally avoid them. We've already got plongest, etc; which seem safer. See commit a1537331 (the "other direction") but there's also commit a5adb8f3 and probably more. Anyway, it's ok. Approved-By: Tom Tromey Tom