From 905b671bb7f990dff3f2f01d71886e60a54d11f9 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 2 Mar 2011 22:11:27 +0000 Subject: [PATCH] 2011-03-02 Michael Snyder * utils.c (parse_escape): Escape the escape char. --- gdb/ChangeLog | 2 ++ gdb/utils.c | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d3534bf1290..f03926faaad 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-02 Michael Snyder + * utils.c (parse_escape): Escape the escape char. + * python/py-inferior.c (build_inferior_list): Error out if PyList_Append fails. (gdbpy_inferiors): Error out if build_inferior_list fails. diff --git a/gdb/utils.c b/gdb/utils.c index 46685155530..46b4612baa9 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2001,10 +2001,9 @@ parse_escape (struct gdbarch *gdbarch, char **string_ptr) } 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; } -- 2.30.2