[3/4] gdb: move style_set_list/style_show_list declarations to cli/cli-style.h

Message ID 20240423192327.2750109-4-simon.marchi@polymtl.ca
State New
Headers
Series Remove gdbcmd.h |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed

Commit Message

Simon Marchi April 23, 2024, 7:22 p.m. UTC
  They are defined in cli/cli-style.c.

Change-Id: Ic478a3985ff0fd773bd7ba85bb144c6e914d0be6
---
 gdb/cli/cli-style.h | 4 ++++
 gdb/gdbcmd.h        | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
  

Patch

diff --git a/gdb/cli/cli-style.h b/gdb/cli/cli-style.h
index 31d40ed65ca4..1663b4ee53c9 100644
--- a/gdb/cli/cli-style.h
+++ b/gdb/cli/cli-style.h
@@ -96,6 +96,10 @@  class cli_style_option
 				 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;
 
diff --git a/gdb/gdbcmd.h b/gdb/gdbcmd.h
index 92fa9a7bf14a..a2e256665b53 100644
--- a/gdb/gdbcmd.h
+++ b/gdb/gdbcmd.h
@@ -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) */