sun4sol2 native stuff

This commit is contained in:
K. Richard Pixley 1992-10-22 02:00:07 +00:00
parent 0a2a48a217
commit 99ef5653ef
7 changed files with 45 additions and 12 deletions

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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

28
gdb/nm-sysv4.h Normal file
View File

@ -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

View File

@ -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