aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-style.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cli/cli-style.c')
-rw-r--r--gdb/cli/cli-style.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/cli/cli-style.c b/gdb/cli/cli-style.c
index 34592f0..d6829f0 100644
--- a/gdb/cli/cli-style.c
+++ b/gdb/cli/cli-style.c
@@ -453,7 +453,7 @@ no_emojis ()
/* Emoji warning prefix. */
static std::string warning_prefix = "⚠️ ";
-/* Implement 'show warning-prefix'. */
+/* Implement 'show style warning-prefix'. */
static void
show_warning_prefix (struct ui_file *file, int from_tty,
@@ -475,7 +475,7 @@ print_warning_prefix (ui_file *file)
/* Emoji error prefix. */
static std::string error_prefix = "❌️ ";
-/* Implement 'show error-prefix'. */
+/* Implement 'show style error-prefix'. */
static void
show_error_prefix (struct ui_file *file, int from_tty,
@@ -494,9 +494,7 @@ print_error_prefix (ui_file *file)
gdb_puts (error_prefix.c_str (), file);
}
-void _initialize_cli_style ();
-void
-_initialize_cli_style ()
+INIT_GDB_FILE (cli_style)
{
add_setshow_prefix_cmd ("style", no_class,
_("\