]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: move style_set_list/style_show_list declarations to cli/cli-style.h
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 23 Apr 2024 19:22:43 +0000 (15:22 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 25 Apr 2024 16:58:58 +0000 (12:58 -0400)
They are defined in cli/cli-style.c.

Change-Id: Ic478a3985ff0fd773bd7ba85bb144c6e914d0be6
Approved-By: Tom Tromey <tom@tromey.com>
gdb/cli/cli-style.h
gdb/gdbcmd.h

index 31d40ed65ca4f15f0188399371410905db40bccb..1663b4ee53c9719768c1269ba73e123a1ce31912 100644 (file)
@@ -96,6 +96,10 @@ private:
                                 const char *value);
 };
 
+/* Chains containing all defined "set/show style" subcommands.  */
+extern struct cmd_list_element *style_set_list;
+extern struct cmd_list_element *style_show_list;
+
 /* The file name style.  */
 extern cli_style_option file_name_style;
 
index 92fa9a7bf14aaedaf9f43ab332079f7bbfb04bc7..a2e256665b535963291bfd2b5e15d5f0fc74d526 100644 (file)
@@ -29,8 +29,4 @@
 #include "cli/cli-script.h"
 #include "cli/cli-cmds.h"
 
-/* Chains containing all defined "set/show style" subcommands.  */
-extern struct cmd_list_element *style_set_list;
-extern struct cmd_list_element *style_show_list;
-
 #endif /* !defined (GDBCMD_H) */