www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/13/13:51:59

Date: Sun, 13 Jul 1997 20:51:25 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Pierre Muller <muller AT janus DOT u-strasbg DOT fr>
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: <Pine.SUN.3.91.970713205058.28618P-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019