aboutsummaryrefslogtreecommitdiff
path: root/gdb/nm-hp300bsd.h
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-02-19 01:12:23 +0000
committerK. Richard Pixley <rich@cygnus>1993-02-19 01:12:23 +0000
commitadd04f8b2ebe2caa25452eaa39f3abab53ed7628 (patch)
tree8e269d26dc1bdee2a171a602e81383863d55c45c /gdb/nm-hp300bsd.h
parent961ccde634c48fe95887cbfc5e3d15debc4d4818 (diff)
downloadgdb-add04f8b2ebe2caa25452eaa39f3abab53ed7628.zip
gdb-add04f8b2ebe2caa25452eaa39f3abab53ed7628.tar.gz
gdb-add04f8b2ebe2caa25452eaa39f3abab53ed7628.tar.bz2
* nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not caddr_t.
Diffstat (limited to 'gdb/nm-hp300bsd.h')
-rw-r--r--gdb/nm-hp300bsd.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/gdb/nm-hp300bsd.h b/gdb/nm-hp300bsd.h
index 71f7b06..6a8cda7 100644
--- a/gdb/nm-hp300bsd.h
+++ b/gdb/nm-hp300bsd.h
@@ -41,12 +41,23 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
addr = (int) &((struct user *)0)->u_pcb.pcb_fpregs.fpf_fpiar; \
}
-/* We can attach to processes using ptrace. */
+/* This is a hack. This is only a hack. Were this a common source file,
+ rather than a config file specific to BSD on HP 68k's, you would have
+ been instructed to clean this up. As it is, clean it up if FSF's
+ HP's-running-ancient-BSD ever go away. */
+
+#include <errno.h>
+#ifdef EPROCUNAVAIL
+ /* BSD 4.4 alpha or better */
+
+ /* We can attach to processes using ptrace. */
#define ATTACH_DETACH
#define PTRACE_ATTACH 10
#define PTRACE_DETACH 11
-/* The third argument of ptrace is declared as this type. */
+ /* The third argument of ptrace is declared as this type. */
#define PTRACE_ARG3_TYPE caddr_t
+#endif
+