From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 934EF3851C3C; Mon, 26 Oct 2020 19:31:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 934EF3851C3C 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, 26 Oct 2020 19:31: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: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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, 26 Oct 2020 19:31:53 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25858 --- Comment #13 from Tom de Vries --- (In reply to Tom de Vries from comment #6) > (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: >=20 > This seems to be because cu->base_address has not been set. This is a > tentative 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); >=20=20 > + 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 > ... >=20 Committed a similar fix at https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D1c47ec3ee86= fc08d120dae7e63cec552fa456912 . --=20 You are receiving this mail because: You are on the CC list for the bug.=