diff options
Diffstat (limited to 'gdb/python/py-frame.c')
-rw-r--r-- | gdb/python/py-frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index 0907055..24d4fae 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -165,7 +165,7 @@ frapy_type (PyObject *self, PyObject *args) GDB_PY_HANDLE_EXCEPTION (except); } - return PyInt_FromLong (type); + return gdb_py_object_from_longest (type).release (); } /* Implementation of gdb.Frame.architecture (self) -> gdb.Architecture. @@ -209,7 +209,7 @@ frapy_unwind_stop_reason (PyObject *self, PyObject *args) stop_reason = get_frame_unwind_stop_reason (frame); - return PyInt_FromLong (stop_reason); + return gdb_py_object_from_longest (stop_reason).release (); } /* Implementation of gdb.Frame.pc (self) -> Long. |