From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C51253858D1E; Sun, 6 Aug 2023 14:28:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C51253858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691332081; bh=WzgIOiQuXCl/UVg2AC1AQgY4LChe5LPYprZZRDhmjUc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ywiNK9s/DsiaNwR6GpPyKGlP0ZL5LQN3CbyeZmI7UqBP5OduFp1jv9Z5ua+ismtqC VQkLph2JffnJbJB9TRbYoUSRPO0srcF9QHgHfRuGM9qZx5NIu6WHB8jXUiL/qBq453 ugm4s5OZzRXZe9YkvEE12j/NC1a0ODb/nLsUvFn8= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug ada/30726] [gdb/ada, cc-with-dwz] FAIL: gdb.ada/arr_acc_idx_w_gap.exp: enum_rep Date: Sun, 06 Aug 2023 14:28:01 +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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30726 --- Comment #1 from Tom de Vries --- With target board unix, looking at the debug info we have: ... <0><81c>: Abbrev Number: 1 (DW_TAG_compile_unit) <822> DW_AT_name : enum_with_gap.adb <1><84c>: Abbrev Number: 4 (DW_TAG_enumeration_type) <84d> DW_AT_name : enum_with_gap__enum_with_gaps <2><86b>: Abbrev Number: 5 (DW_TAG_enumerator) <86c> DW_AT_name : enum_with_gap__lit3 <870> DW_AT_const_value : 13 <0><9e9>: Abbrev Number: 1 (DW_TAG_compile_unit) <9ef> DW_AT_name : enum_with_gap_main.adb <1>: Abbrev Number: 4 (DW_TAG_enumeration_type) DW_AT_name : enum_with_gap__enum_with_gaps <2>: Abbrev Number: 5 (DW_TAG_enumerator) DW_AT_name : enum_with_gap__lit3 DW_AT_const_value : 13 <1>: Abbrev Number: 16 (DW_TAG_enumeration_type) DW_AT_name : enum_with_gap__enum_subrangeB DW_AT_artificial : 1 <2>: Abbrev Number: 5 (DW_TAG_enumerator) DW_AT_name : enum_with_gap__lit3__2 DW_AT_const_value : 13 ... Dwz moves enum_with_gap__enum_with_gaps into a partial unit. That somehow changes the symbol table. With target board unix, the first item with canonical name lit3 is: ... [721] ((cooked_index_entry *) 0x7fe8d8009b00) name: enum_with_gap__lit3 canonical: lit3 DWARF tag: DW_TAG_enumerator flags: 0x2 [IS_STATIC] DIE offset: 0x86b parent: ((cooked_index_entry *) 0x7fe8d8021fe0) [enum_with_gap] ... With target board cc-with-dwz, it's instead: ... [780] ((cooked_index_entry *) 0x7f9d1c0049c0) name: enum_with_gap__lit3__2 canonical: lit3 DWARF tag: DW_TAG_enumerator flags: 0x2 [IS_STATIC] DIE offset: 0x23a5 parent: ((cooked_index_entry *) 0x7f9d1c025ad0) [enum_with_gap] ... --=20 You are receiving this mail because: You are on the CC list for the bug.=