From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +AimHzGjwmkjKzcAWB0awg (envelope-from ) for ; Tue, 24 Mar 2026 10:44:01 -0400 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=wEPEAARP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 662481E04F; Tue, 24 Mar 2026 10:44:01 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham 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 CA1271E04F for ; Tue, 24 Mar 2026 10:44:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 4388B4BB5884 for ; Tue, 24 Mar 2026 14:44:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4388B4BB5884 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=wEPEAARP Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id EA06F4BA2E0E for ; Tue, 24 Mar 2026 14:43:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EA06F4BA2E0E 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 EA06F4BA2E0E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774363408; cv=none; b=bxHyyyfm0PWl54U7QKFHSVZcfjLGT3OxCypjtHnzKdDbh1zJnQbAdJTVAii8vG5oX6pL2p8ULWqXxyrr/BFw6u+grvlFdcJFp8gd+QIVAEiphRdRFQSFJZZmUZqOA13r5ctmSRbCzx9x7NpwqsKfjEVVcWKvniEyHwIPuOtlwK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774363408; c=relaxed/simple; bh=rtpju8UfMgtu6PYT5/ejOtfwWBrFqhmfOdS4M70M+JQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cGx9BPS107fC3Mp7+w/VP2qwTs843F8bcHcR9429IBMcqCNRh6mZDyW4c8GMrCCtJIBztzyWYkK9OTmur3Gol+3tbD9uyk5ewUSdKn8s6SUKSNT1vtvYzEDdUTx76K/9KArGAYHsQXfpn2U0Jqf0bS3zjm6BNzUInK6CsAnTA4k= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA06F4BA2E0E Received: from eig-obgw-6005b.ext.cloudfilter.net ([10.0.30.162]) by cmsmtp with ESMTPS id 52S1w13DYVCBN52ydwkd3E; Tue, 24 Mar 2026 14:43:27 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 52yAwIMlfHSQM52yAw28bN; Tue, 24 Mar 2026 14:42:59 +0000 X-Authority-Analysis: v=2.4 cv=GIQIEvNK c=1 sm=1 tr=0 ts=69c2a30e a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=Yq5XynenixoA:10 a=ItBw4LHWJt0A:10 a=IaU4q4F3dJ_U6HV1qEsA:9 a=zgiPjhLxNE0A:10 a=zZCYzV9kfG8A:10 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=nd94GjTOHA8YFYEwuACmHv6HCH/WCrMofTNSkK5EnDU=; b=wEPEAARPuc8nQOI/29X9ofd+Lr Pbxh2J2MyXYqzcaz/N36mVQ+q5jujbdsfAsYLy7WFhWJmPBESPN4OUIMXaXgdkePSaP8RcK50CtpN dAa85hy4+bHiQVXMoLHWnaw9B; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:43752 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w52yA-00000002zHQ-1afC; Tue, 24 Mar 2026 08:42:58 -0600 From: Tom Tromey To: Tom de Vries Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] [gdbsupport] Poison ctype.h / cctype functions In-Reply-To: <79de1f3b-1ef4-4ced-8f6d-ad1408eab73b@suse.de> (Tom de Vries's message of "Tue, 24 Mar 2026 14:55:00 +0100") References: <20260322160338.3224997-1-tdevries@suse.de> <87jyv28wbg.fsf@tromey.com> <79de1f3b-1ef4-4ced-8f6d-ad1408eab73b@suse.de> X-Attribution: Tom Date: Tue, 24 Mar 2026 08:42:56 -0600 Message-ID: <87h5q570gf.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: 75.166.225.82 X-Source-L: No X-Exim-ID: 1w52yA-00000002zHQ-1afC X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:43752 X-Source-Auth: tom+tromey.com X-Email-Count: 6 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNm1leBWfvtDQ7yY2tM81XeMLt+JlwdlpHt51T3e4YEWkRfhIi9tin8WvKbVN+z4mbzqz12bfFJ+SuJDNY7ee3MNvbNjsFslMkxBiueeIqV1e+8X/7vN KHjrb56YH1WmmUEcij1mM1r3EvrGfMEN4CotuZBHAhtJg1x6mJSvWOw6cNRXo5b/ilSVUufMdFtj7k5toV0HXPv+uvfkZpL3bNs= 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 >>>>> "Tom" == Tom de Vries writes: Tom> On 3/23/26 3:17 PM, Tom Tromey wrote: Tom> +POISON_CCTYPE (int isalnum (T c)); Tom> +POISON_CCTYPE (int std::isalnum (T c)); >> I suspect redefining standard functions like this is not allowed in >> C++. Tom> That's a pity. Tom> Then automatically checking this falls in the domain of precommit Tom> checkers. Maybe I could extend check-gnu-style to include this Tom> (though this isn't really a GNU style thing I suppose). Yeah. I considered adding a checker to avoid includes of but that doesn't actually prevent the use of these things, because they can be made visible via other includes anyway. Tom