[pushed] Remove unused declaration from gcore.h

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[pushed] Remove unused declaration from gcore.h

Tom Tromey-4
gcore.h declares load_corefile, but there are no other mentions of
this in the source.  This patch removes it.  Tested by grep and

2020-07-27  Tom Tromey  <[hidden email]>

        * gcore.h (load_corefile): Don't declare.
 gdb/ChangeLog | 4 ++++
 gdb/gcore.h   | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gdb/gcore.h b/gdb/gcore.h
index 9b85e46b601..64bfe128ef8 100644
--- a/gdb/gcore.h
+++ b/gdb/gcore.h
@@ -24,7 +24,6 @@
 extern gdb_bfd_ref_ptr create_gcore_bfd (const char *filename);
 extern void write_gcore_file (bfd *obfd);
-extern bfd *load_corefile (char *filename, int from_tty);
 extern int objfile_find_memory_regions (struct target_ops *self,
  find_memory_region_ftype func,
  void *obfd);