* top.c (gdb_readline): Always accept "rn" as a line-ending.

* event-top.c (gdb_readline2): Likewise.
This commit is contained in:
Mark Kettenis
2004-10-14 12:44:24 +00:00
parent 52bd14014e
commit ad4c72d283
3 changed files with 5 additions and 9 deletions

View File

@@ -932,15 +932,11 @@ gdb_readline (char *prompt_arg)
}
if (c == '\n')
#ifndef CRLF_SOURCE_FILES
break;
#else
{
if (input_index > 0 && result[input_index - 1] == '\r')
input_index--;
break;
}
#endif
result[input_index++] = c;
while (input_index >= result_size)