aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2026-03-28 17:44:54 -0600
committerTom Tromey <tom@tromey.com>2026-04-08 19:12:44 -0600
commit921e71966a05fc65ebe412cce14e0139ac87b378 (patch)
tree890e09abee9f65fb7abeaf6edafbdef5661d7fc8 /gdb/python
parent576eedbb4cd794a740b5930a20f35f43c2964872 (diff)
downloadbinutils-921e71966a05fc65ebe412cce14e0139ac87b378.tar.gz
binutils-921e71966a05fc65ebe412cce14e0139ac87b378.tar.bz2
binutils-921e71966a05fc65ebe412cce14e0139ac87b378.zip
Add command styling to error messages
This changes a number of error messages in gdb to use command_style. In some places I've added double quotes around the command name for consistency with other messages. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 4182c699cb5..502fe682b2c 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -452,7 +452,8 @@ gdbpy_eval_from_control_command (const struct extension_language_defn *extlang,
struct command_line *cmd)
{
if (cmd->body_list_1 != nullptr)
- error (_("Invalid \"python\" block structure."));
+ error (_("Invalid \"%ps\" block structure."),
+ styled_string (command_style.style (), "python"));
gdbpy_enter enter_py;