From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KLJFLyIejmkfLDgAWB0awg (envelope-from ) for ; Thu, 12 Feb 2026 13:38:26 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=HxO02A44; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A3E2D1E0BA; Thu, 12 Feb 2026 13:38:26 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,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 DB84D1E08D for ; Thu, 12 Feb 2026 13:38:25 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 54A2A4B9DB5F for ; Thu, 12 Feb 2026 18:38:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 54A2A4B9DB5F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=polymtl.ca header.i=@polymtl.ca header.a=rsa-sha256 header.s=oct2025 header.b=HxO02A44 Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 73F514BA2E0A for ; Thu, 12 Feb 2026 18:38:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 73F514BA2E0A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 73F514BA2E0A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770921480; cv=none; b=WeEO/DkCbZ6kTB+OCpID18lh+q5RVXn5dn93y8sFzGIXnwA5RnHAwbxS5+MaCShFPiXdd2DaoyE5ZuZ1srPYqN+JM/0yYeRHZvv2UtgGH4ItcMC9Cl/Hl7VGlcY/dGBu4WyJcgaBaTItQvEa2FFcNUS9zSihxTpjrYoRTjNW1uU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770921480; c=relaxed/simple; bh=20JyIX30ZFD7TpqGxfD+cFYrF6+A1Ejaa6og3wi1vTE=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=sqntkZkOkAnrQ12kRF9taqFt68ruCZtLb3lOBht4u+qNX+POnkSD9kTRdgMSME0Y3pH7V+CQTreb77xp86aRPiJT7pXja/KpHa9qSgsjLKFyFu1fAQAGTCh6QsMAk3vL87USA2ppcaC6ZxhH5LOYeucBbcKhPxkbf+Iv4Bm4MGA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73F514BA2E0A Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 61CIbq85088008 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Feb 2026 13:37:57 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 61CIbq85088008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=oct2025; t=1770921478; bh=WWsycryXp8Yku0PW9+nfHMB7u3SNbtClShtqEUlocFw=; h=Date:Subject:To:Cc:From:In-Reply-To:From; b=HxO02A44xjMNm7PSzErfyAgcw3aRkLPLHqL988Hp3PKSShbLV2q6jy7uBNkEpzSkN E1QL7oBQJ6Qt60TerKN9uHx9i6ZX978LwCgQrboCYX3/m6Ze6HNgygz9fUtuhAFc5a B6KON04vTYRdycjvkHvWmrjv5veDQND7OZAEAN+EOIod3tCWNoqrLUMT8m2A13YOS+ oECTNDHHfQyvn3OEmmAl8QkxkgaAy6mQnp8ee3ydjfcDlWhhwxhHv4OPYHPd3lfT2i +oDBGSIXGTkyAlL5ZfzKO2UGUiSIfd3q+GjXL8dhBun8QvG2Lcc1JV0H1ZTBWfU+EK +rkQ0fjzqnt3Q== Received: by simark.ca (Postfix) id 452F71E08D; Thu, 12 Feb 2026 13:37:52 -0500 (EST) Message-ID: <6e24dbc0-3661-485b-8873-90df23d63c61@polymtl.ca> Date: Thu, 12 Feb 2026 13:37:51 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 5/8] gdb/ctf: check return value of ctf_type_align To: Tom Tromey Cc: gdb-patches@sourceware.org, Nick Alcock , Weimin Pan References: <20260203065435.3092465-1-simon.marchi@polymtl.ca> <20260203065435.3092465-6-simon.marchi@polymtl.ca> <87jywham3z.fsf@tromey.com> Content-Language: fr From: Simon Marchi In-Reply-To: <87jywham3z.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Thu, 12 Feb 2026 18:37:53 +0000 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 On 2/12/26 12:49 PM, Tom Tromey wrote: >>>>>> "Simon" == simon marchi writes: > > Simon> With this patch, if I enable the complaints, I see a bunch of messages > Simon> like this: > > Simon> During symbol reading: ctf_type_align read_structure_type failed - Type is not a complete type. > > I just wanted to rant a little about complaints. You can leave these in > if you want, but IME complaints are useless. I don't think we've ever > seen anyone fix a compiler bug on the basis of a complaint being issued. > And, I also don't recall ever debugging some user problem by enabling > complaints -- if a bug gets to that point, I'm invariably debugging the > reader. > > That is, they're just noise. > > Now, it might still be good to have a checker for DWARF and presumably > for CTF. But IMO that should be a separate tool. And for CTF it > doesn't even seem hard to do, given that these errors are coming > straight from it. > > thanks for listening, > Tom Thank you for you TED talk. I agree that I have never used complaints myself. If I had infinite time, I would report bugs to compilers about them, but I don't have that luxury. I don't mind removing complaints, but I would still keep the messages as logging statements (*_debug_printf), to at least be able to have a trace of what GDB is doing. Simon