diff options
| -rw-r--r-- | gdb/python/py-inferior.c | 2 | ||||
| -rw-r--r-- | gdb/python/py-mi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index fd9da27..ab948d2 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -896,7 +896,7 @@ infpy_set_args (PyObject *self, PyObject *value, void *closure) return -1; for (Py_ssize_t i = 0; i < len; ++i) { - gdbpy_ref<> item (PySequence_ITEM (value, i)); + gdbpy_ref<> item (PySequence_GetItem (value, i)); if (item == nullptr) return -1; gdb::unique_xmalloc_ptr<char> str diff --git a/gdb/python/py-mi.c b/gdb/python/py-mi.c index 6c1a883..5189bda 100644 --- a/gdb/python/py-mi.c +++ b/gdb/python/py-mi.c @@ -278,7 +278,7 @@ serialize_mi_result_1 (PyObject *result, const char *field_name) gdbpy_handle_exception (); for (Py_ssize_t i = 0; i < len; ++i) { - gdbpy_ref<> item (PySequence_ITEM (result, i)); + gdbpy_ref<> item (PySequence_GetItem (result, i)); if (item == nullptr) gdbpy_handle_exception (); serialize_mi_result_1 (item.get (), nullptr); |
