diff options
Diffstat (limited to 'gdb/python/py-progspace.c')
-rw-r--r-- | gdb/python/py-progspace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index 61f9b4b..9f3e45c 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -431,9 +431,9 @@ pspy_get_objfiles (PyObject *self_, PyObject *args) if (self->pspace != NULL) { - for (objfile *objf : self->pspace->objfiles ()) + for (objfile &objf : self->pspace->objfiles ()) { - gdbpy_ref<> item = objfile_to_objfile_object (objf); + gdbpy_ref<> item = objfile_to_objfile_object (&objf); if (item == nullptr || PyList_Append (list.get (), item.get ()) == -1) |