[Bug python/23830] use the stable python 3 ABI

"cvs-commit at gcc dot gnu.org via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23830

--- Comment #20 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Matthieu Longo <[email protected]>:

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

commit aaca0da76bcfcb9b3bba41ae0959fcb742710ca4
Author: Matthieu Longo <[email protected]>
Date:   Mon Mar 30 17:12:53 2026 +0100

    gdb/python: eval_python_command returns result of the evaluation

    A previous commit [1] centralized the Python code evaluation in the
    helper function eval_python_command(). However, a missed case in
    varobj_set_visualizer() requires not only the exit status but the
    result of the evaluation too.

    This patch updates eval_python_command() to return the result of
    the evaluation, or NULL if an error occurred. It also adjusts the
    existing callers accordingly. Finally, it replaces the use of
    PyRun_String() in varobj_set_visualizer() with a call to
    eval_python_command().

    [1]: 264a8a2236e8aa64b333a69e42a55ff8c0844f6e

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

    Approved-By: Tom Tromey <[email protected]>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.