This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] utils.c, parse_escape, use \\% not \% in print string.
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 02 Mar 2011 14:13:03 -0800
- Subject: [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;
}