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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-record.c b/gdb/python/py-record.c
index a6b08dc..3863408 100644
--- a/gdb/python/py-record.c
+++ b/gdb/python/py-record.c
@@ -464,7 +464,7 @@ recpy_gap_reason_code (PyObject *self, void *closure)
{
const recpy_gap_object * const obj = (const recpy_gap_object *) self;
- return PyInt_FromLong (obj->reason_code);
+ return gdb_py_object_from_longest (obj->reason_code).release ();
}
/* Implementation of RecordGap.error_string [str]. */