]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: make core_target_open static
authorAndrew Burgess <aburgess@redhat.com>
Wed, 2 Oct 2024 14:46:51 +0000 (15:46 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 9 Dec 2024 11:01:00 +0000 (11:01 +0000)
The core_target_open function is only used in corelow.c, so lets make
it static.

There should be no user visible changes after this commit.

gdb/corelow.c
gdb/gdbcore.h

index c176b24022d18dc106b901e32465848d43d1b254..4945b75838201b755deb5a08ab55c0cb672b1c9a 100644 (file)
 #define O_LARGEFILE 0
 #endif
 
+/* Forward declarations.  */
+
+static void core_target_open (const char *arg, int from_tty);
+
 /* A mem_range and the build-id associated with the file mapped into the
    given range.  */
 
@@ -904,9 +908,9 @@ locate_exec_from_corefile_build_id (bfd *abfd, core_target *target,
     }
 }
 
-/* See gdbcore.h.  */
+/* Open and set up the core file bfd.  */
 
-void
+static void
 core_target_open (const char *arg, int from_tty)
 {
   const char *p;
index 782643acf56d1bd036ba93dd5308caa72d3a2557..eb318d557d4e36ae8a37e70fd51861db47a21c23 100644 (file)
@@ -124,10 +124,6 @@ extern void (*deprecated_file_changed_hook) (const char *filename);
 
 extern bool write_files;
 
-/* Open and set up the core file bfd.  */
-
-extern void core_target_open (const char *arg, int from_tty);
-
 extern void core_file_command (const char *filename, int from_tty);
 
 extern void exec_file_attach (const char *filename, int from_tty);