diff options
Diffstat (limited to 'gdb/python/py-arch.c')
-rw-r--r-- | gdb/python/py-arch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/python/py-arch.c b/gdb/python/py-arch.c index 23cb2c5..c7c6fae 100644 --- a/gdb/python/py-arch.c +++ b/gdb/python/py-arch.c @@ -199,16 +199,15 @@ archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw) string_file stb; - TRY + try { insn_len = gdb_print_insn (gdbarch, pc, &stb, NULL); } - CATCH (except, RETURN_MASK_ALL) + catch (const gdb_exception_RETURN_MASK_ALL &except) { gdbpy_convert_exception (except); return NULL; } - END_CATCH if (PyDict_SetItemString (insn_dict.get (), "addr", gdb_py_long_from_ulongest (pc)) |