From: Daniel Jacobowitz Date: Sat, 28 May 2005 16:48:58 +0000 (+0000) Subject: * cp-name-parser.y (parse_escape): Revert previous change. Return X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03f4d4c7dc56d644e94e5059d882a7f936be8874;p=binutils-gdb.git * cp-name-parser.y (parse_escape): Revert previous change. Return the input character by default. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cd9e18a29e1..0b6102f7564 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-05-28 Daniel Jacobowitz + + * cp-name-parser.y (parse_escape): Revert previous change. Return + the input character by default. + 2005-05-28 Daniel Jacobowitz * dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte. diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 90f0a711d96..0cd725a1539 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -1440,7 +1440,7 @@ c_parse_backslash (int host_char, int *target_char) static int parse_escape (const char **string_ptr) { - int target_char = 0; + int target_char; int c = *(*string_ptr)++; if (c_parse_backslash (c, &target_char)) return target_char; @@ -1498,7 +1498,7 @@ parse_escape (const char **string_ptr) return i; } default: - return target_char; + return c; } }