[pushed] Remove unused declaration from gcore.h

Message ID 20200727155513.988937-1-tromey@adacore.com
State New
Headers show
Series
  • [pushed] Remove unused declaration from gcore.h
Related show

Commit Message

Tom Tromey July 27, 2020, 3:55 p.m.
gcore.h declares load_corefile, but there are no other mentions of
this in the source.  This patch removes it.  Tested by grep and
rebuilding.

gdb/ChangeLog
2020-07-27  Tom Tromey  <tromey@adacore.com>

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

-- 
2.26.2

Patch

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);