diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-18 19:42:25 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-18 19:42:25 +0000 |
commit | 769cb3532d1a1a06cd9248370244df5ac8b30df6 (patch) | |
tree | 3fa5711b1ee670abedaea73aef13281c9ca59026 /gdb/m32r-rom.c | |
parent | 1f20395dc965144313da256a2f46448787cb7219 (diff) | |
download | gdb-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/m32r-rom.c')
-rw-r--r-- | gdb/m32r-rom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c index 9dbcd2609c8..ffda6f91b7f 100644 --- a/gdb/m32r-rom.c +++ b/gdb/m32r-rom.c @@ -133,7 +133,7 @@ m32r_load (char *filename, int from_tty) abfd = gdb_bfd_ref (bfd_openr (filename, 0)); if (!abfd) error (_("Unable to open file %s."), filename); - cleanup = make_cleanup_bfd_close (abfd); + cleanup = make_cleanup_bfd_unref (abfd); if (bfd_check_format (abfd, bfd_object) == 0) error (_("File is not an object file.")); gettimeofday (&start_time, NULL); @@ -530,7 +530,7 @@ m32r_upload_command (char *args, int from_tty) gettimeofday (&end_time, NULL); abfd = gdb_bfd_ref (bfd_openr (args, 0)); - cleanup = make_cleanup_bfd_close (abfd); + cleanup = make_cleanup_bfd_unref (abfd); if (abfd != NULL) { /* Download is done -- print section statistics. */ if (bfd_check_format (abfd, bfd_object) == 0) |