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-Tag: msnyder-tracepoint-checkpoint-branchpoint~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03f4d4c7dc56d644e94e5059d882a7f936be8874;p=external%2Fbinutils.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 cd9e18a..0b6102f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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. * i386-linux-nat.c (fetch_register, store_register, supply_gregset) (fill_gregset): Likewise. diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 90f0a71..0cd725a 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; } }