/* Machine-dependent code which would otherwise be in infptrace.c,
for GDB, the GNU debugger. This code is for the HP PA-RISC cpu.
- Copyright (C) 1986, 1987, 1989, 1990, 1991 Free Software Foundation, Inc.
+ Copyright 1986, 1987, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
-/* Low level Unix child interface to ptrace, for GDB when running under Unix.
- Copyright (C) 1988, 1989, 1990, 1991 Free Software Foundation, Inc.
-
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-#include <stdio.h>
#include "defs.h"
#include "frame.h"
#include "inferior.h"
for (i = 0; i < count; i++, addr += sizeof (int))
{
+#if 0
+/* The HP-UX kernel crashes if you use PT_WDUSER to write into the text
+ segment. FIXME -- does it work to write into the data segment using
+ WIUSER, or do these idiots really expect us to figure out which segment
+ the address is in, so we can use a separate system call for it??! */
errno = 0;
ptrace (PT_WDUSER, inferior_pid, (PTRACE_ARG3_TYPE) addr,
buffer[i], 0);
if (errno)
+#endif
{
/* Using the appropriate one (I or D) is necessary for
Gould NP1, at least. */