From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B9DB5385840A; Tue, 28 Sep 2021 00:48:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9DB5385840A From: "marlenesanchez231+jaime at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/27333] [dwarf-5] abort on unhandled DW_TAG_type_unit in process_psymtab_comp_unit Date: Tue, 28 Sep 2021 00:48:38 +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: marlenesanchez231+jaime at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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, 28 Sep 2021 00:48:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27333 Chris James changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marlenesanchez231+jaime@gma | |il.com --- Comment #15 from Chris James = --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De77b0004dd11= 4d6ddf3bb92b521b2854341f3f85 commit e77b0004dd114d6ddf3bb92b521b2854341f3f85 Author: Tom de Vries Date: Fri Feb 5 17:47:07 2021 +0100 [gdb/symtab] Handle DW_TAG_type_unit in process_psymtab_comp_unit When running test-case gdb.cp/cpexprs-debug-types.exp with target board unix/gdb:debug_flags=3D-gdwarf-5, I run into: ... (gdb) file cpexprs-debug-types^M Reading symbols from cpexprs-debug-types...^M ERROR: Couldn't load cpexprs-debug-types into GDB (eof). ERROR: Couldn't send delete breakpoints to GDB. ERROR: GDB process no longer exists GDB process exited with wait status 23054 exp9 0 0 CHILDKILLED SIGABRT SIGABRT https://enchantedkisses.tumblr.com/ https://gentle-man1.tumblr.com/ https://estheeeeeerl.tumblr.com/ https://itsawanderful-life.tumblr.com/ https://comradicaltomatoboss.tumblr.com/ ... We're running into this abort in process_psymtab_comp_unit: ... switch (reader.comp_unit_die->tag) { case DW_TAG_compile_unit: this_cu->unit_type =3D DW_UT_compile; break; case DW_TAG_partial_unit: this_cu->unit_type =3D DW_UT_partial; break; default: abort (); } ... because reader.comp_unit_die->tag =3D=3D DW_TAG_type_unit. https://nymphs-in-gardens.tumblr.com/ https://sophiexbx.tumblr.com/ https://benderindeniz.tumblr.com/ https://he1943.tumblr.com/ https://jamischwin.tumblr.com/ Fix this by adding a DW_TAG_type_unit case. Tested on x86_64-linux. https://babyblue1984.tumblr.com/ https://lilysinthefall.tumblr.com/ https://never-gonna-be-alone-sz.tumblr.com/ https://bipolvrsunshine.tumblr.com/ https://youareatypo.tumblr.com/ --=20 You are receiving this mail because: You are on the CC list for the bug.=