Move it out of defs.h, the corresponding definition is in symfile.c.
Change-Id: I984666c3bcd213f8574e9ec91462e1d61f77f16b
Approved-By: Tom Tromey <tom@tromey.com>
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);
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)
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) */