gdb: move read{now,never}_symbol_files declarations to symfile.h

... since they are defined in symfile.c.

gdb/ChangeLog:

	* top.h (readnow_symbol_files, readnever_symbol_files): Move
	declarations to ...
	* symfile.h: ... here.
	* symfile.c: Update doc.

Change-Id: Ie35a80d236bea70947bc496f66f62c8c621670b4
This commit is contained in:
Simon Marchi 2021-01-12 14:19:49 -05:00
parent 16e9019ef7
commit fe7a351a8e
4 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
* top.h (readnow_symbol_files, readnever_symbol_files): Move
declarations to ...
* symfile.h: ... here.
* symfile.c: Update doc.
2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
* target.h (baud_rate, serial_parity): Move declarations...

View File

@ -85,8 +85,14 @@ using clear_symtab_users_cleanup
= FORWARD_SCOPE_EXIT (clear_symtab_users);
/* Global variables owned by this file. */
int readnow_symbol_files; /* Read full symbols immediately. */
int readnever_symbol_files; /* Never read full symbols. */
/* See symfile.h. */
int readnow_symbol_files;
/* See symfile.h. */
int readnever_symbol_files;
/* Functions this file defines. */

View File

@ -641,4 +641,12 @@ extern gdb_bfd_ref_ptr find_separate_debug_file_in_section (struct objfile *);
extern bool separate_debug_file_debug;
/* Read full symbols immediately. */
extern int readnow_symbol_files;
/* Never read full symbols. */
extern int readnever_symbol_files;
#endif /* !defined(SYMFILE_H) */

View File

@ -273,10 +273,6 @@ extern void set_prompt (const char *s);
extern int gdb_in_secondary_prompt_p (struct ui *ui);
/* From random places. */
extern int readnow_symbol_files;
extern int readnever_symbol_files;
/* Perform _initialize initialization. */
extern void gdb_init (char *);