From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 62C263858C83; Sat, 22 Apr 2023 01:15:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62C263858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682126108; bh=pD/nOgEXpVlgorJ2rkViAkEYeK5jc8yxiV6EyHo+xd8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OZMe4qIa9DXfdMyHH339MQUPtveQem8IfkhTAodF5K+AGlBHQl9IJpmsco2DMQVgI AIMnAg4BLB5FuvI6bC+o14K4mvE3vz9shxXLaRYH3HKIPt4jHvPY5rl+theglzuq5T Dk7M0iAIvECxqnEK/eJVNq9SsHEmhO/xvixqA4uc= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/30057] Pretty printing doesn't seem to happen for static members Date: Sat, 22 Apr 2023 01:15:07 +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: 12.1 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: 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=3D30057 --- Comment #4 from Tom Tromey --- I think the issue is the code to check for a repeated static member is local to cp-valprint, so cp_print_static_field short-circuits value printing to handle this case. This also seems to miss that a union can have a static member. This seems like something that should instead be handled globally by the top-level value printer. --=20 You are receiving this mail because: You are on the CC list for the bug.=