Introduce "command" styling

This adds a new "command" style that is used when styling the name of
a gdb command.

Note that not every instance of a command name that is output by gdb
is changed here.  There is currently no way to style error() strings,
and there is no way to mark up command help strings.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31747
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Reviewed-By: Keith Seitz <keiths@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
Tom Tromey
2024-05-18 11:35:32 -06:00
parent 62e4d4d3ad
commit 9e69a2e127
22 changed files with 143 additions and 65 deletions

View File

@@ -9377,7 +9377,8 @@ create_breakpoint (struct gdbarch *gdbarch,
if (canonical.lsals.size () > 1)
{
warning (_("Multiple breakpoints were set.\nUse the "
"\"delete\" command to delete unwanted breakpoints."));
"\"%ps\" command to delete unwanted breakpoints."),
styled_string (command_style.style (), "delete"));
prev_breakpoint_count = prev_bkpt_count;
}