From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6005239F887D; Fri, 5 Feb 2021 15:50:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6005239F887D From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/27354] New: Dwarf Error: wrong unit_type in compilation unit header (is DW_UT_split_compile (0x05), should be DW_UT_type (0x02) Date: Fri, 05 Feb 2021 15:50:29 +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: Fri, 05 Feb 2021 15:50:29 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27354 Bug ID: 27354 Summary: Dwarf Error: wrong unit_type in compilation unit header (is DW_UT_split_compile (0x05), should be DW_UT_type (0x02) 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: --- When running test-case gdb.dwarf2/fission-mix.exp using gcc-11 (and using t= he tentative fix for PR27353), I run into: ... (gdb) file /home/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.dwarf2/fissi= on-mix/fission-mix^M Reading symbols from /home/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.dwarf2/fissi= on-mix/fission-mix...^M Dwarf Error: wrong unit_type in compilation unit header (is DW_UT_split_com= pile (0x05), should be DW_UT_type (0x02)) [in module /home/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.dwarf2/fissi= on-mix/fission-mix2.dwo]^M (No debugging symbols found in /home/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.dwarf2/fissi= on-mix/fission-mix)^M (gdb) break -q main^M ... This seems to fix it: ... diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index dd308ca7ba3..f9c058bdf17 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -12952,7 +12952,7 @@ open_and_init_dwo_file (dwarf2_cu *cu, const char *dwo_name, { create_debug_type_hash_table (per_objfile, dwo_file.get (), &dwo_file->sections.info, dwo_file->tus, - rcuh_kind::TYPE); + rcuh_kind::COMPILE); } dwarf_read_debug_printf ("DWO file found: %s", dwo_name); ... --=20 You are receiving this mail because: You are on the CC list for the bug.=