aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 618dc86..e586efd 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -932,11 +932,15 @@ 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)