From 0c101d4920e41f12945049221da74cad1146a850 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Tue, 6 Apr 1993 17:40:55 +0000 Subject: [PATCH] * configure.in: Sparclite uses sparc config dir. Also has it's own tm- & .mt files now. Also add sparclite to configdirs. * go32-xdep.c: Dummy routines for sigsetmask & strlwr. * config/i386/go32.mh: Nullify def of TERMCAP. * config/i386/xm-go32.h: Get rid of redef of EIO. * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite specific configs. Very similar to sun4os4, but without solib. * sparclite/{Makefile.in configure.in}: First cut at making this dir configgable. --- gdb/ChangeLog | 12 ++++++++++++ gdb/config/i386/xm-go32.h | 2 -- gdb/config/sparc/sparclite.mt | 3 +++ gdb/config/sparc/tm-sparclite.h | 20 ++++++++++++++++++++ gdb/configure.in | 9 ++++++++- gdb/go32-xdep.c | 8 ++++++++ 6 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 gdb/config/sparc/sparclite.mt create mode 100644 gdb/config/sparc/tm-sparclite.h diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3cdaedd1ce0..4533c5db8eb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com) + + * configure.in: Sparclite uses sparc config dir. Also has it's + own tm- & .mt files now. Also add sparclite to configdirs. + * go32-xdep.c: Dummy routines for sigsetmask & strlwr. + * config/i386/go32.mh: Nullify def of TERMCAP. + * config/i386/xm-go32.h: Get rid of redef of EIO. + * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite + specific configs. Very similar to sun4os4, but without solib. + * sparclite/{Makefile.in configure.in}: First cut at making this + dir configgable. + Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com) * ser-go32.c: First cut at adapting to new serial interface. diff --git a/gdb/config/i386/xm-go32.h b/gdb/config/i386/xm-go32.h index 91f5d3553ab..326277a7ce0 100644 --- a/gdb/config/i386/xm-go32.h +++ b/gdb/config/i386/xm-go32.h @@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#undef EIO -#define EIO 0 #define SYS_SIGLIST_MISSING 1 #define HOST_BYTE_ORDER LITTLE_ENDIAN #include "fopen-bin.h" diff --git a/gdb/config/sparc/sparclite.mt b/gdb/config/sparc/sparclite.mt new file mode 100644 index 00000000000..351b331440c --- /dev/null +++ b/gdb/config/sparc/sparclite.mt @@ -0,0 +1,3 @@ +# Target: Fujitsu SPARClite processor +TDEPFILES= exec.o sparc-tdep.o sparc-pinsn.o +TM_FILE= tm-sparclite.h diff --git a/gdb/config/sparc/tm-sparclite.h b/gdb/config/sparc/tm-sparclite.h new file mode 100644 index 00000000000..f1b4eac7bb4 --- /dev/null +++ b/gdb/config/sparc/tm-sparclite.h @@ -0,0 +1,20 @@ +/* Macro definitions for GDB for a Fujitsu SPARClite. + Copyright 1993 Free Software Foundation, Inc. + +This file is part of GDB. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include "sparc/tm-sparc.h" diff --git a/gdb/configure.in b/gdb/configure.in index 5a1cc698c6e..d4b9b62d96d 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -3,6 +3,12 @@ srcname="GDB" srctrigger=main.c gdb_serial_driver=ser-unix.c +echo ${target} + +if [ "${target_cpu}" = "sparclite" ] ; then + configdirs = "$configdirs sparclite" +fi + # per-host: # Map host cpu into the config cpu subdirectory name. @@ -126,6 +132,7 @@ m68*) gdb_target_cpu=m68k ;; np1) gdb_target_cpu=gould ;; pn) gdb_target_cpu=gould ;; pyramid) gdb_target_cpu=pyr ;; +sparc*) gdb_target_cpu=sparc ;; *) gdb_target_cpu=$target_cpu ;; esac @@ -233,7 +240,7 @@ sparc-*-solaris2*) gdb_target=sun4sol2 ;; sparc-*-sunos4*) gdb_target=sun4os4 ;; sparc-*-vxworks*) gdb_target=sparc-em ;; sparc-*-*) gdb_target=sun4os4 ;; -sparclite*-*-*) gdb_target=sun4os4 ;; +sparclite*-*-*) gdb_target=sparclite ;; tahoe-*-*) gdb_target=tahoe ;; vax-*-*) gdb_target=vax ;; diff --git a/gdb/go32-xdep.c b/gdb/go32-xdep.c index 9814c9cef87..138c6a76df4 100644 --- a/gdb/go32-xdep.c +++ b/gdb/go32-xdep.c @@ -27,3 +27,11 @@ static void uerror(char *s) re_comp(){uerror("attempt to call re_comp()");} re_exec(){uerror("attempt to call re_exec()");} + +sigsetmask() +{ +} + +strlwr() +{ +} -- 2.30.2