diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-18 19:42:26 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-18 19:42:26 +0000 |
commit | f9a062ffb59ebed937221b852eab2abbd43111ed (patch) | |
tree | 448939f7d9453e4624e1af78b4fee3bf9fd5fa11 /gdb/symfile.c | |
parent | d6ad71ba41afb220549d1c7fe61edd6bddd128ad (diff) | |
download | gdb-f9a062ffb59ebed937221b852eab2abbd43111ed.zip gdb-f9a062ffb59ebed937221b852eab2abbd43111ed.tar.gz gdb-f9a062ffb59ebed937221b852eab2abbd43111ed.tar.bz2 |
* 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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 99427ae..c904011 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1075,7 +1075,7 @@ symbol_file_add_with_addrs_or_offsets (bfd *abfd, add_flags &= ~SYMFILE_NO_READ; } - my_cleanups = make_cleanup_bfd_close (abfd); + my_cleanups = make_cleanup_bfd_unref (abfd); /* Give user a chance to burp if we'd be interactively wiping out any existing symbols. */ @@ -1731,7 +1731,7 @@ symfile_bfd_open (char *name) if (!bfd_check_format (sym_bfd, bfd_object)) { - make_cleanup_bfd_close (sym_bfd); + make_cleanup_bfd_unref (sym_bfd); error (_("`%s': can't read symbols: %s."), name, bfd_errmsg (bfd_get_error ())); } @@ -1775,7 +1775,7 @@ symfile_bfd_open (char *name) if (!bfd_check_format (sym_bfd, bfd_object)) { - make_cleanup_bfd_close (sym_bfd); + make_cleanup_bfd_unref (sym_bfd); error (_("`%s': can't read symbols: %s."), name, bfd_errmsg (bfd_get_error ())); } @@ -2113,7 +2113,7 @@ generic_load (char *args, int from_tty) return; } - make_cleanup_bfd_close (loadfile_bfd); + make_cleanup_bfd_unref (loadfile_bfd); if (!bfd_check_format (loadfile_bfd, bfd_object)) { |