aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-18 19:42:26 +0000
committerTom Tromey <tromey@redhat.com>2012-07-18 19:42:26 +0000
commitf9a062ffb59ebed937221b852eab2abbd43111ed (patch)
tree448939f7d9453e4624e1af78b4fee3bf9fd5fa11 /gdb/dsrec.c
parent * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close. (diff)
downloadbinutils-gdb-f9a062ffb59ebed937221b852eab2abbd43111ed.tar.gz
binutils-gdb-f9a062ffb59ebed937221b852eab2abbd43111ed.tar.bz2
binutils-gdb-f9a062ffb59ebed937221b852eab2abbd43111ed.zip
* 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/dsrec.c')
-rw-r--r--gdb/dsrec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dsrec.c b/gdb/dsrec.c
index 8eefe1e0bf4..66d4c13bfcf 100644
--- a/gdb/dsrec.c
+++ b/gdb/dsrec.c
@@ -68,7 +68,7 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset,
return;
}
- cleanup = make_cleanup_bfd_close (abfd);
+ cleanup = make_cleanup_bfd_unref (abfd);
if (bfd_check_format (abfd, bfd_object) == 0)
{
printf_filtered (_("File is not an object file\n"));