| Index: gdb/hppanbsd-nat.c
|
| diff --git a/gdb/hppanbsd-nat.c b/gdb/hppanbsd-nat.c
|
| index cda20f5ebabcb65624467c49f5427440bbcd65b5..be1d9dcafca14869b26a30ec9ab2f0bc5216c2fc 100644
|
| --- a/gdb/hppanbsd-nat.c
|
| +++ b/gdb/hppanbsd-nat.c
|
| @@ -1,6 +1,6 @@
|
| /* Native-dependent code for NetBSD/hppa.
|
|
|
| - Copyright (C) 2008-2012 Free Software Foundation, Inc.
|
| + Copyright (C) 2008-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -167,7 +167,7 @@ hppanbsd_fetch_registers (struct target_ops *ops,
|
| {
|
| struct reg regs;
|
|
|
| - if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
| + if (ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid),
|
| (PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
| perror_with_name (_("Couldn't get registers"));
|
|
|
| @@ -178,7 +178,7 @@ hppanbsd_fetch_registers (struct target_ops *ops,
|
| {
|
| struct fpreg fpregs;
|
|
|
| - if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
| + if (ptrace (PT_GETFPREGS, ptid_get_pid (inferior_ptid),
|
| (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
| perror_with_name (_("Couldn't get floating point status"));
|
|
|
| @@ -197,13 +197,13 @@ hppanbsd_store_registers (struct target_ops *ops,
|
| {
|
| struct reg regs;
|
|
|
| - if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
| + if (ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid),
|
| (PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
| perror_with_name (_("Couldn't get registers"));
|
|
|
| hppanbsd_collect_gregset (regcache, ®s, regnum);
|
|
|
| - if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
| + if (ptrace (PT_SETREGS, ptid_get_pid (inferior_ptid),
|
| (PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
| perror_with_name (_("Couldn't write registers"));
|
| }
|
| @@ -212,13 +212,13 @@ hppanbsd_store_registers (struct target_ops *ops,
|
| {
|
| struct fpreg fpregs;
|
|
|
| - if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
| + if (ptrace (PT_GETFPREGS, ptid_get_pid (inferior_ptid),
|
| (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
| perror_with_name (_("Couldn't get floating point status"));
|
|
|
| hppanbsd_collect_fpregset (regcache, &fpregs, regnum);
|
|
|
| - if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
| + if (ptrace (PT_SETFPREGS, ptid_get_pid (inferior_ptid),
|
| (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
| perror_with_name (_("Couldn't write floating point status"));
|
| }
|
|
|