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-value.c | |
parent | b5070480d74eca8d5fdf8e7a605df2f0edc9f37a (diff) | |
download | binutils-2f8cd40c37ac59451ac48223346f513c0ee03165.zip binutils-2f8cd40c37ac59451ac48223346f513c0ee03165.tar.gz binutils-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-value.c')
-rw-r--r-- | gdb/python/py-value.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 4980076..37d5716 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -2056,8 +2056,7 @@ convert_value_from_python (PyObject *obj) } catch (const gdb_exception &except) { - gdbpy_convert_exception (except); - return NULL; + GDB_PY_HANDLE_EXCEPTION (except); } return value; |