[binutils-gdb] Style an error message in stack.c

Tom Tromey via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9552ba240138d2519906bc5c48ccdc8a6488e6ce

commit 9552ba240138d2519906bc5c48ccdc8a6488e6ce
Author: Tom Tromey <[email protected]>
Date:   Thu Jan 15 13:25:20 2026 -0700

    Style an error message in stack.c
    
    This applies some CLI styling to an error message in stack.c.

Diff:
---
 gdb/stack.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/stack.c b/gdb/stack.c
index 3ab0090ea8a..889efe62e0d 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -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);
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.