forked from Imagelibrary/binutils-gdb
* alphabsd-nat.c (fetch_inferior_registers):
(store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * amd64bsd-nat.c (fetch_inferior_registers) (store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * armnbsd-nat.c: Update copyright year. (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs) (store_register, store_regs, store_fp_register, store_fp_regs): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * hppabsd-nat.c (fetch_inferior_registers) (store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * i386bsd-nat.c (fetch_inferior_registers) (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * m68kbsd-nat.c (fetch_inferior_registers) (store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * m88kbsd-nat.c (fetch_inferior_registers) (store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * mipsnbsd-nat.c: Update copyright year. (fetch_inferior_registers, store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * ns32knbsd-nat.c: Update copyright year. (fetch_inferior_registers, store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * ppcnbsd-nat.c (fetch_inferior_registers): (store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * ppcobsd-nat.c (fetch_inferior_registers): (store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * shnbsd-nat.c: Update copyright year. (fetch_inferior_registers, store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3. * vaxbsd-nat.c (fetch_inferior_registers) (store_inferior_registers): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* Native-dependent code for BSD Unix running on ARM's, for GDB.
|
||||
Copyright 1988, 1989, 1991, 1992, 1994, 1996, 1999, 2002
|
||||
|
||||
Copyright 1988, 1989, 1991, 1992, 1994, 1996, 1999, 2002, 2004
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
@@ -83,7 +84,7 @@ fetch_register (int regno)
|
||||
int ret;
|
||||
|
||||
ret = ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -134,7 +135,7 @@ fetch_regs (void)
|
||||
int regno;
|
||||
|
||||
ret = ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -152,7 +153,7 @@ fetch_fp_register (int regno)
|
||||
int ret;
|
||||
|
||||
ret = ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_fp_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_fp_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -182,7 +183,7 @@ fetch_fp_regs (void)
|
||||
int regno;
|
||||
|
||||
ret = ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_fp_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_fp_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -218,7 +219,7 @@ store_register (int regno)
|
||||
int ret;
|
||||
|
||||
ret = ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -280,7 +281,7 @@ store_register (int regno)
|
||||
}
|
||||
|
||||
ret = ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
warning ("unable to write register %d to inferior", regno);
|
||||
@@ -327,7 +328,7 @@ store_regs (void)
|
||||
}
|
||||
|
||||
ret = ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
warning ("unable to store general registers");
|
||||
@@ -340,7 +341,7 @@ store_fp_register (int regno)
|
||||
int ret;
|
||||
|
||||
ret = ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_fp_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_fp_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -362,7 +363,7 @@ store_fp_register (int regno)
|
||||
}
|
||||
|
||||
ret = ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_fp_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_fp_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
warning ("unable to write register %d to inferior", regno);
|
||||
@@ -384,7 +385,7 @@ store_fp_regs (void)
|
||||
(char *) &inferior_fp_registers.fpr_fpsr);
|
||||
|
||||
ret = ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &inferior_fp_registers, 0);
|
||||
(PTRACE_TYPE_ARG3) &inferior_fp_registers, 0);
|
||||
|
||||
if (ret < 0)
|
||||
warning ("unable to store floating-point registers");
|
||||
|
||||
Reference in New Issue
Block a user