diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/python/py-inferior.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a221a84..24aeaa4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com> + * python/py-inferior.c (infpy_get_connection_num): Call + gdb_py_object_from_longest instead of PyLong_FromLong directly. + +2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com> + * python/py-unwind.c (unwind_infopy_add_saved_register): Handle saving user registers. diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 336c642..39efa80 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -441,7 +441,7 @@ infpy_get_connection_num (PyObject *self, void *closure) if (target == nullptr) Py_RETURN_NONE; - return PyLong_FromLong (target->connection_number); + return gdb_py_object_from_longest (target->connection_number).release (); } static PyObject * |