From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0188F3982EFE; Fri, 8 May 2020 16:07:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0188F3982EFE From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/25953] [debug-names] Support multiple per-CU indices Date: Fri, 08 May 2020 16:07:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab 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, 08 May 2020 16:07:14 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25953 --- Comment #1 from Tom de Vries --- The section contains two per-CU indices: ... $ llvm-dwarfdump --all a.out ... .debug_names contents: Name Index @ 0x0 { Header { Length: 0x6C Version: 5 Padding: 0x0 CU count: 1 Local TU count: 0 Foreign TU count: 0 Bucket count: 2 Name count: 2 Abbreviations table size: 0xD Augmentation: 'LLVM0700' } Compilation Unit offsets [ CU[0]: 0x000000c7 ] Abbreviations [ Abbreviation 0x2e { Tag: DW_TAG_subprogram DW_IDX_die_offset: DW_FORM_ref4 } Abbreviation 0x24 { Tag: DW_TAG_base_type DW_IDX_die_offset: DW_FORM_ref4 } ] Bucket 0 [ Name 1 { Hash: 0xB888030 String: 0x00000061 "int" Entry @ 0x5d { Abbrev: 0x24 Tag: DW_TAG_base_type DW_IDX_die_offset: 0x00000032 } } Name 2 { Hash: 0x7C9A7F6A String: 0x0000020c "main" Entry @ 0x66 { Abbrev: 0x2E Tag: DW_TAG_subprogram DW_IDX_die_offset: 0x00000023 } } ] Bucket 1 [ EMPTY ] } Name Index @ 0x70 { Header { Length: 0x4C Version: 5 Padding: 0x0 CU count: 1 Local TU count: 0 Foreign TU count: 0 Bucket count: 1 Name count: 1 Abbreviations table size: 0x7 Augmentation: 'LLVM0700' } Compilation Unit offsets [ CU[0]: 0x000000fe ] Abbreviations [ Abbreviation 0x2e { Tag: DW_TAG_subprogram DW_IDX_die_offset: DW_FORM_ref4 } ] Bucket 0 [ Name 1 { Hash: 0xB887389 String: 0x00000217 "foo" Entry @ 0xb7 { Abbrev: 0x2E Tag: DW_TAG_subprogram DW_IDX_die_offset: 0x00000023 } } ] } ... But gdb expects a single per-module index. --=20 You are receiving this mail because: You are on the CC list for the bug.=