aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r--gdb/cli/cli-decode.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 163012a..2951194 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -1869,26 +1869,33 @@ help_list (struct cmd_list_element *list, const char *cmdtype,
if (theclass == all_classes)
{
gdb_printf (stream, "\n\
-Type \"help%s\" followed by a class name for a list of commands in ",
- cmdtype1);
+Type \"%p[help%s%p]\" followed by a class name for a list of commands in ",
+ command_style.style ().ptr (),
+ cmdtype1,
+ nullptr);
stream->wrap_here (0);
gdb_printf (stream, "that class.");
gdb_printf (stream, "\n\
-Type \"help all\" for the list of all commands.");
+Type \"%ps\" for the list of all commands.",
+ styled_string (command_style.style (), "help all"));
}
- gdb_printf (stream, "\nType \"help%s\" followed by %scommand name ",
- cmdtype1, cmdtype2);
+ gdb_printf (stream, "\nType \"%p[help%s%p]\" followed by %scommand name ",
+ command_style.style ().ptr (), cmdtype1, nullptr,
+ cmdtype2);
stream->wrap_here (0);
gdb_puts ("for ", stream);
stream->wrap_here (0);
gdb_puts ("full ", stream);
stream->wrap_here (0);
gdb_puts ("documentation.\n", stream);
- gdb_puts ("Type \"apropos word\" to search "
- "for commands related to \"word\".\n", stream);
- gdb_puts ("Type \"apropos -v word\" for full documentation", stream);
+ gdb_printf (stream,
+ "Type \"%ps\" to search "
+ "for commands related to \"word\".\n",
+ styled_string (command_style.style (), "apropos word"));
+ gdb_printf (stream, "Type \"%ps\" for full documentation",
+ styled_string (command_style.style (), "apropos -v word"));
stream->wrap_here (0);
gdb_puts (" of commands related to \"word\".\n", stream);
gdb_puts ("Command name abbreviations are allowed if unambiguous.\n",