From f897ef47f1c58b2b309e3fa7e48cdbafb060ab00 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 4 Jul 1997 18:54:57 +0000 Subject: * source.c (OPEN_MODE, FDOPEN_MODE): Define; value depends upon whether CRLF_SOURCE_FILES is defined. (open_source_file): Use OPEN_MODE with open and openp. (print_source_lines): Use FDOPEN_MODE with fdopen. If CRLF_SOURCE_FILES is defined, ignore \r characters. (forward_search_command): Use FDOPEN_MODE with fdopen. (reverse_search_command): Likewise. * config/i386/xm-cygwin32.h (CRLF_SOURCE_FILES): Define. (LSEEK_NOT_LINEAR): Don't define. --- gdb/config/i386/xm-cygwin32.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/config') diff --git a/gdb/config/i386/xm-cygwin32.h b/gdb/config/i386/xm-cygwin32.h index c20bc13..b722f97 100644 --- a/gdb/config/i386/xm-cygwin32.h +++ b/gdb/config/i386/xm-cygwin32.h @@ -1,5 +1,5 @@ /* Definitions for hosting on WIN32, for GDB. - Copyright 1995, 1996 Free Software Foundation, Inc. + Copyright 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of GDB. @@ -32,5 +32,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ So disable immediate_quit inside request_quit */ #define REQUEST_QUIT -/* Define this lseek(n) != nth byte of file */ -#define LSEEK_NOT_LINEAR +/* Define this if source files use \r\n rather than just \n. */ +#define CRLF_SOURCE_FILES -- cgit v1.1