From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19541 invoked by alias); 14 Oct 2004 12:44:41 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19472 invoked from network); 14 Oct 2004 12:44:38 -0000 Received: from unknown (HELO walton.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 14 Oct 2004 12:44:38 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by walton.sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id i9ECiXGM008340 for ; Thu, 14 Oct 2004 14:44:33 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id i9ECiXGL008865 for ; Thu, 14 Oct 2004 14:44:33 +0200 (CEST) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id i9ECiXMQ008862; Thu, 14 Oct 2004 14:44:33 +0200 (CEST) Date: Thu, 14 Oct 2004 12:44:00 -0000 Message-Id: <200410141244.i9ECiXMQ008862@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [COMMIT] Accept "\r\n" line-endings on all hosts X-SW-Source: 2004-10/txt/msg00245.txt.bz2 In the discussion about elimination of the Cygwin and DJGPP xm.h files we seemed to have reached agreement on this. Actually this is a real improvement, since it will allow you to execute scripts copied from a system using the MS-DOS convention without converting them. Tested on i386-unknown-freebsd4.7. Mark Index: ChangeLog from Mark Kettenis * top.c (gdb_readline): Always accept "\r\n" as a line-ending. * event-top.c (gdb_readline2): Likewise. Index: top.c =================================================================== RCS file: /cvs/src/src/gdb/top.c,v retrieving revision 1.93 diff -u -p -r1.93 top.c --- top.c 13 Sep 2004 18:26:30 -0000 1.93 +++ top.c 14 Oct 2004 12:30:25 -0000 @@ -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) Index: event-top.c =================================================================== RCS file: /cvs/src/src/gdb/event-top.c,v retrieving revision 1.34 diff -u -p -r1.34 event-top.c --- event-top.c 13 Sep 2004 18:26:28 -0000 1.34 +++ event-top.c 14 Oct 2004 12:30:27 -0000 @@ -855,15 +855,11 @@ gdb_readline2 (gdb_client_data client_da } 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)