]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Style an error message in stack.c
authorTom Tromey <tom@tromey.com>
Thu, 15 Jan 2026 20:25:20 +0000 (13:25 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 23 Mar 2026 18:51:58 +0000 (12:51 -0600)
This applies some CLI styling to an error message in stack.c.

gdb/stack.c

index 3ab0090ea8a02634dcd6a1f51105285f9afc1084..889efe62e0df1c64d32d89173018e26d3453bcb8 100644 (file)
@@ -1920,7 +1920,8 @@ public:
       error (_("Missing function name argument"));
     frame_info_ptr fid = find_frame_for_function (arg);
     if (fid == NULL)
-      error (_("No frame for function \"%s\"."), arg);
+      error (_("No frame for function \"%ps\"."),
+            styled_string (function_name_style.style (), arg));
     FPTR (fid, false);
   }