- file_name_style.add_setshow_commands ("filename", no_class,
- _("\
-Filename display styling\n\
-Configure filename colors and display intensity."),
- "style filename",
- &style_set_list,
- &style_show_list);
- function_name_style.add_setshow_commands ("function", no_class,
- _("\
-Function name display styling\n\
-Configure function name colors and display intensity"),
- "style function",
- &style_set_list,
- &style_show_list);
- variable_name_style.add_setshow_commands ("variable", no_class,
- "style variable",
- _("\
-Variable name display styling\n\
-Configure variable name colors and display intensity"),
- &style_set_list,
- &style_show_list);
+#define STYLE_ADD_SETSHOW_COMMANDS(STYLE, PREFIX_DOC, SKIP) \
+ STYLE.add_setshow_commands (no_class, PREFIX_DOC, \
+ &style_set_list, \
+ [] (const char *args, int from_tty) \
+ { \
+ help_list \
+ (STYLE.set_list (), \
+ set_style_name (STYLE.name ()).c_str (), \
+ all_commands, \
+ gdb_stdout); \
+ }, \
+ &style_show_list, \
+ [] (const char *args, int from_tty) \
+ { \
+ cmd_show_list \
+ (STYLE.show_list (), \
+ from_tty, \
+ ""); \
+ }, SKIP)
+
+ STYLE_ADD_SETSHOW_COMMANDS (file_name_style,
+ _("\
+Filename display styling.\n\
+Configure filename colors and display intensity."), false);
+
+ STYLE_ADD_SETSHOW_COMMANDS (function_name_style,
+ _("\
+Function name display styling.\n\
+Configure function name colors and display intensity"), false);
+
+ STYLE_ADD_SETSHOW_COMMANDS (variable_name_style,
+ _("\
+Variable name display styling.\n\
+Configure variable name colors and display intensity"), false);
+
+ STYLE_ADD_SETSHOW_COMMANDS (address_style,
+ _("\
+Address display styling.\n\
+Configure address colors and display intensity"), false);
+
+ STYLE_ADD_SETSHOW_COMMANDS (title_style,
+ _("\
+Title display styling.\n\
+Configure title colors and display intensity\n\
+Some commands (such as \"apropos -v REGEXP\") use the title style to improve\n\
+readability."), false);
+
+ STYLE_ADD_SETSHOW_COMMANDS (highlight_style,
+ _("\
+Highlight display styling.\n\
+Configure highlight colors and display intensity\n\
+Some commands use the highlight style to draw the attention to a part\n\
+of their output."), false);
+
+ STYLE_ADD_SETSHOW_COMMANDS (metadata_style,
+ _("\
+Metadata display styling.\n\
+Configure metadata colors and display intensity\n\
+The \"metadata\" style is used when GDB displays information about\n\
+your data, for example \"<unavailable>\""), false);
+
+ STYLE_ADD_SETSHOW_COMMANDS (tui_border_style,
+ _("\
+TUI border display styling.\n\
+Configure TUI border colors\n\
+The \"tui-border\" style is used when GDB displays the border of a\n\
+TUI window that does not have the focus."), true);
+
+ STYLE_ADD_SETSHOW_COMMANDS (tui_active_border_style,
+ _("\
+TUI active border display styling.\n\
+Configure TUI active border colors\n\
+The \"tui-active-border\" style is used when GDB displays the border of a\n\
+TUI window that does have the focus."), true);