From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 85B36384B104; Mon, 20 Apr 2020 15:29:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85B36384B104 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/25858] [readnow] FAIL: gdb.ada/bp_c_mixed_case.exp: break Date: Mon, 20 Apr 2020 15:29:53 +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: Mon, 20 Apr 2020 15:29:53 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25858 --- Comment #6 from Tom de Vries --- (In reply to Tom de Vries from comment #5) > The compunit has no address map: > ... > (gdb) p *ps->get_compunit_symtab ()->blockvector > $6 =3D {nblocks =3D 19, map =3D 0x0, block =3D {0x43d23e0}} > ... > despite the fact that the CU has a DW_AT_ranges attribute: This seems to be because cu->base_address has not been set. This is a tenta= tive patch to fix that: ... diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 41db511c85..601c710750 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -9584,6 +9584,8 @@ process_full_comp_unit (struct dwarf2_per_cu_data *per_cu, addr =3D gdbarch_adjust_dwarf2_addr (gdbarch, highpc + baseaddr); static_block =3D cu->get_builder ()->end_symtab_get_static_block (addr, = 0, 1); + dwarf2_find_base_address (cu->dies, cu); + /* If the comp unit has DW_AT_ranges, it may have discontiguous ranges. Also, DW_AT_ranges may record ranges not belonging to any child DIEs (such as virtual method tables). Record the ranges in STATIC_BLOCK's ... This indeed fixes this: ... (gdb) p blockvector_contains_pc (ps->get_compunit_symtab ().blockvector, pc) $13 =3D 1 ... But I still run into the same warning. --=20 You are receiving this mail because: You are on the CC list for the bug.=