diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-objfile.c | 4 | ||||
-rw-r--r-- | gdb/python/py-type.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index a483d33..a06a865 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -118,7 +118,7 @@ objfpy_set_printers (PyObject *o, PyObject *value, void *ignore) /* Clear the OBJFILE pointer in an Objfile object and remove the reference. */ static void -clean_up_objfile (struct objfile *objfile, void *datum) +py_free_objfile (struct objfile *objfile, void *datum) { struct cleanup *cleanup; objfile_object *object = datum; @@ -166,7 +166,7 @@ void gdbpy_initialize_objfile (void) { objfpy_objfile_data_key - = register_objfile_data_with_cleanup (clean_up_objfile); + = register_objfile_data_with_cleanup (NULL, py_free_objfile); if (PyType_Ready (&objfile_object_type) < 0) return; diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index f23248c..590d90a 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -527,7 +527,7 @@ typy_str (PyObject *self) static const struct objfile_data *typy_objfile_data_key; static void -clean_up_objfile_types (struct objfile *objfile, void *datum) +save_objfile_types (struct objfile *objfile, void *datum) { type_object *obj = datum; htab_t copied_types; @@ -643,7 +643,7 @@ gdbpy_initialize_types (void) int i; typy_objfile_data_key - = register_objfile_data_with_cleanup (clean_up_objfile_types); + = register_objfile_data_with_cleanup (save_objfile_types, NULL); if (PyType_Ready (&type_object_type) < 0) return; |