aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-record.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-record.c')
-rw-r--r--gdb/python/py-record.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/python/py-record.c b/gdb/python/py-record.c
index 3d638e5..e818560 100644
--- a/gdb/python/py-record.c
+++ b/gdb/python/py-record.c
@@ -638,19 +638,15 @@ gdbpy_current_recording (PyObject *self, PyObject *args)
PyObject *
gdbpy_stop_recording (PyObject *self, PyObject *args)
{
- PyObject *ret = NULL;
-
TRY
{
record_stop (0);
- ret = Py_None;
- Py_INCREF (Py_None);
}
CATCH (except, RETURN_MASK_ALL)
{
- gdbpy_convert_exception (except);
+ GDB_PY_HANDLE_EXCEPTION (except);
}
END_CATCH
- return ret;
+ Py_RETURN_NONE;
}