[Bug python/14062] Exceptions in callbacks posted by gdb.post_event are silently ignored.

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Mon Sep 24 05:17:00 GMT 2018


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

--- Comment #2 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=39a24317ac65837663ce1e1b0adcf880758ddc8e

commit 39a24317ac65837663ce1e1b0adcf880758ddc8e
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 15 00:07:32 2018 -0600

    Report Python errors coming from gdb.post_event

    PR python/14062 points out that errors coming from the gdb.post_event
    callback are not reported.  This can make it hard to understand why
    your Python code in gdb isn't working.

    Because users have control over whether exceptions are printed at all,
    it seems good to simply have post_event report errors in the usual
    way.

    2018-09-23  Tom Tromey  <tom@tromey.com>

        PR python/14062:
        * python/python.c (gdbpy_run_events): Do not ignore exceptions.

    gdb/testsuite/ChangeLog
    2018-09-23  Tom Tromey  <tom@tromey.com>

        PR python/14062:
        * gdb.python/python.exp: Add test for post_event error.

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


More information about the Gdb-prs mailing list