From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4484 invoked by alias); 4 Apr 2002 00:51:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4471 invoked from network); 4 Apr 2002 00:51:36 -0000 Received: from unknown (HELO ?217.215.34.175?) (217.215.34.175) by sources.redhat.com with SMTP; 4 Apr 2002 00:51:36 -0000 Received: (qmail 18939 invoked by uid 1000); 4 Apr 2002 00:52:48 -0000 To: gdb-patches@sources.redhat.com Subject: RDI on OpenBSD From: dne@mayonnaise.net (Daniel =?iso-8859-1?q?N=E9ri?=) Date: Wed, 03 Apr 2002 16:51:00 -0000 Message-ID: <877knoffof.fsf@nowhere.mayonnaise.net> User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-unknown-openbsd3.0) Organization: A safe european home MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-04/txt/msg00086.txt.bz2 --=-=-= Content-length: 261 Hello, Building an arm-elf cross-debugging gdb 5.1.1 on OpenBSD breaks because of the "unix vs. __unix__ issue". This, I note, has been discussed before, but the fix ended up being NetBSD specific. Attached are my changes. Best wishes, --Daniel --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment Content-Transfer-Encoding: 8bit Content-Description: ChangeLog Content-length: 207 2002-04-04 Daniel Néri * hostchan.h (__unix): Define when __unix__ (e.g. works on OpenBSD too). * unixcomm.c: Provide default serial/parallel device names for OpenBSD and NetBSD. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Description: RDI patch Content-length: 1076 diff -u -r1.1 gdb/rdi-share/hostchan.h --- gdb/rdi-share/hostchan.h 2002/04/03 01:32:26 1.1 +++ gdb/rdi-share/hostchan.h 2002/04/04 00:04:51 @@ -24,7 +24,7 @@ #endif /* A temporary sop to older compilers */ -#if defined (__NetBSD__) || defined (unix) +#if defined (__unix__) || defined (unix) # ifndef __unix /* (good for long-term portability?) */ # define __unix 1 # endif diff -u -r1.1 gdb/rdi-share/unixcomm.c --- gdb/rdi-share/unixcomm.c 2002/04/03 21:59:45 1.1 +++ gdb/rdi-share/unixcomm.c 2002/04/04 00:02:39 @@ -94,6 +94,22 @@ #define SERPORT2 "/dev/ttyS1" #define PARPORT1 "/dev/par0" #define PARPORT2 "/dev/par1" +#endif + +#ifdef __OpenBSD__ +#define SERIAL_PREFIX "/dev/cua" +#define SERPORT1 "/dev/cua00" +#define SERPORT2 "/dev/cua01" +#define PARPORT1 "/dev/lpt0" +#define PARPORT2 "/dev/lpt1" +#endif + +#ifdef __NetBSD__ +#define SERIAL_PREFIX "/dev/dty" +#define SERPORT1 "/dev/dty00" +#define SERPORT2 "/dev/dty01" +#define PARPORT1 "/dev/lpt0" +#define PARPORT2 "/dev/lpt1" #endif --=-=-= Content-length: 36 -- Daniel Neri dne@mayonnaise.net --=-=-=--