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-arch.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-arch.c')
-rw-r--r-- | gdb/python/py-arch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-arch.c b/gdb/python/py-arch.c index c6f5662..178efab 100644 --- a/gdb/python/py-arch.c +++ b/gdb/python/py-arch.c @@ -199,8 +199,7 @@ archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw) } catch (const gdb_exception &except) { - gdbpy_convert_exception (except); - return NULL; + GDB_PY_HANDLE_EXCEPTION (except); } gdbpy_ref<> pc_obj = gdb_py_object_from_ulongest (pc); |