From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D5A4D3858C62; Fri, 1 Dec 2023 04:06:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5A4D3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701403597; bh=l30SONr6QItwnmIHCjFMjvwkvJ2AO95stPYskjmhf+g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mlYWs1Z0rku+kUe68ERFdd/tfzSgIcHXTIgMGrAOME1NzmDV0ZmZeXBYrbu1mPX4y Iv8Wz9inzrDCfmex/86FMylU3K7HBgpeh36mX1lsR0yNjyRghvhO7p9ZzeOGHtPrah 1+pJ5luHURXXqugel0dhM36Q3yZi+I8s3iuQ2xTc= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/24870] gdb.lookup_type fails if a name is both a type and a variable Date: Fri, 01 Dec 2023 04:06:37 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed assigned_to cc cf_reconfirmed_on bug_status 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=3D24870 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|unassigned at sourceware dot org |tromey at sourcewar= e dot org CC| |tromey at sourceware dot o= rg Last reconfirmed| |2023-12-01 Status|UNCONFIRMED |NEW --- Comment #1 from Tom Tromey --- This is fixed the symbol domain series. >>> gdb.lookup_type('foo') >>> gdb.lookup_global_symbol('foo', gdb.SYMBOL_VAR_DOMAIN).value() >>> gdb.lookup_global_symbol('foo', gdb.SYMBOL_TYPE_DOMAIN).value() Traceback (most recent call last): File "", line 1, in TypeError: cannot get the value of a typedef --=20 You are receiving this mail because: You are on the CC list for the bug.=