Date: Sun, 13 Jul 1997 20:51:25 +0300 (IDT) From: Eli Zaretskii To: Pierre Muller cc: djgpp AT delorie DOT com Subject: Re: GDB patch for source file not found In-Reply-To: <5ptnmi$6mr$1@arcturus.ciril.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 8 Jul 1997, Pierre Muller wrote: > the FAQ says that there is a GDB patch in the archive > to get fast source read access, > > I made a research on the DJGPP mail archive and did not find > anything. Here's the patch you need: *** gdb/config/i386/xm-go32.h~0 Wed Aug 2 10:28:36 1995 --- gdb/config/i386/xm-go32.h Thu Nov 21 11:28:26 1996 *************** *** 21,27 **** #include "fopen-bin.h" /* Define this lseek(n) != nth byte of file */ ! #define LSEEK_NOT_LINEAR #define CANT_FORK --- 21,27 ---- #include "fopen-bin.h" /* Define this lseek(n) != nth byte of file */ ! /* #define LSEEK_NOT_LINEAR */ /* not any more! */ #define CANT_FORK *** gdb/source.c~0 Fri Oct 27 05:54:30 1995 --- gdb/source.c Thu Nov 21 11:26:28 1996 *************** *** 493,499 **** if (!path) path = "."; ! #ifdef WIN32 mode |= O_BINARY; #endif --- 509,516 ---- if (!path) path = "."; ! #if defined (WIN32) || defined (__MSDOS__) ! /* So that we could say our lseek is linear. */ mode |= O_BINARY; #endif