* macrotab.h: Do not include "obstack.h" or "bcache.h".
[deliverable/binutils-gdb.git] / gdb / ptx4-nat.c
index e721787e8b8741ed2403c871ee353e48317278f4..65eef9d351832d45939f56188b4397f851cfd04d 100644 (file)
@@ -1,5 +1,6 @@
 /* Native-dependent code for ptx 4.0
-   Copyright 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1988, 1989, 1991, 1992, 1994, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -21,6 +22,7 @@
 #include "defs.h"
 #include "inferior.h"
 #include "gdbcore.h"
+#include "regcache.h"
 #include <sys/procfs.h>
 #include <sys/ptrace.h>
 #include <sys/param.h>
@@ -94,8 +96,7 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
  */
 /* this could use elf_interpreter() from elfread.c */
 int
-proc_iterate_over_mappings (func)
-     int (*func) (int, CORE_ADDR);
+proc_iterate_over_mappings (int (*func) (int, CORE_ADDR))
 {
   vaddr_t curseg, memptr;
   pt_vseg_t pv;
@@ -152,7 +153,7 @@ proc_iterate_over_mappings (func)
   curseg = 0;
   while (1)
     {
-      rv = ptrace (PT_NEXT_VSEG, inferior_pid, &pv, curseg);
+      rv = ptrace (PT_NEXT_VSEG, PIDGET (inferior_ptid), &pv, curseg);
 #ifdef VERBOSE_DEBUG
       printf ("PT_NEXT_VSEG: rv %d errno %d\n", rv, errno);
 #endif
@@ -186,7 +187,7 @@ proc_iterate_over_mappings (func)
              close (interp_fd);
              return 0;
            }
-         rv = ptrace (PT_RDATA_PAGE, inferior_pid, buf2,
+         rv = ptrace (PT_RDATA_PAGE, PIDGET (inferior_ptid), buf2,
                       memptr);
          if (-1 == rv)
            {
This page took 0.038354 seconds and 4 git commands to generate.