From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id 408903858421; Mon, 13 Mar 2023 22:01:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 408903858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678744865; bh=0SX8VopFRqvylWiSa2bYxwY4V7tIm1NHcEzEoXWzWlY=; h=From:To:Subject:Date:From; b=gsEos05atmfNc+k+hoYGZ1LVgWqWv0wLdMRBxS46v2eh6pyXSo5GmvNkDdRpDJLP/ gjuQGLMe6NwyFNGmDn+xsMTqkb9jj4QxH8wtVtDmi2aOQl7u0oJxiRK5qPhCcyLZAZ eU9YMF5FnAK5Qe+rl3WkPC/Vzx0O7mGf1j733elA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/gdbarch: remove yet more 'invalid=True' from gdbarch_components.py X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: 021c14f6385a7c39176dccc568bf18b7de452143 X-Git-Newrev: 0605df704d6f3c28c47bf6cd623bb237919e17a1 Message-Id: <20230313220105.408903858421@sourceware.org> Date: Mon, 13 Mar 2023 22:01:05 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0605df704d6f= 3c28c47bf6cd623bb237919e17a1 commit 0605df704d6f3c28c47bf6cd623bb237919e17a1 Author: Andrew Burgess Date: Mon Mar 6 11:45:12 2023 +0000 gdb/gdbarch: remove yet more 'invalid=3DTrue' from gdbarch_components.py =20 Following on from the previous commit, this commit removes yet more 'invalid=3DTrue' lines from gdbarch_components.py where the invalid setting has no effect. =20 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=3DTrue' on the component is pointless. This commit removes the setting of invalid. =20 There is no change in the generated code after this commit. =20 Approved-By: Simon Marchi Diff: --- 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=3D"const struct floatformat **", name=3D"bfloat16_format", postdefault=3D"floatformats_bfloat16", - invalid=3DTrue, printer=3D"pformat (gdbarch, gdbarch->bfloat16_format)", ) =20 @@ -221,7 +220,6 @@ Value( type=3D"const struct floatformat **", name=3D"half_format", postdefault=3D"floatformats_ieee_half", - invalid=3DTrue, printer=3D"pformat (gdbarch, gdbarch->half_format)", ) =20 @@ -236,7 +234,6 @@ Value( type=3D"const struct floatformat **", name=3D"float_format", postdefault=3D"floatformats_ieee_single", - invalid=3DTrue, printer=3D"pformat (gdbarch, gdbarch->float_format)", ) =20 @@ -251,7 +248,6 @@ Value( type=3D"const struct floatformat **", name=3D"double_format", postdefault=3D"floatformats_ieee_double", - invalid=3DTrue, printer=3D"pformat (gdbarch, gdbarch->double_format)", ) =20 @@ -266,7 +262,6 @@ Value( type=3D"const struct floatformat **", name=3D"long_double_format", postdefault=3D"floatformats_ieee_double", - invalid=3DTrue, printer=3D"pformat (gdbarch, gdbarch->long_double_format)", ) =20 @@ -289,7 +284,6 @@ One if `wchar_t' is signed, zero if unsigned. name=3D"wchar_signed", predefault=3D"-1", postdefault=3D"1", - invalid=3DTrue, ) =20 Method( @@ -332,7 +326,6 @@ addr_bit is the size of a target address as represented= in gdb name=3D"addr_bit", predefault=3D"0", postdefault=3D"gdbarch_ptr_bit (gdbarch)", - invalid=3DTrue, ) =20 Value( @@ -355,7 +348,6 @@ and if Dwarf versions < 4 need to be supported. name=3D"dwarf2_addr_size", predefault=3D"0", postdefault=3D"gdbarch_ptr_bit (gdbarch) / TARGET_CHAR_BIT", - invalid=3DTrue, ) =20 Value( @@ -366,7 +358,6 @@ One if `char' acts like `signed char', zero if `unsigne= d char'. name=3D"char_signed", predefault=3D"-1", postdefault=3D"1", - invalid=3DTrue, ) =20 Function(