From 18a85a791ba927f2a8777b9117f924ae3e5db89c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 10 Feb 1993 23:38:11 +0000 Subject: [PATCH] Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com) * Based on patch from Martin Walker : * nm-i386sco4.h: New file. Like nm-i386sco.h, but define ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH. * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h. --- gdb/.Sanitize | 1 + gdb/config/i386sco4.mh | 2 +- gdb/nm-i386sco4.h | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 gdb/nm-i386sco4.h diff --git a/gdb/.Sanitize b/gdb/.Sanitize index 34b0eb0..16f2311 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -168,6 +168,7 @@ nm-hppah.h nm-i386bsd.h nm-i386mach.h nm-i386sco.h +nm-i386sco4.h nm-i386v.h nm-i386v4.h nm-irix3.h diff --git a/gdb/config/i386sco4.mh b/gdb/config/i386sco4.mh index d84fda6..e2754ae 100644 --- a/gdb/config/i386sco4.mh +++ b/gdb/config/i386sco4.mh @@ -1,7 +1,7 @@ # Host: Intel 386 running SCO Unix 3.2v4 XDEPFILES= i387-tdep.o XM_FILE= xm-i386sco.h -NAT_FILE= nm-i386sco.h +NAT_FILE= nm-i386sco4.h NATDEPFILES= infptrace.o inftarg.o fork-child.o coredep.o corelow.o i386v-nat.o XM_CLIBS= -lPW SYSV_DEFINE=-DSYSV diff --git a/gdb/nm-i386sco4.h b/gdb/nm-i386sco4.h new file mode 100644 index 0000000..3637a05 --- /dev/null +++ b/gdb/nm-i386sco4.h @@ -0,0 +1,32 @@ +/* Native support for SCO 3.2v4. + Copyright 1993 Free Software Foundation, Inc. + Contributed by Cygnus Support. By Ian Lance Taylor + based on work by Martin Walker . + +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. */ + +/* SCO 3.2v4 is actually just like SCO 3.2v2, except that it + additionally supports attaching to a process. */ + +#include "nm-i386sco.h" + +#define ATTACH_DETACH + +/* SCO, in its wisdom, does not provide . infptrace.c + does not have defaults for these values. */ +#define PTRACE_ATTACH 10 +#define PTRACE_DETACH 11 -- 2.7.4