mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
* 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.
This commit is contained in:
@@ -5240,7 +5240,7 @@ arm_coff_make_msymbol_special(int val, struct minimal_symbol *msym)
|
||||
}
|
||||
|
||||
static void
|
||||
arm_objfile_data_cleanup (struct objfile *objfile, void *arg)
|
||||
arm_objfile_data_free (struct objfile *objfile, void *arg)
|
||||
{
|
||||
struct arm_per_objfile *data = arg;
|
||||
unsigned int i;
|
||||
@@ -6032,7 +6032,7 @@ _initialize_arm_tdep (void)
|
||||
gdbarch_register (bfd_arch_arm, arm_gdbarch_init, arm_dump_tdep);
|
||||
|
||||
arm_objfile_data_key
|
||||
= register_objfile_data_with_cleanup (arm_objfile_data_cleanup);
|
||||
= register_objfile_data_with_cleanup (NULL, arm_objfile_data_free);
|
||||
|
||||
/* Register an ELF OS ABI sniffer for ARM binaries. */
|
||||
gdbarch_register_osabi_sniffer (bfd_arch_arm,
|
||||
|
||||
Reference in New Issue
Block a user