summaryrefslogtreecommitdiff
path: root/gdb/solib-darwin.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-18 19:42:25 +0000
committerTom Tromey <tromey@redhat.com>2012-07-18 19:42:25 +0000
commit769cb3532d1a1a06cd9248370244df5ac8b30df6 (patch)
tree3fa5711b1ee670abedaea73aef13281c9ca59026 /gdb/solib-darwin.c
parent1f20395dc965144313da256a2f46448787cb7219 (diff)
downloadgdb-769cb3532d1a1a06cd9248370244df5ac8b30df6.tar.gz
* utils.c (make_cleanup_bfd_unref): Rename from
make_cleanup_bfd_close. * defs.h (make_cleanup_bfd_unref): Rename from make_cleanup_bfd_close. * cli/cli-dump.c (bfd_openr_with_cleanup): Update. (bfd_openw_with_cleanup): Update. * corelow.c (core_open): Update. * dsrec.c (load_srec): Update. * m32r-rom.c (m32r_load, m32r_upload_command): Update. * remote-m32r-sdi.c (m32r_load): Update. * remote-mips.c (mips_load_srec): Update. (pmon_load_fast): Update. * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init): Update. (darwin_bfd_open): Update. * solib.c (solib_bfd_fopen): Update. * symfile-mem.c (symbol_file_add_from_memory): Update. * symfile.c (symbol_file_add_with_addrs_or_offsets): Update. (symfile_bfd_open): Update. (generic_load): Update.
Diffstat (limited to 'gdb/solib-darwin.c')
-rw-r--r--gdb/solib-darwin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index 8d8da7e604c..7109eadde37 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -376,13 +376,13 @@ darwin_solib_get_all_image_info_addr_at_init (struct darwin_info *info)
{
bfd *sub;
- make_cleanup_bfd_close (dyld_bfd);
+ make_cleanup_bfd_unref (dyld_bfd);
sub = bfd_mach_o_fat_extract (dyld_bfd, bfd_object,
gdbarch_bfd_arch_info (target_gdbarch));
if (sub)
{
dyld_bfd = gdb_bfd_ref (sub);
- make_cleanup_bfd_close (sub);
+ make_cleanup_bfd_unref (sub);
}
else
dyld_bfd = NULL;
@@ -517,7 +517,7 @@ darwin_bfd_open (char *pathname)
gdbarch_bfd_arch_info (target_gdbarch));
if (!res)
{
- make_cleanup_bfd_close (abfd);
+ make_cleanup_bfd_unref (abfd);
error (_("`%s': not a shared-library: %s"),
bfd_get_filename (abfd), bfd_errmsg (bfd_get_error ()));
}