From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 200A23895460; Tue, 26 May 2020 17:38:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 200A23895460 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/26046] Missing breakpoint location without -readnow Date: Tue, 26 May 2020 17:38:17 +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: 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, 26 May 2020 17:38:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26046 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #1 from Tom de Vries --- Tentative patch: ... diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index ec3844188e..bbd57325f5 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -8054,6 +8054,8 @@ scan_partial_symbols (struct partial_die_info *first_= die, CORE_ADDR *lowpc, case DW_TAG_subprogram: case DW_TAG_inlined_subroutine: add_partial_subprogram (pdi, lowpc, highpc, set_addrmap, cu); + scan_partial_symbols (pdi->die_child, lowpc, highpc, + set_addrmap, cu); break; case DW_TAG_constant: case DW_TAG_variable: @@ -18125,7 +18127,8 @@ load_partial_dies (const struct die_reader_specs *reader, if (!load_all && cu->language =3D=3D language_cplus && parent_die !=3D NULL - && parent_die->tag =3D=3D DW_TAG_subprogram) + && parent_die->tag =3D=3D DW_TAG_subprogram + && abbrev->tag !=3D DW_TAG_inlined_subroutine) { info_ptr =3D skip_one_die (reader, info_ptr + bytes_read, abbrev); continue; @@ -18300,9 +18303,7 @@ load_partial_dies (const struct die_reader_specs *reader, || last_die->tag =3D=3D DW_TAG_module || last_die->tag =3D=3D DW_TAG_enumeration_type || (cu->language =3D=3D language_cplus - && last_die->tag =3D=3D DW_TAG_subprogram - && (last_die->name =3D=3D NULL - || strchr (last_die->name, '<') =3D=3D NULL)) + && last_die->tag =3D=3D DW_TAG_subprogram) || (cu->language !=3D language_c && (last_die->tag =3D=3D DW_TAG_class_type || last_die->tag =3D=3D DW_TAG_interface_type ... --=20 You are receiving this mail because: You are on the CC list for the bug.=