delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/08/07:06:09

Date: Wed, 8 Jan 1997 13:51:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Laurent DOT CHARLES AT st DOT com
cc: djgpp AT delorie DOT com
Subject: Re: Re: Remote gdb
In-Reply-To: <H000030d03fdec68@MHS>
Message-ID: <Pine.SUN.3.91.970108134345.494G-100000@is>
MIME-Version: 1.0

On Wed, 8 Jan 1997 Laurent DOT CHARLES AT st DOT com wrote:

> By the way, what's the reason why LFN don't work in msdos box under NT? Is there
> anything to do?

No.  DJGPP can only support LFN if the OS supports the LFN API defined by 
Microsoft, and NT doesn't support it.

> And about file access on breakpoints, Eliz, feel free to make your patch
> available...

Here it is:

*** 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
***************
*** 667,672 ****
--- 683,694 ----
        s->fullname = mstrsave (s->objfile->md, s->fullname);
        free (fullname);
      }
+ #ifdef __DJGPP__
+   /* Switch to binary reads so we could say our lseek is linear
+      and get the much faster lseek method in `find_source_lines'.  */
+   if (result >= 0)
+     setmode (result, O_BINARY);
+ #endif
    return result;
  }
  

- Raw text -


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