From: Steve Chamberlain Date: Fri, 7 Aug 1992 18:22:54 +0000 (+0000) Subject: * xm-go32.h: Define LSEEK_NOT_LINEAR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6492282df033583f56eb2d910719f3274f2ddf2;p=binutils-gdb.git * xm-go32.h: Define LSEEK_NOT_LINEAR * serial.c (find_source_lines): if LSEEK_NOT_LINEAR is defined then work out the lseek positions of newlines by running through the file and `tell'ing. This makes source file listing work on OS's where the relationship between physical position in file and canonical position is indeterminate, eg VMS and DOS. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a77d6b64809..331ae339aec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +Fri Aug 7 11:18:23 1992 Steve Chamberlain (sac@thepub.cygnus.com) + + * xm-go32.h: Define LSEEK_NOT_LINEAR + * serial.c (find_source_lines): if LSEEK_NOT_LINEAR is defined + then work out the lseek positions of newlines by running through + the file and `tell'ing. This makes source file listing work on + OS's where the relationship between physical position in file and + canonical position is indeterminate, eg VMS and DOS. + Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com) * stabsread.c: Ensure that all members of all allocated structures diff --git a/gdb/xm-go32.h b/gdb/xm-go32.h index 06b70025354..808e5a34f1d 100644 --- a/gdb/xm-go32.h +++ b/gdb/xm-go32.h @@ -22,3 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define SYS_SIGLIST_MISSING 1 #define HOST_BYTE_ORDER LITTLE_ENDIAN #include "fopen-bin.h" + +/* Define this lseek(n) != nth byte of file */ +#define LSEEK_NOT_LINEAR +