From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 2291C3858C2D for ; Fri, 10 Mar 2023 18:43:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2291C3858C2D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678473806; 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=DO+Jovu2taA68Uu10uUEx0vaUGsaenOjfl1pBBIuaI0=; b=KiDdusGk8Zgy4676frpecYurzZvs5l73EJUJKvupv4+EzJZ/IiKSzwArMVxNhWWxR0uNjy keWepkoA6wTFior0VrDOICDMZUQD7gSmgxV9OKrIMd206sEqcLfe9xbdJGY0awqRaWNldt Nqpj1eJgAlEPDGy8lN6yfAdMBRjfZx4= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-323-Hsr-jyFuPLKGzWfM1lEBOg-1; Fri, 10 Mar 2023 13:43:25 -0500 X-MC-Unique: Hsr-jyFuPLKGzWfM1lEBOg-1 Received: by mail-wm1-f71.google.com with SMTP id p22-20020a7bcc96000000b003e2036a1516so4235170wma.7 for ; Fri, 10 Mar 2023 10:43:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678473804; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DO+Jovu2taA68Uu10uUEx0vaUGsaenOjfl1pBBIuaI0=; b=NMYRqM67eP7b03YG+Lv6ohnmLKZJClF4VXasiz0bPsPjvrYwoV25QBRJIPFUPZtARz UovBQn71Gy7p2Y8OjaLtA//I3gpgbhwaPg4UQ9YX4f8AgbqF6LLbxWaBKy4E4LlD1ss8 4kjSRJ76LzjWFhcWdhJONuk8avQZvVvloPsl2HiWAOnIPZqgKqQaogu9pGJVpffGNbbq xSHzRB1jkoSzgBSIHjjobPfdaRJzTVUWPOiuqKMSktxPA1wMTYJfUc/rK91bhF/S8y7c bGjglr8ytr86ezbN3X8PrVJLZ7JqW9w2+6bW0CYma7Wv0DiavG71OfbQp7Vza1xnmv0/ xzEw== X-Gm-Message-State: AO0yUKVLJDKcw7ZyU4fD5AL7u9QyqgFbRlAt+zSpvwl6VPYLJ6H9jvZa I5YUtK3nP0FqBKLwSRhc8I4OnJG394y30gfQ9hcHOk/wmx7j9FPbN4hqOezDWumqzbvEn+kNeWU bXts85ZhQkMQzjFeiK6Mh0GtEy9RbQ0PCCa2CgT2gVuFm10//KnFTxb17zJhqyP8ntmRNUq8d7V 6jrJVufg== X-Received: by 2002:a05:600c:470e:b0:3eb:29fe:734a with SMTP id v14-20020a05600c470e00b003eb29fe734amr3820170wmo.39.1678473804478; Fri, 10 Mar 2023 10:43:24 -0800 (PST) X-Google-Smtp-Source: AK7set8XgDSykjQPz/8W+PSbfhCnJIUogg+/ICLAdAdaJez2Uc3ChpwQZKhCy+xGC0plvsQmX4llmw== X-Received: by 2002:a05:600c:470e:b0:3eb:29fe:734a with SMTP id v14-20020a05600c470e00b003eb29fe734amr3820159wmo.39.1678473804217; Fri, 10 Mar 2023 10:43:24 -0800 (PST) Received: from localhost (95.72.115.87.dyn.plus.net. [87.115.72.95]) by smtp.gmail.com with ESMTPSA id a3-20020a05600c224300b003eb5a0873e0sm640603wmm.39.2023.03.10.10.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 10:43:23 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv3 2/9] gdb/gdbarch: remove yet more 'invalid=True' from gdbarch_components.py Date: Fri, 10 Mar 2023 18:43:11 +0000 Message-Id: <2dc5238144357ac1885ae86b12ef6bd77daa01c5.1678473293.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-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Following on from the previous commit, this commit removes yet more 'invalid=True' lines from gdbarch_components.py where the invalid setting has no effect. Due to the algorithm used in gdbarch.py for generated verify_gdbarch, if a component has a postdefault value then no invalid check will ever be generated for the component, as such setting 'invalid=True' on the component is pointless. This commit removes the setting of invalid. There is no change in the generated code after this commit. --- gdb/gdbarch_components.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gdb/gdbarch_components.py b/gdb/gdbarch_components.py index 656c6a9f905..d3dfcfc806f 100644 --- a/gdb/gdbarch_components.py +++ b/gdb/gdbarch_components.py @@ -206,7 +206,6 @@ Value( type="const struct floatformat **", name="bfloat16_format", postdefault="floatformats_bfloat16", - invalid=True, printer="pformat (gdbarch, gdbarch->bfloat16_format)", ) @@ -221,7 +220,6 @@ Value( type="const struct floatformat **", name="half_format", postdefault="floatformats_ieee_half", - invalid=True, printer="pformat (gdbarch, gdbarch->half_format)", ) @@ -236,7 +234,6 @@ Value( type="const struct floatformat **", name="float_format", postdefault="floatformats_ieee_single", - invalid=True, printer="pformat (gdbarch, gdbarch->float_format)", ) @@ -251,7 +248,6 @@ Value( type="const struct floatformat **", name="double_format", postdefault="floatformats_ieee_double", - invalid=True, printer="pformat (gdbarch, gdbarch->double_format)", ) @@ -266,7 +262,6 @@ Value( type="const struct floatformat **", name="long_double_format", postdefault="floatformats_ieee_double", - invalid=True, printer="pformat (gdbarch, gdbarch->long_double_format)", ) @@ -289,7 +284,6 @@ One if `wchar_t' is signed, zero if unsigned. name="wchar_signed", predefault="-1", postdefault="1", - invalid=True, ) Method( @@ -332,7 +326,6 @@ addr_bit is the size of a target address as represented in gdb name="addr_bit", predefault="0", postdefault="gdbarch_ptr_bit (gdbarch)", - invalid=True, ) Value( @@ -355,7 +348,6 @@ and if Dwarf versions < 4 need to be supported. name="dwarf2_addr_size", predefault="0", postdefault="gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT", - invalid=True, ) Value( @@ -366,7 +358,6 @@ One if `char' acts like `signed char', zero if `unsigned char'. name="char_signed", predefault="-1", postdefault="1", - invalid=True, ) Function( -- 2.25.4