[binutils-gdb] Remove unused declaration from gcore.h

Tom Tromey tromey@sourceware.org
Mon Jul 27 15:55:21 GMT 2020


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

commit a4089f524fbcf176f3d4aae43a35e3c6effcc854
Author: Tom Tromey <tromey@adacore.com>
Date:   Mon Jul 27 09:53:32 2020 -0600

    Remove unused declaration from gcore.h
    
    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.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/gcore.h   | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1d00d15e176..bc6e6e5af21 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2020-07-27  Tom Tromey  <tromey@adacore.com>
+
+	* gcore.h (load_corefile): Don't declare.
+
 2020-07-27  Tom de Vries  <tdevries@suse.de>
 
 	* configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
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);


More information about the Gdb-cvs mailing list