gdb: move read{now,never}_symbol_files declarations to symfile.h
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 12 Jan 2021 19:19:49 +0000 (14:19 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 12 Jan 2021 19:19:49 +0000 (14:19 -0500)
... 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

gdb/ChangeLog
gdb/symfile.c
gdb/symfile.h
gdb/top.h

index 42ef34a3b2496f574e5efc2c1c58ebbe92ef991b..509e739585157fe278b6decc2c71e75e4ba6a5d7 100644 (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...
index 82693f913672a767f416eb17d6f14bd83c312167..ec5d34ac7833a9f9d10095b1ff40c45f396cb428 100644 (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.  */
 
index a6f8fafc8952dfb095fdc1dd6cdef2e4b2a272c5..23e2ad8c3a918a63b078e681662c6d0da82917ab 100644 (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) */
index a08f448778acd732f2b54c9c8bdaa3990623b698..a31b19ae9542508e59057304d48a07dcf9f362fb 100644 (file)
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -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 *);