From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C5B33858436; Fri, 4 Aug 2023 14:26:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C5B33858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691159184; bh=sC/RRsuce0HGz+YLaK4NVNbMUlq0j+G3g74ct1LnNBM=; h=From:To:Subject:Date:From; b=Lewxl6J2ZAdX7douZwJuNGM2eCSgj+fIMt4h1tq5kW4E0KxFwDi45edsAQ5lUtbJK Jhw5nbFgTTSPrbGW//TqDwHaOPbSjYLAio4FEkjofM3GiptH3NadpaldNfqfIFBluN GeiVrLky+fCccxL6v46D5LCYKhfdVu/bgz4Cci/w= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30720] New: [gdb/symtab, gdb-index] FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols ('rr'))) Date: Fri, 04 Aug 2023 14:26:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30720 Bug ID: 30720 Summary: [gdb/symtab, gdb-index] FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols ('rr'))) Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- With test-case gdb.python/py-symbol.exp and target board cc-with-gdb-index,= I run into: ... (gdb) python print (len (gdb.lookup_static_symbols ('rr')))^M 1^M (gdb) FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols ('rr'))) ... This is especially confusing when you're using the index-cache. $ rm -Rf ~/.cache/gdb/* $ gdb -q -batch -iex "set index-cache enabled on" py-symbol \ -ex "python print (len (gdb.lookup_static_symbols ('rr')))" 2 $ gdb -q -batch -iex "set index-cache enabled on" py-symbol \ -ex "python print (len (gdb.lookup_static_symbols ('rr')))" 1 ... This is a regression, this passes in gdb-12-branch. --=20 You are receiving this mail because: You are on the CC list for the bug.=