From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B47C385F022; Tue, 7 Sep 2021 09:42:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B47C385F022 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug ada/28115] Support packed array encoded as DW_TAG_subrange_type Date: Tue, 07 Sep 2021 09:42:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: ada 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: Tue, 07 Sep 2021 09:42:12 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28115 --- Comment #3 from Tom de Vries --- Hmm, this recent gcc commit looks interesting: ... commit c0b03afeab4502da3040ef1ebbd28f826737fa8a Author: Eric Botcazou Date: Mon Sep 6 11:16:08 2021 +0200 Fix debug info for packed array types in Ada Packed array types are sometimes represented with integer types under t= he hood in Ada, but we nevertheless need to emit them as array types in the debug info so we have the types.get_array_descr_info langhook for this purpose; but it is not invoked from modified_type_die, which causes: FAIL: gdb.ada/arrayptr.exp: scenario=3Dminimal: print pa_ptr.all FAIL: gdb.ada/arrayptr.exp: scenario=3Dminimal: print pa_ptr.all(3) in the GDB testsuite. gcc/ * dwarf2out.c (modified_type_die): Deal with all array types earlier and use local variable consistently throughout the function. ... --=20 You are receiving this mail because: You are on the CC list for the bug.=