X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fshnbsd-nat.c;h=b4fd55d991a5fa6774e27a2bdf657a50f19dd9d8;hb=2b2798cc9716f45f752ea03411b6f9c9afc17cc6;hp=f66571a9dfecf87dd9cef260e1e5ba1ed6299862;hpb=c378eb4eaae2baecb17b41ba928daf9dc74b1aab;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/shnbsd-nat.c b/gdb/shnbsd-nat.c index f66571a9df..b4fd55d991 100644 --- a/gdb/shnbsd-nat.c +++ b/gdb/shnbsd-nat.c @@ -1,7 +1,6 @@ /* Native-dependent code for NetBSD/sh. - Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 - Free Software Foundation, Inc. + Copyright (C) 2002-2016 Free Software Foundation, Inc. Contributed by Wasabi Systems, Inc. @@ -50,7 +49,7 @@ shnbsd_fetch_inferior_registers (struct target_ops *ops, { struct reg inferior_registers; - if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), + if (ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid), (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) perror_with_name (_("Couldn't get registers")); @@ -71,7 +70,7 @@ shnbsd_store_inferior_registers (struct target_ops *ops, { struct reg inferior_registers; - if (ptrace (PT_GETREGS, PIDGET (inferior_ptid), + if (ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid), (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) perror_with_name (_("Couldn't get registers")); @@ -79,7 +78,7 @@ shnbsd_store_inferior_registers (struct target_ops *ops, (char *) &inferior_registers, SHNBSD_SIZEOF_GREGS); - if (ptrace (PT_SETREGS, PIDGET (inferior_ptid), + if (ptrace (PT_SETREGS, ptid_get_pid (inferior_ptid), (PTRACE_TYPE_ARG3) &inferior_registers, 0) == -1) perror_with_name (_("Couldn't set registers"));