Remove old gdb_bfd_openr_iovec
authorTom Tromey <tromey@adacore.com>
Thu, 24 Aug 2023 15:25:10 +0000 (09:25 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 28 Sep 2023 16:46:38 +0000 (10:46 -0600)
This removes the old gdb_bfd_openr_iovec entirely.  I think any new
code should use the type-safe approach.

Reviewed-By: Lancelot Six <lancelot.six@amd.com>
gdb/gdb_bfd.c
gdb/gdb_bfd.h

index 2f489a4f2104e9d3f46d0559f4db7cd250c19b0c..217753cf914ba0f1375e1519ffc54d27ec179768 100644 (file)
@@ -931,31 +931,6 @@ gdb_bfd_openr_iovec (const char *filename, const char *target,
 
 /* See gdb_bfd.h.  */
 
-gdb_bfd_ref_ptr
-gdb_bfd_openr_iovec (const char *filename, const char *target,
-                    void *(*open_func) (struct bfd *nbfd,
-                                        void *open_closure),
-                    void *open_closure,
-                    file_ptr (*pread_func) (struct bfd *nbfd,
-                                            void *stream,
-                                            void *buf,
-                                            file_ptr nbytes,
-                                            file_ptr offset),
-                    int (*close_func) (struct bfd *nbfd,
-                                       void *stream),
-                    int (*stat_func) (struct bfd *abfd,
-                                      void *stream,
-                                      struct stat *sb))
-{
-  bfd *result = bfd_openr_iovec (filename, target,
-                                open_func, open_closure,
-                                pread_func, close_func, stat_func);
-
-  return gdb_bfd_ref_ptr::new_reference (result);
-}
-
-/* See gdb_bfd.h.  */
-
 void
 gdb_bfd_mark_parent (bfd *child, bfd *parent)
 {
index ae374f5d7ae736dae0eed49ce0939fa31f069d5f..604365b61b1f99d64390fa52480dbcffe7f62a47 100644 (file)
@@ -181,24 +181,6 @@ using gdb_iovec_opener_ftype
 gdb_bfd_ref_ptr gdb_bfd_openr_iovec (const char *filename, const char *target,
                                     gdb_iovec_opener_ftype open_fn);
 
-/* A wrapper for bfd_openr_iovec that initializes the gdb-specific
-   reference count.  */
-
-gdb_bfd_ref_ptr gdb_bfd_openr_iovec (const char *filename, const char *target,
-                                    void *(*open_func) (struct bfd *nbfd,
-                                                        void *open_closure),
-                                    void *open_closure,
-                                    file_ptr (*pread_func) (struct bfd *nbfd,
-                                                            void *stream,
-                                                            void *buf,
-                                                            file_ptr nbytes,
-                                                            file_ptr offset),
-                                    int (*close_func) (struct bfd *nbfd,
-                                                       void *stream),
-                                    int (*stat_func) (struct bfd *abfd,
-                                                      void *stream,
-                                                      struct stat *sb));
-
 /* A wrapper for bfd_openr_next_archived_file that initializes the
    gdb-specific reference count.  */