[Bug python/30057] Pretty printing doesn't seem to happen for static members

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Sat May 6 16:49:02 GMT 2023


https://sourceware.org/bugzilla/show_bug.cgi?id=30057

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3c0e312054aa6c46f0efba0ab111f83f0ea4caed

commit 3c0e312054aa6c46f0efba0ab111f83f0ea4caed
Author: Tom Tromey <tom@tromey.com>
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 <keiths@redhat.com>
    Tested-by:  Keith Seitz <keiths@redhat.com>
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30057

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list