diff options
Diffstat (limited to 'gdb/python/py-prettyprint.c')
-rw-r--r-- | gdb/python/py-prettyprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c index 1e72e90..e2bfd6b 100644 --- a/gdb/python/py-prettyprint.c +++ b/gdb/python/py-prettyprint.c @@ -98,9 +98,9 @@ search_pp_list (PyObject *list, PyObject *value) static PyObject * find_pretty_printer_from_objfiles (PyObject *value) { - for (objfile *obj : current_program_space->objfiles ()) + for (objfile &obj : current_program_space->objfiles ()) { - gdbpy_ref<> objf = objfile_to_objfile_object (obj); + gdbpy_ref<> objf = objfile_to_objfile_object (&obj); if (objf == NULL) { /* Ignore the error and continue. */ |