]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: move two declarations out of defs.h
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 22 Apr 2024 20:10:11 +0000 (16:10 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 23 Apr 2024 01:34:19 +0000 (21:34 -0400)
Move declarations of initialize_progspace and initialize_inferiors to
progspace.h and inferior.h, respectively.

Change-Id: I62292ffda429861b9f27d8c836a56d161dfa548d
Approved-By: John Baldwin <jhb@FreeBSD.org>
gdb/defs.h
gdb/inferior.c
gdb/inferior.h
gdb/progspace.c
gdb/progspace.h

index cf471bf5d6629f93f9aa16dca7fbce9a9c88f2dc..ce8f29b2cf6a3718ddea057de9a2d2fd1bf57881 100644 (file)
@@ -588,11 +588,6 @@ extern int (*deprecated_ui_load_progress_hook) (const char *section,
 /* * A width that can achieve a better legibility for GDB MI mode.  */
 #define GDB_MI_MSG_WIDTH  80
 
-/* From progspace.c */
-
-extern void initialize_progspace (void);
-extern void initialize_inferiors (void);
-
 /* * Special block numbers */
 
 enum block_enum
index 4e1d789d1ba658665e4cd772f07d65bb2eab578d..5621ea40a6d74b32c724ec9670f05c5c3f43c349 100644 (file)
@@ -1078,10 +1078,10 @@ static const struct internalvar_funcs inferior_funcs =
   NULL,
 };
 
-\f
+/* See inferior.h.  */
 
 void
-initialize_inferiors (void)
+initialize_inferiors ()
 {
   struct cmd_list_element *c = NULL;
 
index 7be28423aeb1fec91806788c90d15d74b835802a..e239aa5b3cf08c61bd50e7fa12306df3a7730ece 100644 (file)
@@ -327,6 +327,9 @@ struct inferior_control_state
   enum stop_kind stop_soon;
 };
 
+/* Initialize the inferior-related global state.  */
+extern void initialize_inferiors ();
+
 /* Return a pointer to the current inferior.  */
 extern inferior *current_inferior ();
 
index 131cd2f118659ab85432a0c22558aad83dfdcb63..c3a9909dcd4b081aa4fbe5d3029b5df4ab740ce5 100644 (file)
@@ -435,10 +435,10 @@ program_space::clear_solib_cache ()
   deleted_solibs.clear ();
 }
 
-\f
+/* See progspace.h.  */
 
 void
-initialize_progspace (void)
+initialize_progspace ()
 {
   add_cmd ("program-spaces", class_maintenance,
           maintenance_info_program_spaces_command,
index 7f5e23df1264ea06c4a850f17e0a007c6618a75b..bbf54efa07ad163714488aeecd4b5a27be601322 100644 (file)
@@ -424,6 +424,9 @@ extern std::vector<struct program_space *>program_spaces;
 /* The current program space.  This is always non-null.  */
 extern struct program_space *current_program_space;
 
+/* Initialize progspace-related global state.  */
+extern void initialize_progspace ();
+
 /* Copies program space SRC to DEST.  Copies the main executable file,
    and the main symbol file.  Returns DEST.  */
 extern struct program_space *clone_program_space (struct program_space *dest,