mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
gdb: move symbol_file_command declaration to symfile.h
Move it out of defs.h, the corresponding definition is in symfile.c. Change-Id: I984666c3bcd213f8574e9ec91462e1d61f77f16b Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
parent
cbf58b22f7
commit
9085a018ca
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user