[Bug python/17291] IWBN if the print format was available to pretty-printers.

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Fri Jul 15 15:28:53 GMT 2022


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

--- Comment #3 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=c4a3dbaf1132105586586617a59d0e7566eefd41

commit c4a3dbaf1132105586586617a59d0e7566eefd41
Author: Tom Tromey <tromey@adacore.com>
Date:   Mon Jun 6 09:54:45 2022 -0600

    Expose current 'print' settings to Python

    PR python/17291 asks for access to the current print options.  While I
    think this need is largely satisfied by the existence of
    Value.format_string, it seemed to me that a bit more could be done.

    First, while Value.format_string uses the user's settings, it does not
    react to temporary settings such as "print/x".  This patch changes
    this.

    Second, there is no good way to examine the current settings (in
    particular the temporary ones in effect for just a single "print").
    This patch adds this as well.

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

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


More information about the Gdb-prs mailing list