forked from Imagelibrary/binutils-gdb
* coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
and 'abfd'. * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile' and 'abfd'. * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'. * machoread.c (macho_add_oso_symfile): Make a cleanup for 'abfd'. (macho_symfile_read): Make a cleanup for 'dsym_bfd'. * objfiles.c (allocate_objfile): Acquire a new reference. * rs6000-nat.c (add_vmap): Don't acquire a BFD reference. * solib.c (solib_read_symbols): Don't acquire a BFD reference. * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make a cleanup for 'nbfd'. * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup for 'nbfd'. * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't make a cleanup for 'abfd'. (symbol_file_add): Make a BFD cleanup.
This commit is contained in:
@@ -896,7 +896,8 @@ JITed symbol file is not an object file, ignoring it.\n"));
|
||||
++i;
|
||||
}
|
||||
|
||||
/* This call takes ownership of NBFD. It does not take ownership of SAI. */
|
||||
/* This call does not take ownership of SAI. */
|
||||
make_cleanup_bfd_unref (nbfd);
|
||||
objfile = symbol_file_add_from_bfd (nbfd, 0, sai, OBJF_SHARED, NULL);
|
||||
|
||||
do_cleanups (old_cleanups);
|
||||
|
||||
Reference in New Issue
Block a user