This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] utils.c, parse_escape, use \\% not \% in print string.


committed.

2011-03-02  Michael Snyder  <msnyder@vmware.com>

	* utils.c (parse_escape): Escape the escape char.

Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.246
diff -u -p -u -p -r1.246 utils.c
--- utils.c	28 Feb 2011 22:20:05 -0000	1.246
+++ utils.c	2 Mar 2011 22:10:24 -0000
@@ -2001,10 +2001,9 @@ parse_escape (struct gdbarch *gdbarch, c
     }
 
   if (!host_char_to_target (gdbarch, c, &target_char))
-    error
-      ("The escape sequence `\%c' is equivalent to plain `%c', which"
-       " has no equivalent\n" "in the `%s' character set.", c, c,
-       target_charset (gdbarch));
+    error ("The escape sequence `\\%c' is equivalent to plain `%c',"
+	   " which has no equivalent\nin the `%s' character set.",
+	   c, c, target_charset (gdbarch));
   return target_char;
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]