From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0E44C388E822; Mon, 11 May 2020 09:10:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E44C388E822 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/25969] New: Ignoring .debug_aranges with clang .debug_names Date: Mon, 11 May 2020 09:10:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Mon, 11 May 2020 09:10:17 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25969 Bug ID: 25969 Summary: Ignoring .debug_aranges with clang .debug_names Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- [ Spinoff PR of PR25941 . ] Consider the patch and test-case submitted in https://sourceware.org/pipermail/gdb-patches/2020-May/168179.html . That is, test-case test.c: ... int main (void) { int sum,a,b; sum =3D a + b; return sum; } ... Compiled liked so: ... $ clang-10 test.c -gdwarf-5 -o test.out -gpubnames=20 .. When loading into gdb, we have: ... $ gdb test.out warning: Section .debug_aranges in /data/gdb_versions/devel/test.out entry = at offset 0 debug_info_offset 0 does not exists, ignoring .debug_aranges. ... The .debug_aranges warning triggers because the .debug_aranges section cont= ains one entry: ... debug_aranges contents: Address Range Header: length =3D 0x0000002c, version =3D 0x0002, cu_offset = =3D 0x00000000, addr_size =3D 0x08, seg_size =3D 0x00 [0x00000000004003c0, 0x00000000004003eb) ... which refers to the CU at offset 0, but the CU list (based on the CU list in .debug_names) only contains the one at 0xc7, so we fail to find it. --=20 You are receiving this mail because: You are on the CC list for the bug.=