diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-07-04 18:54:57 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-07-04 18:54:57 +0000 |
commit | f897ef47f1c58b2b309e3fa7e48cdbafb060ab00 (patch) | |
tree | 173e9c2763970e2da382c004baf3df6b9e85cc31 /gdb/config | |
parent | 96ac3cb652ab73f122659a0725aff74eb772e50e (diff) | |
download | gdb-f897ef47f1c58b2b309e3fa7e48cdbafb060ab00.zip gdb-f897ef47f1c58b2b309e3fa7e48cdbafb060ab00.tar.gz gdb-f897ef47f1c58b2b309e3fa7e48cdbafb060ab00.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/xm-cygwin32.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |