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:
@@ -136,7 +136,7 @@ fetch_inferior_registers (int regnum)
|
||||
struct reg regs;
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) ®s, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
|
||||
i386bsd_supply_gregset (current_regcache, ®s);
|
||||
@@ -152,7 +152,7 @@ fetch_inferior_registers (int regnum)
|
||||
|
||||
if (have_ptrace_xmmregs != 0
|
||||
&& ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) xmmregs, 0) == 0)
|
||||
(PTRACE_TYPE_ARG3) xmmregs, 0) == 0)
|
||||
{
|
||||
have_ptrace_xmmregs = 1;
|
||||
i387_supply_fxsave (current_regcache, -1, xmmregs);
|
||||
@@ -160,14 +160,14 @@ fetch_inferior_registers (int regnum)
|
||||
else
|
||||
{
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
|
||||
i387_supply_fsave (current_regcache, -1, &fpregs);
|
||||
}
|
||||
#else
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
|
||||
i387_supply_fsave (current_regcache, -1, &fpregs);
|
||||
@@ -186,13 +186,13 @@ store_inferior_registers (int regnum)
|
||||
struct reg regs;
|
||||
|
||||
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) ®s, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't get registers");
|
||||
|
||||
i386bsd_collect_gregset (current_regcache, ®s, regnum);
|
||||
|
||||
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) ®s, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
|
||||
perror_with_name ("Couldn't write registers");
|
||||
|
||||
if (regnum != -1)
|
||||
@@ -207,14 +207,14 @@ store_inferior_registers (int regnum)
|
||||
|
||||
if (have_ptrace_xmmregs != 0
|
||||
&& ptrace(PT_GETXMMREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) xmmregs, 0) == 0)
|
||||
(PTRACE_TYPE_ARG3) xmmregs, 0) == 0)
|
||||
{
|
||||
have_ptrace_xmmregs = 1;
|
||||
|
||||
i387_collect_fxsave (current_regcache, regnum, xmmregs);
|
||||
|
||||
if (ptrace (PT_SETXMMREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) xmmregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) xmmregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write XMM registers");
|
||||
}
|
||||
else
|
||||
@@ -222,13 +222,13 @@ store_inferior_registers (int regnum)
|
||||
have_ptrace_xmmregs = 0;
|
||||
#endif
|
||||
if (ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get floating point status");
|
||||
|
||||
i387_collect_fsave (current_regcache, regnum, &fpregs);
|
||||
|
||||
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write floating point status");
|
||||
#ifdef HAVE_PT_GETXMMREGS
|
||||
}
|
||||
@@ -253,7 +253,7 @@ i386bsd_dr_set (int regnum, unsigned int value)
|
||||
struct dbreg dbregs;
|
||||
|
||||
if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &dbregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
|
||||
perror_with_name ("Couldn't get debug registers");
|
||||
|
||||
/* For some mysterious reason, some of the reserved bits in the
|
||||
@@ -264,7 +264,7 @@ i386bsd_dr_set (int regnum, unsigned int value)
|
||||
DBREG_DRX ((&dbregs), regnum) = value;
|
||||
|
||||
if (ptrace (PT_SETDBREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) &dbregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
|
||||
perror_with_name ("Couldn't write debug registers");
|
||||
}
|
||||
|
||||
@@ -301,7 +301,7 @@ i386bsd_dr_get_status (void)
|
||||
stuff to the target vector. For now, just return zero if the
|
||||
ptrace call fails. */
|
||||
if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
|
||||
(PTRACE_ARG3_TYPE) & dbregs, 0) == -1)
|
||||
(PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
|
||||
#if 0
|
||||
perror_with_name ("Couldn't read debug registers");
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user