aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-go32.h
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 /gdb/xm-go32.h
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.
Diffstat (limited to 'gdb/xm-go32.h')
-rw-r--r--gdb/xm-go32.h4
1 files changed, 4 insertions, 0 deletions
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
+