diff options
Diffstat (limited to 'gdb/python/py-record.c')
-rw-r--r-- | gdb/python/py-record.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/python/py-record.c b/gdb/python/py-record.c index e818560174e..66fa8bf3f5e 100644 --- a/gdb/python/py-record.c +++ b/gdb/python/py-record.c @@ -602,16 +602,15 @@ gdbpy_start_recording (PyObject *self, PyObject *args) if (!PyArg_ParseTuple (args, "|ss", &method, &format)) return NULL; - TRY + try { record_start (method, format, 0); ret = gdbpy_current_recording (self, args); } - CATCH (except, RETURN_MASK_ALL) + catch (const gdb_exception_RETURN_MASK_ALL &except) { gdbpy_convert_exception (except); } - END_CATCH return ret; } @@ -638,15 +637,14 @@ gdbpy_current_recording (PyObject *self, PyObject *args) PyObject * gdbpy_stop_recording (PyObject *self, PyObject *args) { - TRY + try { record_stop (0); } - CATCH (except, RETURN_MASK_ALL) + catch (const gdb_exception_RETURN_MASK_ALL &except) { GDB_PY_HANDLE_EXCEPTION (except); } - END_CATCH Py_RETURN_NONE; } |