aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-objfile.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-09-11 18:51:31 +0000
committerDoug Evans <dje@google.com>2009-09-11 18:51:31 +0000
commitc1bd65d04220ff6e4a7356d4c2b8a16f9f3e3218 (patch)
tree13e03f6769634d4306d4fb64831747c90fe60428 /gdb/python/py-objfile.c
parentcec03d703f8c80f4a3f98fe0e3e35dde7e9b1835 (diff)
downloadbinutils-c1bd65d04220ff6e4a7356d4c2b8a16f9f3e3218.zip
binutils-c1bd65d04220ff6e4a7356d4c2b8a16f9f3e3218.tar.gz
binutils-c1bd65d04220ff6e4a7356d4c2b8a16f9f3e3218.tar.bz2
* objfiles.c (struct objfile_data): Delete member cleanup and replace
with save, free. (register_objfile_data_with_cleanup): Delete arg cleanup and replace with save, free. All callers updated. (clear_objfile_data): Replace cleanup loop with separate save and free loops. * objfiles.h (register_objfile_data_with_cleanup): Update. * arm-tdep.c (arm_objfile_data_free): Renamed from arm_objfile_data_cleanup, all callers updated. * dwarf2read.c (dwarf2_per_objfile_free): Renamed from dwarf2_per_objfile_cleanup, all callers updated. * python/py-objfile.c (py_free_objfile): Renamed from clean_up_objfile, all callers updated. * python/py-type.c (save_objfile_types): Renamed from clean_up_objfile_types, all callers updated.
Diffstat (limited to 'gdb/python/py-objfile.c')
-rw-r--r--gdb/python/py-objfile.c4
1 files changed, 2 insertions, 2 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;