Mail Archives: djgpp/1997/07/13/13:51:59
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
- Raw text -