From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id JdiBBX3032mpRRoAWB0awg (envelope-from ) for ; Wed, 15 Apr 2026 16:26:37 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VH4UxR78; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C743B1E0BC; Wed, 15 Apr 2026 16:26:36 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,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 14B8B1E0BC for ; Wed, 15 Apr 2026 16:26:35 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 684C64BA23CF for ; Wed, 15 Apr 2026 20:26:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 684C64BA23CF Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VH4UxR78 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 84F2C4BA2E0E for ; Wed, 15 Apr 2026 20:26:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 84F2C4BA2E0E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 84F2C4BA2E0E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776284765; cv=none; b=Uuq6Hf41Czd1E69HSNMXidl+Qgke0yBR6s8U/RD1wsGpXKlYksV277liTmzVDnzA1fQG4UMWjFr9PGKr9wHfVFRCjbD+6bFg8Odb3YBpTAESKVeDIAz6ehtIRUySmit14g9TWbw1tSJgIJpHYEfGCr6juQCZQfLrAEEofSC5Y70= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776284765; c=relaxed/simple; bh=4UQ6OzO8DWGdauWwz3b2Yxgit81nTYDCEg7w5o2lV0M=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=mXVpQVjgQk5C0dhYMEy4XJt+R0saq6DrKscz4o1fpnJmDVPBr1M9EqUH8eTQ2zVhBgXqhgRprkCam5t3P8Cyjx7iia7glKSptZsacLtt1pR3jEQujZ8IKiKCNdVzUcy12wZkqojVsZDLSBCapT7Ic6Kfzgoi5W8VNwp89g0teQs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84F2C4BA2E0E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776284765; 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=qBE7i+Q/OrJSzhE0Dh+0kJ9zfCCXAIuCFXZpIFq89ys=; b=VH4UxR78gxXNwGuITMotMVn8xeZ8UmN+joSOlVp/Dwq3bAceUaqK/0rNQ87+1ieMOvFLIN BqUBzRRMOyfyH5ujOk9zSKl5GjkyUq4+ukaB8fARgdcRZ3ZUE5lYo5btcwCJKOFQNNW3mY 2S181O+/SjpPI4sUwgptY1TXv0eqR0E= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-516-GSYMeuvhNsSAOraw8I4w0A-1; Wed, 15 Apr 2026 16:26:04 -0400 X-MC-Unique: GSYMeuvhNsSAOraw8I4w0A-1 X-Mimecast-MFC-AGG-ID: GSYMeuvhNsSAOraw8I4w0A_1776284763 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-488e12db7e0so41719975e9.3 for ; Wed, 15 Apr 2026 13:26:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776284762; x=1776889562; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=qBE7i+Q/OrJSzhE0Dh+0kJ9zfCCXAIuCFXZpIFq89ys=; b=opGBgDwtbgtAXQVdXKmI7K/2bUAyy3RMTCRsIKmxW01awk4fCrDssMezFbhlS1TNRK a9uz3Q4PCHQt2zkpGqFWRqfhc/3KHNzbWGgj7wF5zxJr0TF4l3Axjk8ru/PeMZTW/UTa Mr8UNS+CYOtN+CYZ4pJP/eSQXlEd0efJde2Wc4D140E78ha5ohwPfuUk1jT/NjKU4Zfn dKaAIsx28JKGnYZLh1XANOpvcy4whM97hLk7iHVWRLaY4Jr0cd1YFPI83cZsBhE3fSFH FOkoLyCiW1eVlmGq6K6nJ/kB8kuqsOqRkKhl3U9+IedAcqoeIgchnupIiGHy4IW5nbYk lrbA== X-Gm-Message-State: AOJu0Yyrr1e0NuGJM2VbeMq3kW/+fk6yIW9Ri1vgmtJnA94l0zW67kaX IxHUpKuo7GDjDDovgoJhR6QCZN90OQuad1yG5HAi+xkxUxzmUrvmkm8EL0EFQF7fZKTd79MTcw8 e+nV3MU7iNcLMM74hs8yYzAXo4cq829RPRHRGXN8ckL6Ioz9K7KFXa1Y1EB3j1isHN0HyQMFHu1 ywbEKb2zOfcRoWmyZfC++KLGIpgP6IbCKLP3sO61TBoTN8zIY= X-Gm-Gg: AeBDievFqpZBLBO0LTWTgqEttF8u7dbnkWB9GeBPmN3LvUvChClf7TIJ7VR5mPLZx7D b1px7d5nXbmqV+IM97PUESOPiWpKf7Z/pJhGD9AFenYZm/reWHTEOiB5pdJdf6eNmU2q/3+Jvna ++NCdZ5vo26wuYTNLQRB9OZPNO2BuOq8ffdyNcItxQDsvdNQBEdkD5dDc5f6E9wNxSgfX7MbBn3 MDJdUhWCk8leNNoCFdgWuEBYRRFz5+dOpYWvEIxrXM6dZ8NuoByLjnN2bakGIF+u6Zo6tMF4POP PhpGg2bX/FELGEAEaabayQOt7e1y8Y8io29JaiX1PcB40QX9GnOzgIMN+fqYbkVNWmSmqbGT1e7 w1P0eF84y6xnEg/ecLiMidLeKJ38= X-Received: by 2002:a05:600c:c08e:b0:488:9619:9bf4 with SMTP id 5b1f17b1804b1-488d686093bmr223977675e9.20.1776284762290; Wed, 15 Apr 2026 13:26:02 -0700 (PDT) X-Received: by 2002:a05:600c:c08e:b0:488:9619:9bf4 with SMTP id 5b1f17b1804b1-488d686093bmr223977545e9.20.1776284761787; Wed, 15 Apr 2026 13:26:01 -0700 (PDT) Received: from localhost ([31.111.84.232]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488f1e87fcasm72241545e9.9.2026.04.15.13.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2026 13:26:01 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 1/2] gdb: int to bool in struct entry_info Date: Wed, 15 Apr 2026 21:25:56 +0100 Message-Id: <7eb31f3cc02d146b7c16a1115dd4f5603d2eeb33.1776284661.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: mvrd-bAelF_JeixvTWkq_PlAjXEBDclSUxvzaYzdd-Y_1776284763 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 Convert 'struct entry_info' to use bool for flag fields. The places where these flags are set are updated too. There should be no user visible changes after this commit. --- gdb/objfiles.h | 8 ++++---- gdb/symfile.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 89ac559ce81..429d8c82681 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -115,11 +115,11 @@ struct entry_info /* The index of the section in which the entry point appears. */ int the_bfd_section_index; - /* Set to 1 iff ENTRY_POINT contains a valid value. */ - unsigned entry_point_p : 1; + /* Set to true iff ENTRY_POINT contains a valid value. */ + bool entry_point_p : 1; - /* Set to 1 iff this object was initialized. */ - unsigned initialized : 1; + /* Set to true iff this object was initialized. */ + bool initialized : 1; }; #define SECT_OFF_DATA(objfile) \ diff --git a/gdb/symfile.c b/gdb/symfile.c index d0ea9506c63..d583960d430 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -776,7 +776,7 @@ init_entry_point_info (struct objfile *objfile) if (ei->initialized) return; - ei->initialized = 1; + ei->initialized = true; /* Save startup file's range of PC addresses to help blockframe.c decide where the bottom of the stack is. */ @@ -786,7 +786,7 @@ init_entry_point_info (struct objfile *objfile) /* Executable file -- record its entry point so we'll recognize the startup file because it contains the entry point. */ ei->entry_point = bfd_get_start_address (objfile->obfd.get ()); - ei->entry_point_p = 1; + ei->entry_point_p = true; } else if (bfd_get_file_flags (objfile->obfd.get ()) & DYNAMIC && bfd_get_start_address (objfile->obfd.get ()) != 0) @@ -795,12 +795,12 @@ init_entry_point_info (struct objfile *objfile) runnable. There's no clear way to indicate this, so just check for values other than zero. */ ei->entry_point = bfd_get_start_address (objfile->obfd.get ()); - ei->entry_point_p = 1; + ei->entry_point_p = true; } else { /* Examination of non-executable.o files. Short-circuit this stuff. */ - ei->entry_point_p = 0; + ei->entry_point_p = false; } if (ei->entry_point_p) -- 2.25.4