* cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
[deliverable/binutils-gdb.git] / gdb / gcore.c
index 14432895565c1b02d7980f92d1b3b2dfa3effb85..a45e78773919a177922d21113976ca91fff89f7a 100644 (file)
@@ -51,12 +51,10 @@ static int gcore_memory_sections (bfd *);
 bfd *
 create_gcore_bfd (char *filename)
 {
-  bfd *obfd = bfd_openw (filename, default_gcore_target ());
+  bfd *obfd = gdb_bfd_openw (filename, default_gcore_target ());
 
-  gdb_bfd_ref (obfd);
   if (!obfd)
     error (_("Failed to open '%s' for output."), filename);
-  gdb_bfd_stash_filename (obfd);
   bfd_set_format (obfd, bfd_core);
   bfd_set_arch_mach (obfd, default_gcore_arch (), default_gcore_mach ());
   return obfd;
This page took 0.025434 seconds and 4 git commands to generate.