From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6788A3858D28; Tue, 29 Aug 2023 10:10:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6788A3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693303832; bh=t/cVDttg0bJVqfVXpvVteMTm0Rzuj/+dBUTsQhIOUNQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QkaFvaeGeLXeCreRXc2fYgxAt1CXCsfekv8U+2bv5di3gyi0e4m6aH0g/Lc1kmhDv gXgbYn2r6Hpi+i1aWaHMo23JEtS+gMFXg3qSj047jK3/Vx/mBFHQD4Zm0aamo6C5OU Od2+WXsxQRqBXPCSMzx5DQpR8lRi5B3VeZrrEuis= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30797] [gdb/symtab, cc-with-dwz] FAIL: gdb.base/setshow.exp: test_setshow_annotate: annotation_level 1 Date: Tue, 29 Aug 2023 10:10:31 +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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30797 --- Comment #3 from Tom de Vries --- Tentative patch: ... diff --git a/gdb/symtab.c b/gdb/symtab.c index 0117a2a59d7..cfad7716cd8 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -565,6 +565,9 @@ iterate_over_some_symtabs (const char *name, for (cust =3D first; cust !=3D NULL && cust !=3D after_last; cust =3D cu= st->next) { + if (cust->user !=3D nullptr) + continue; + for (symtab *s : cust->filetabs ()) { if (compare_filenames_for_search (s->filename, name)) ... --=20 You are receiving this mail because: You are on the CC list for the bug.=