diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-29 01:19:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-29 01:19:23 +0000 |
commit | ae7f242dd9968d0566298f8456bf8feeaef5a511 (patch) | |
tree | 5fd359196e46a3a16f27a076b588190a50049a9d /gdb/rdi-share | |
parent | 4d500e0c99ae74acc2bf2f45c688ef6551045cd7 (diff) | |
download | gdb-ae7f242dd9968d0566298f8456bf8feeaef5a511.tar.gz |
* 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.h | 5 | ||||
-rw-r--r-- | gdb/rdi-share/hostchan.h | 7 | ||||
-rw-r--r-- | gdb/rdi-share/unixcomm.c | 18 |
3 files changed, 19 insertions, 11 deletions
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h index 3c1565b8f11..53b65681b8a 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 b7a1cab550d..54afea20e04 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 ee11e51161f..7694a31f24b 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 + + /* |