From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id aTukErivsWnHBSQAWB0awg (envelope-from ) for ; Wed, 11 Mar 2026 14:08:56 -0400 Received: by simark.ca (Postfix, from userid 112) id 442041E0E1; Wed, 11 Mar 2026 14:08:56 -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.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, 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 293801E09A for ; Wed, 11 Mar 2026 14:08:55 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 9F0E64B920F6 for ; Wed, 11 Mar 2026 18:08:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F0E64B920F6 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 1EADF4BB58C8 for ; Wed, 11 Mar 2026 18:08:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1EADF4BB58C8 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1EADF4BB58C8 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773252509; cv=none; b=pqPC37ewRy3MwuV1YlhoAp/kNAEs/q5FT/EQiR8gdk9uBt44JlMobd8YEIo8o5+McMRvTV8GZbneDYKc+WxLfE7vcukwAgXa5beEPeCY1/XS/GJTIfgU69spnxPKhRjLClA2kxLnIhPjr3pX2yZEKtPfrouzo2uXrFmFxaGWfUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773252509; c=relaxed/simple; bh=uAygIV2SRQJJyLA/gspMEXq8antg4fC2524/zdtPjjc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=gm8pZ6PYDYiHjFhe1J6uyt9HyOSpELKKk8ZR464TgChrbnMZt2yx9Q8S9Mp1u8nJ/F1G2NXu5GSipXqPfvJemGGByuL0z4vjCeBpUz/3OlQzg35vT4NzYw63l4m+StaFW1Tr/46S8zwbNqwW89OiOjpUZZPb6Nd05bKQ35eli+A= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EADF4BB58C8 Received: by simark.ca (Postfix) id 85C541E0E7; Wed, 11 Mar 2026 14:08:26 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 04/23] gdb/dwarf: change need_gnat_info to return bool Date: Wed, 11 Mar 2026 14:05:29 -0400 Message-ID: <20260311180825.720803-5-simon.marchi@efficios.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260311180825.720803-1-simon.marchi@efficios.com> References: <20260311180825.720803-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Change-Id: I0bc5930cc3b30986682d50f5eaad39fb74b2db8e --- gdb/dwarf2/read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 155e5d94dbc7..57945a24fb13 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -755,7 +755,7 @@ static struct type *read_subrange_index_type (struct die_info *die, static struct type *die_type (struct die_info *, struct dwarf2_cu *); -static int need_gnat_info (struct dwarf2_cu *); +static bool need_gnat_info (struct dwarf2_cu *); static struct type *die_descriptive_type (struct die_info *, struct dwarf2_cu *); @@ -16079,12 +16079,12 @@ die_type (struct die_info *die, struct dwarf2_cu *cu) that allows to find parallel types through that information instead of having to do expensive parallel lookups by type name. */ -static int +static bool need_gnat_info (struct dwarf2_cu *cu) { /* Assume that the Ada compiler was GNAT, which always produces the auxiliary information. */ - return (cu->lang () == language_ada); + return cu->lang () == language_ada; } /* Return the auxiliary type of the die in question using its -- 2.53.0