diff options
author | Tom Tromey <tom@tromey.com> | 2018-09-07 19:28:39 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-09-14 21:56:41 -0600 |
commit | a3a6aef4090ca13d065d116f5d77f4e3f7bcbf9a (patch) | |
tree | 20cde96408daf4d09951dad8e4f905a93f063746 /Makefile.in | |
parent | f70e088ff4ebf79a4bea45e84a8b042706e6e083 (diff) | |
download | gdb-a3a6aef4090ca13d065d116f5d77f4e3f7bcbf9a.zip gdb-a3a6aef4090ca13d065d116f5d77f4e3f7bcbf9a.tar.gz gdb-a3a6aef4090ca13d065d116f5d77f4e3f7bcbf9a.tar.bz2 |
Fix possible exception leak in python.c
In the Python code, gdb exceptions may not leak into the Python core.
execute_gdb_command was calling bpstat_do_actions outside of a
TRY/CATCH; which seemed risky. I don't have a test case for this, but
if bpstat_do_actions could ever throw, it could crash gdb.
This patch introduces a new scope in order to preserve the current
semantics, so it is looks a bit bigger than it really is.
Tested on x86-64 Fedora 28.
gdb/ChangeLog
2018-09-07 Tom Tromey <tom@tromey.com>
* python/python.c (execute_gdb_command): Call bpstat_do_actions
inside the TRY.
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions