From 99ef5653ef55756bbe0813a2d8994734c1a365d7 Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Thu, 22 Oct 1992 02:00:07 +0000 Subject: [PATCH] sun4sol2 native stuff --- gdb/.Sanitize | 1 + gdb/ChangeLog | 11 +++++++++++ gdb/Makefile.in | 2 +- gdb/config/sun4sol2.mh | 4 +++- gdb/config/sun4sol2.mt | 2 +- gdb/nm-sysv4.h | 28 ++++++++++++++++++++++++++++ gdb/xm-sysv4.h | 9 --------- 7 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 gdb/nm-sysv4.h diff --git a/gdb/.Sanitize b/gdb/.Sanitize index 0e48784b522..9fb5f252fb2 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -162,6 +162,7 @@ nm-sun2.h nm-sun3.h nm-sun386.h nm-sun4os4.h +nm-sysv4.h nm-trash.h nm-ultra3.h nm-umax.h diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 30215ad68be..12d21f1eb20 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +Wed Oct 21 17:46:07 1992 K. Richard Pixley (rich@sendai.cygnus.com) + + Native support for sun4sol2. + + * xm-sysv4.h (USE_PROC_FS, ATTACH_DETACH): removed to nm-sysv4.h. + * nm-sysv4.h: new file. + * Makefile.in (HFILES): added nm-sysv4.h. + * config/sun4sol2.mh (XDEPFILES): removed procfs.o fork-child.o. + (NAT_FILE, NATDEPFILES): new macros. + * config/sun4sol2.mt (TDEPFILES): removed exec.o and solib.o. + Wed Oct 21 03:51:01 1992 John Gilmore (gnu@cygnus.com) * coredep.c: Include "nm.h" to get REGISTER_U_ADDR. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index ca499f8c0b7..ff8b90bbdff 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -256,7 +256,7 @@ HFILES= breakpoint.h buildsym.h call-cmds.h command.h defs.h \ nm-i386bsd.h nm-i386mach.h nm-i386v.h nm-i386v4.h nm-irix3.h \ nm-irix4.h nm-linux.h nm-m88k.h nm-mips.h nm-news.h nm-rs6000.h \ nm-sun2.h nm-sun3.h nm-sun386.h nm-sun4os4.h nm-trash.h \ - nm-ultra3.h nm-hppab.h nm-hppah.h nm-umax.h + nm-ultra3.h nm-hppab.h nm-hppah.h nm-umax.h nm-sysv4.h REMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar diff --git a/gdb/config/sun4sol2.mh b/gdb/config/sun4sol2.mh index 3eb3e9abf4d..394cd4f254e 100644 --- a/gdb/config/sun4sol2.mh +++ b/gdb/config/sun4sol2.mh @@ -1,6 +1,8 @@ # Host: Sun 4 or Sparcstation, running Solaris 2 -XDEPFILES= procfs.o fork-child.o +XDEPFILES= XM_FILE= xm-sun4sol2.h +NAT_FILE= nm-sysv4.h +NATDEPFILES= corelow.o exec.o solib.o procfs.o fork-child.o SYSV_DEFINE=-DSYSV REGEX=regex.o REGEX1=regex.o diff --git a/gdb/config/sun4sol2.mt b/gdb/config/sun4sol2.mt index 9c42fd50684..99eb7ae0ff2 100644 --- a/gdb/config/sun4sol2.mt +++ b/gdb/config/sun4sol2.mt @@ -1,3 +1,3 @@ # Target: Sun 4 or Sparcstation, running Solaris 2 -TDEPFILES= exec.o sparc-tdep.o sparc-pinsn.o solib.o +TDEPFILES= sparc-tdep.o sparc-pinsn.o TM_FILE= tm-sun4sol2.h diff --git a/gdb/nm-sysv4.h b/gdb/nm-sysv4.h new file mode 100644 index 00000000000..4aff7008910 --- /dev/null +++ b/gdb/nm-sysv4.h @@ -0,0 +1,28 @@ +/* Definitions for running gdb on a host machine running any flavor of SVR4. + Copyright 1991, 1992 Free Software Foundation, Inc. + Written by Fred Fish at Cygnus Support (fnf@cygnus.com). + +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. */ + +/* SVR4 has /proc support, so use it instead of ptrace. */ + +#define USE_PROC_FS + +/* SVR4 machines can easily do attach and detach via /proc (procfs.c) + support */ + +#define ATTACH_DETACH diff --git a/gdb/xm-sysv4.h b/gdb/xm-sysv4.h index f2697a97c6a..c2cc1f66ee2 100644 --- a/gdb/xm-sysv4.h +++ b/gdb/xm-sysv4.h @@ -22,10 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define SVR4_SHARED_LIBS -/* SVR4 has /proc support, so use it instead of ptrace. */ - -#define USE_PROC_FS - /* SVR4 has termio facilities. */ #define HAVE_TERMIO @@ -50,11 +46,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* #define SET_STACK_LIMIT_HUGE */ -/* SVR4 machines can easily do attach and detach via /proc (procfs.c) - support */ - -#define ATTACH_DETACH - /* Use setpgid(0,0) to run inferior in a separate process group */ #define NEED_POSIX_SETPGID -- 2.30.2