diff options
author | Tom de Vries <tdevries@suse.de> | 2024-08-27 09:20:18 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-08-27 09:20:18 +0200 |
commit | 2f8cd40c37ac59451ac48223346f513c0ee03165 (patch) | |
tree | dad23f7ab259b5dcd52b2f94b13dbdca96385b20 /gdb/python/py-stopevent.c | |
parent | b5070480d74eca8d5fdf8e7a605df2f0edc9f37a (diff) | |
download | gdb-2f8cd40c37ac59451ac48223346f513c0ee03165.zip gdb-2f8cd40c37ac59451ac48223346f513c0ee03165.tar.gz gdb-2f8cd40c37ac59451ac48223346f513c0ee03165.tar.bz2 |
[gdb/python] Use GDB_PY_HANDLE_EXCEPTION more often
I found a few more places where we can use GDB_PY_HANDLE_EXCEPTION.
Tested on x86_64-linux.
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-stopevent.c')
-rw-r--r-- | gdb/python/py-stopevent.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-stopevent.c b/gdb/python/py-stopevent.c index be26bc1..47f81bd 100644 --- a/gdb/python/py-stopevent.c +++ b/gdb/python/py-stopevent.c @@ -74,8 +74,7 @@ py_print_bpstat (bpstat *bs, enum gdb_signal stop_signal) } catch (const gdb_exception &except) { - gdbpy_convert_exception (except); - return nullptr; + GDB_PY_HANDLE_EXCEPTION (except); } gdbpy_ref<> dict = uiout.result (); |