Report Python errors coming from gdb.post_event
authorTom Tromey <tom@tromey.com>
Sat, 15 Sep 2018 06:07:32 +0000 (00:07 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 24 Sep 2018 05:15:12 +0000 (23:15 -0600)
commit39a24317ac65837663ce1e1b0adcf880758ddc8e
treed60747875bd25c65c064c2fcfdd14370ecbcec2f
parentf5769a2c696affc3ae1274e2329777d7d4d7e8be
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.
gdb/ChangeLog
gdb/python/python.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/python.exp
This page took 0.026383 seconds and 4 git commands to generate.