aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-08-07 18:22:54 +0000
committerSteve Chamberlain <sac@cygnus>1992-08-07 18:22:54 +0000
commitf6492282df033583f56eb2d910719f3274f2ddf2 (patch)
tree38375fd37374f92e77a4032f8c93460d3efa274c
parent4b91c519fd4a0d502dc6697fb31399162cf39f32 (diff)
downloadgdb-f6492282df033583f56eb2d910719f3274f2ddf2.zip
gdb-f6492282df033583f56eb2d910719f3274f2ddf2.tar.gz
gdb-f6492282df033583f56eb2d910719f3274f2ddf2.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/xm-go32.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a77d6b6..331ae33 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 06b7002..808e5a3 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
+