]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: move symbol_file_command declaration to symfile.h
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 23 Apr 2024 13:23:02 +0000 (09:23 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 23 Apr 2024 15:26:14 +0000 (11:26 -0400)
Move it out of defs.h, the corresponding definition is in symfile.c.

Change-Id: I984666c3bcd213f8574e9ec91462e1d61f77f16b
Approved-By: Tom Tromey <tom@tromey.com>
gdb/defs.h
gdb/symfile.c
gdb/symfile.h

index ef5634da52c9449490ce531092e07f25d5f33d9e..8fde5be1cd35d0d37e8e946888c06c51372498a1 100644 (file)
@@ -188,10 +188,6 @@ struct value;
    globals that are currently only available to main.c.  */
 extern std::string relocate_gdb_directory (const char *initial, bool relocatable);
 
-/* From symfile.c */
-
-extern void symbol_file_command (const char *, int);
-
 /* From top.c */
 
 typedef void initialize_file_ftype (void);
index b7570a32dc0ba0ab3c89c122a9ba0a1799ae87fe..883f1c0b05052a8bede1c1ef4f8ee468e1c5c5f8 100644 (file)
@@ -1596,19 +1596,7 @@ validate_readnow_readnever (objfile_flags flags)
     error (_("-readnow and -readnever cannot be used simultaneously"));
 }
 
-/* This is the symbol-file command.  Read the file, analyze its
-   symbols, and add a struct symtab to a symtab list.  The syntax of
-   the command is rather bizarre:
-
-   1. The function buildargv implements various quoting conventions
-   which are undocumented and have little or nothing in common with
-   the way things are quoted (or not quoted) elsewhere in GDB.
-
-   2. Options are used, which are not generally used in GDB (perhaps
-   "set mapped on", "set readnow on" would be better)
-
-   3. The order of options matters, which is contrary to GNU
-   conventions (because it is confusing and inconvenient).  */
+/* See symfile.h.  */
 
 void
 symbol_file_command (const char *args, int from_tty)
index 6f8b441b39fd3007f802f78181e7da420fd7a84f..a5b0c91469c755325949948d1d7dd9515757e182 100644 (file)
@@ -379,4 +379,20 @@ extern int readnow_symbol_files;
 
 extern int readnever_symbol_files;
 
+/* This is the symbol-file command.  Read the file, analyze its
+   symbols, and add a struct symtab to a symtab list.  The syntax of
+   the command is rather bizarre:
+
+   1. The function buildargv implements various quoting conventions
+   which are undocumented and have little or nothing in common with
+   the way things are quoted (or not quoted) elsewhere in GDB.
+
+   2. Options are used, which are not generally used in GDB (perhaps
+   "set mapped on", "set readnow on" would be better)
+
+   3. The order of options matters, which is contrary to GNU
+   conventions (because it is confusing and inconvenient).  */
+
+extern void symbol_file_command (const char *, int);
+
 #endif /* !defined(SYMFILE_H) */