From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from alt-proxy28.mail.unifiedlayer.com (alt-proxy28.mail.unifiedlayer.com [74.220.216.123]) by sourceware.org (Postfix) with ESMTPS id EED9C3858D1E for ; Tue, 14 Feb 2023 20:23:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EED9C3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from cmgw11.mail.unifiedlayer.com (unknown [10.0.90.126]) by progateway1.mail.pro1.eigbox.com (Postfix) with ESMTP id 6BA6710038A01 for ; Tue, 14 Feb 2023 20:23:40 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id S1q0pinj6jkdRS1q0pcSlD; Tue, 14 Feb 2023 20:23:40 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=LPqj/La9 c=1 sm=1 tr=0 ts=63ebedcc a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=IkcTkHD0fZMA:10:nop_charset_1 a=m04uMKEZRckA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=zstS-IiYAAAA:8 a=YVjEyzYeyMZxCy52_mgA:9 a=QEXdDO2ut3YA:10:nop_charset_2 a=4G6NA9xxw8l3yy4pmD5M:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lsG5yUATkE6uSed6gcIO6AU5z3Fjz636flFokqZrYoE=; b=DfT5ycnBipTdV9DzctcCcau6kC 8itpujrQgLBg2QZ4hqeMVEtZelIp1i0LBRIPKCXBP7KSTtQcfle++aqVYrRmzQ3fva+0y5V0X5h0N CfY9sXQ9xlgFcTjPQYruVGVXG; Received: from 75-166-130-93.hlrn.qwest.net ([75.166.130.93]:49794 helo=[192.168.0.21]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pS1q0-002zny-8w for gdb-patches@sourceware.org; Tue, 14 Feb 2023 13:23:40 -0700 From: Tom Tromey Subject: [PATCH 0/6] Use bool in value Date: Tue, 14 Feb 2023 13:23:30 -0700 Message-Id: <20230214-submit-more-value-stuff-v1-0-2fb85efbaa72@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMLt62MC/x2NywrCMBAAf6Xs2YU8hKK/Ih427cYumFSySRFK/ 93U4zAMs4NyEVa4DzsU3kRlzR3sZYBpofxilLkzOOO8cfaK2kKSimktjBu9G6PWFiPOTM4Hc7P j6KHXgZQxFMrTcvaJtHI5xadwlO9/+Xgexw8jlfprggAAAA== To: gdb-patches@sourceware.org X-Mailer: b4 0.12.0 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.130.93 X-Source-L: No X-Exim-ID: 1pS1q0-002zny-8w X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-130-93.hlrn.qwest.net ([192.168.0.21]) [75.166.130.93]:49794 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3021.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: There are a few spots in struct value that should use 'bool'. This short series fixes these up. Regression tested on x86-64 Fedora 36. --- Tom Tromey (6): Change value::m_modifiable to bool Change value::m_lazy to bool Change value::m_initialized to bool Change value::m_stack to bool Have value::bits_synthetic_pointer return bool Return bool from more value methods gdb/breakpoint.c | 3 +-- gdb/dwarf2/expr.c | 12 ++++----- gdb/dwarf2/expr.h | 6 ++--- gdb/dwarf2/loc.c | 2 +- gdb/frame-unwind.c | 2 +- gdb/gnu-v2-abi.c | 2 +- gdb/opencl-lang.c | 10 ++++---- gdb/ppc-linux-nat.c | 2 +- gdb/valops.c | 4 +-- gdb/valprint.c | 2 +- gdb/value.c | 48 +++++++++++++++++------------------ gdb/value.h | 72 ++++++++++++++++++++++++++--------------------------- 12 files changed, 82 insertions(+), 83 deletions(-) --- base-commit: 5bed9dc992a0136d403a7addb29a2ed822fd4fd2 change-id: 20230214-submit-more-value-stuff-dea23b091773 Best regards, -- Tom Tromey