aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-29 01:19:23 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-29 01:19:23 +0000
commita80163397d548b79620836b33babd525fdbe28c6 (patch)
tree6bfed4d0b6cfa13f4c529361f64f967a19da2834 /gdb/rdi-share
parent5e91c3b4311049f4ef00ded805872c282810c5c4 (diff)
downloadgdb-a80163397d548b79620836b33babd525fdbe28c6.zip
gdb-a80163397d548b79620836b33babd525fdbe28c6.tar.gz
gdb-a80163397d548b79620836b33babd525fdbe28c6.tar.bz2
* rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
* rdi-share/hostchan.h (__unix): Hack, provide a default value. * rdi-share/host.h (__unix): Hack, define when __NetBSD__. * TODO: Update. * MAINTAINERS: Update. arm-elf builds.
Diffstat (limited to 'gdb/rdi-share')
-rw-r--r--gdb/rdi-share/host.h5
-rw-r--r--gdb/rdi-share/hostchan.h7
-rw-r--r--gdb/rdi-share/unixcomm.c18
3 files changed, 19 insertions, 11 deletions
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h
index 3c1565b..53b6568 100644
--- a/gdb/rdi-share/host.h
+++ b/gdb/rdi-share/host.h
@@ -37,13 +37,14 @@
#endif
#endif
-#ifdef unix /* A temporary sop to older compilers */
+/* A temporary sop to older compilers */
+#if defined (__NetBSD__) || defined (unix)
# ifndef __unix /* (good for long-term portability?) */
# define __unix 1
# endif
#endif
-#ifdef __unix
+#if defined(__unix)
/* Generic unix -- hopefully a split into other variants will not be */
/* needed. However, beware the 'bsd' test above and safe_toupper etc. */
/* which cope with backwards (pre-posix/X/open) unix compatility. */
diff --git a/gdb/rdi-share/hostchan.h b/gdb/rdi-share/hostchan.h
index b9acb77..3e6d26f 100644
--- a/gdb/rdi-share/hostchan.h
+++ b/gdb/rdi-share/hostchan.h
@@ -23,6 +23,13 @@
#endif
#endif
+/* A temporary sop to older compilers */
+#if defined (__NetBSD__) || defined (unix)
+# ifndef __unix /* (good for long-term portability?) */
+# define __unix 1
+# endif
+#endif
+
/* struct timeval */
#if defined(__unix) || defined(__CYGWIN32__)
# include <sys/time.h>
diff --git a/gdb/rdi-share/unixcomm.c b/gdb/rdi-share/unixcomm.c
index 6891c0d..0abd411 100644
--- a/gdb/rdi-share/unixcomm.c
+++ b/gdb/rdi-share/unixcomm.c
@@ -96,15 +96,6 @@
#define PARPORT2 "/dev/par1"
#endif
-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (bsdi)
-#define SERIAL_PREFIX "/dev/cuaa"
-#define SERPORT1 "/dev/cuaa0"
-#define SERPORT2 "/dev/cuaa1"
-#define PARPORT1 "/dev/lpt0"
-#define PARPORT2 "/dev/lpt1"
-#endif
-
-
#if defined(_WIN32) || defined (__CYGWIN32__)
#define SERIAL_PREFIX "com"
#define SERPORT1 "com1"
@@ -113,6 +104,15 @@
#define PARPORT2 "lpt2"
#endif
+#if !defined (SERIAL_PREFIX)
+#define SERIAL_PREFIX "/dev/cuaa"
+#define SERPORT1 "/dev/cuaa0"
+#define SERPORT2 "/dev/cuaa1"
+#define PARPORT1 "/dev/lpt0"
+#define PARPORT2 "/dev/lpt1"
+#endif
+
+
/*