From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B06D338515DC; Fri, 30 Apr 2021 09:42:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B06D338515DC From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/27787] FAIL: gdb.python/flexible-array-member.exp: python print(zs['items'].type.range()) Date: Fri, 30 Apr 2021 09:42:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2021 09:42:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27787 --- Comment #4 from Tom de Vries --- (In reply to Simon Marchi from comment #3) > (In reply to Tom de Vries from comment #2) > > (In reply to Simon Marchi from comment #1) > > > Which compiler? I presume this is very debug-info sensitive. > >=20 > > Fails with gcc 7.5.0 and 8.4.0. > >=20 > > Passes with gcc 9.3.1, 10.3.0 and 11.0.1. >=20 > Thanks, I'll try it soon. I am guessing that we'll just get different > values, and that we'll end up changing the regexp to accept these values = too. I compared 8.4.0 and 9.3.1, and found a difference in debug info. In case of 8.4.0, we have variable zs: ... <1><1f0>: Abbrev Number: 9 (DW_TAG_variable) <1f1> DW_AT_name : zs ... <1f7> DW_AT_type : <0x205> ... with type: ... <1><205>: Abbrev Number: 10 (DW_TAG_pointer_type) <206> DW_AT_byte_size : 8 <207> DW_AT_type : <0x176> ... pointing to struct type: ... <1><176>: Abbrev Number: 4 (DW_TAG_structure_type) <177> DW_AT_name : zero_size ... with member: ... <2><18e>: Abbrev Number: 6 (DW_TAG_member) <18f> DW_AT_name : items <196> DW_AT_type : <0x19c> ... with type: ... <1><19c>: Abbrev Number: 7 (DW_TAG_array_type) <19d> DW_AT_type : <0xfb> <1a1> DW_AT_sibling : <0x1ab> <2><1a5>: Abbrev Number: 8 (DW_TAG_subrange_type) <1a6> DW_AT_type : <0xf4> <2><1aa>: Abbrev Number: 0 ... The same for 9.3.1, but with DW_AT_count 0 in the subrange: ... <1><19c>: Abbrev Number: 7 (DW_TAG_array_type) <19d> DW_AT_type : <0xfb> <1a1> DW_AT_sibling : <0x1ac> <2><1a5>: Abbrev Number: 9 (DW_TAG_subrange_type) <1a6> DW_AT_type : <0xf4> <1aa> DW_AT_count : 0 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=