This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove gdb_bfd_fdopenr


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=edbd9e45a906970852cee1999ab27c18c18a5ff5

commit edbd9e45a906970852cee1999ab27c18c18a5ff5
Author: Tom Tromey <tromey@adacore.com>
Date:   Tue Mar 5 09:03:55 2019 -0700

    Remove gdb_bfd_fdopenr
    
    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.

Diff:
---
 gdb/ChangeLog |  5 +++++
 gdb/gdb_bfd.c | 10 ----------
 gdb/gdb_bfd.h |  5 -----
 3 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 563cda6..359d222 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 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)
 	(windows_nat_target::detach): Don't call gdb_flush.
 	* valprint.c (generic_val_print, val_print, val_print_string):
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index b0824ad..5c6bbef 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -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);
-}
-
 
 
 gdb_static_assert (ARRAY_SIZE (_bfd_std_section) == 4);
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h
index 507f4e4..87b48f5 100644
--- a/gdb/gdb_bfd.h
+++ b/gdb/gdb_bfd.h
@@ -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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]