From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 18D8538708AF; Mon, 20 Apr 2020 15:03:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18D8538708AF 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:03:30 +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:03:31 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25858 --- Comment #5 from Tom de Vries --- (In reply to Tom de Vries from comment #2) > Tentative patch: > ... > diff --git a/gdb/symtab.c b/gdb/symtab.c > index dc079efbc2..63a4b91f12 100644 > --- a/gdb/symtab.c > +++ b/gdb/symtab.c > @@ -2933,6 +2933,9 @@ find_pc_sect_compunit_symtab (CORE_ADDR pc, struct > obj_section *section) > const struct blockvector *bv; >=20=20 > bv =3D COMPUNIT_BLOCKVECTOR (cust); > + if (!blockvector_contains_pc (bv, pc)) > + continue; > + > b =3D BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK); >=20=20 > if (BLOCK_START (b) <=3D pc > ... With this tentative patch, I run into: ... FAIL: gdb.fortran/info-modules.exp: info module functions (timeout) ... and a similar fail in mi-fortran-modules.exp. More precisely: ... (gdb) info module functions^M All functions in all modules:^M warning: (Internal error: pc 0x7ffff74b60a0 in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60a5 in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60aa in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60af in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60b4 in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60b9 in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60be in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60c8 in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74b60cd in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74c5e50 in read in psymtab, but not in symtab.)^M ^M warning: (Internal error: pc 0x7ffff74c5e50 in read in psymtab, but not in symtab.)^M ... To reproduce: ... $ gdb -batch outputs/gdb.fortran/info-modules/info-modules -ex "start" -ex "info module functions" ... This warning seems to stem from the fact that blockvector_contains_pc return false for CU ../../../libgcc/unwind-dw2-fde-dip.c in objfile /usr/lib/debug/lib64/libgcc_s.so.1-10.0.1+git175688-lp151.17.1.x86_64.debug. 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: ... <0>: Abbrev Number: 118 (DW_TAG_compile_unit) DW_AT_name : ../../../libgcc/unwind-dw2-fde-dip.c DW_AT_ranges : 0x7a00 DW_AT_low_pc : 0x0 DW_AT_stmt_list : 0xf498 ... which maps onto: ... 00007a00 0000000000011030 00000000000130a3 00007a00 00000000000030a0 00000000000030d2 00007a00 ... and the pc we're trying to find is indeed in the CU: ... (gdb) p /x pc - objf->text_section_offset () $14 =3D 0x30a0 ... It's the minimal symbol: ... $ nm outputs/gdb.fortran/info-modules/info-modules 00000000000030a0 t read_encoded_value_with_base.cold ... --=20 You are receiving this mail because: You are on the CC list for the bug.=