* procfs.c (proc_wait): Call print_sys_errmsg() if we get an
[deliverable/binutils-gdb.git] / gdb / hppahpux-xdep.c
index cd32c4e1cae6a21f6ebb9b9ce6a6f564753e8bd5..0e21a14bcdd8a8f210608bb5ee817e4839e90264 100644 (file)
@@ -1,13 +1,10 @@
 /* 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
@@ -24,7 +21,6 @@ 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.  */
 
-#include <stdio.h>
 #include "defs.h"
 #include "frame.h"
 #include "inferior.h"
@@ -386,10 +382,16 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
 
       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.  */
This page took 0.023428 seconds and 4 git commands to generate.