From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC8B83858427; Mon, 24 Jun 2024 16:46:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC8B83858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1719247560; bh=DeKsAmLkl/dgfsdoDLcSuzr2+xAtFUgOJsVJuxXX5Gg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S26oPsQNsfv6ACKMFsTnX2EKKndVwlXz1p9W8Mcs+QjYcQ9OdcVAjzryMgi5CN3vt IYzZ5Hgv0peezttoIAqELB0L0p9LsgA5TxETd2sODrhSfhE0sN9DC3MmcwBg18qd2y qmNZwmp65geWEFbYMtv+3V2+IkU8MH2fGdHo70Ls= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug python/31922] [15 Regression] gdb.lookup_type() dosn't work for function-local types Date: Mon, 24 Jun 2024 16:46:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 15.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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=3D31922 --- Comment #1 from Sourceware Commits --- The master branch has been updated by Hannes Domani : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D5ae5974d6037= 8fa3faecff64725e00c8695bcc7d commit 5ae5974d60378fa3faecff64725e00c8695bcc7d Author: Hannes Domani Date: Mon Jun 24 18:45:37 2024 +0200 Fix gdb.lookup_type for function-local types Looking for a type defined locally in a function doesn't work any more since the introduction of TYPE_DOMAIN: ``` (gdb) python print (gdb.lookup_type ('main()::Local')) Python Exception : No type named main()::Local. Error occurred in Python: No type named main()::Local. ``` cp_search_static_and_baseclasses was simply missing a check for SEARCH_TYPE_DOMAIN, now it works again: ``` (gdb) python print (gdb.lookup_type ('main()::Local')) Local ``` Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31922 Approved-By: Tom Tromey --=20 You are receiving this mail because: You are on the CC list for the bug.=