Remove gdb_bfd_fdopenr
authorTom Tromey <tromey@adacore.com>
Tue, 5 Mar 2019 16:03:55 +0000 (09:03 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Mar 2019 16:06:18 +0000 (09:06 -0700)
I noticed that gdb_bfd_fdopenr is no longer used, so this patch
removes it.  Tested by rebuilding and by grep.

gdb/ChangeLog
2019-03-05  Tom Tromey  <tromey@adacore.com>

* gdb_bfd.c (gdb_bfd_fdopenr): Remove.
* gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.

gdb/ChangeLog
gdb/gdb_bfd.c
gdb/gdb_bfd.h

index 563cda6d38818f385b6e83f1178c7a32f56ef5ed..359d222be4dab925fb6e78411bc8e71098114b96 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-05  Tom Tromey  <tromey@adacore.com>
+
+       * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
+       * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
+
 2019-03-05  Tom Tromey  <tromey@adacore.com>
 
        * windows-nat.c (windows_nat_target::attach)
index b0824ad21039c7c55a39af9814c08499ad4674d6..5c6bbef551d94376b9fb27e1f69ba5298cdcb48a 100644 (file)
@@ -874,16 +874,6 @@ gdb_bfd_record_inclusion (bfd *includer, bfd *includee)
   gdata->included_bfds.push_back (gdb_bfd_ref_ptr::new_reference (includee));
 }
 
-/* See gdb_bfd.h.  */
-
-gdb_bfd_ref_ptr
-gdb_bfd_fdopenr (const char *filename, const char *target, int fd)
-{
-  bfd *result = bfd_fdopenr (filename, target, fd);
-
-  return gdb_bfd_ref_ptr::new_reference (result);
-}
-
 \f
 
 gdb_static_assert (ARRAY_SIZE (_bfd_std_section) == 4);
index 507f4e46b957015d984528389e9e7ea9f83c5fb8..87b48f51f7c3c6e9832df51e7a979a2e14dc2b0f 100644 (file)
@@ -161,11 +161,6 @@ gdb_bfd_ref_ptr gdb_bfd_openr_iovec (const char *filename, const char *target,
 
 gdb_bfd_ref_ptr gdb_bfd_openr_next_archived_file (bfd *archive, bfd *previous);
 
-/* A wrapper for bfd_fdopenr that initializes the gdb-specific
-   reference count.  */
-
-gdb_bfd_ref_ptr gdb_bfd_fdopenr (const char *filename, const char *target,
-                                int fd);
 
 \f
 
This page took 0.026767 seconds and 4 git commands to generate.