From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E95EF385841D; Sat, 6 May 2023 16:49:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E95EF385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1683391742; bh=Yp9eraIq/nQAKpOfHwOHsa9URqAih+GoQOGXEAyJ0js=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xDacvMRiDPVWz0h0uXhg9cNmkG/LGcN+JwXp76omJCKCBLDCOVn01nqm3jnPziN/J SXzXojP2zW753ZKQ+AtW3yLXPVle8WjOvlQi7w5lJ8ib/rBgymFrRFHZgfAwdlWGL3 d6qH9Yh+Q5G0HDrWXLydoFqgVPeXHUT7Uavufy+w= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug python/30057] Pretty printing doesn't seem to happen for static members Date: Sat, 06 May 2023 16:49:02 +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: cvs-commit at gcc dot gnu.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: 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 #7 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3c0e312054aa= 6c46f0efba0ab111f83f0ea4caed commit 3c0e312054aa6c46f0efba0ab111f83f0ea4caed Author: Tom Tromey Date: Fri Apr 21 18:53:48 2023 -0600 Allow pretty-print of static members Python pretty-printers haven't applied to static members for quite some time. I tracked this down to the call to cp_print_value_fields in cp_print_static_field -- it doesn't let pretty-printers have a chance to print the value. This patch fixes the problem. The way that static members are handled is very weird to me. I tend to think this should be done more globally, like in value_print. However, I haven't made any big change. Reviewed-by: Keith Seitz Tested-by: Keith Seitz Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30057 --=20 You are receiving this mail because: You are on the CC list for the bug.=