2004-08-15 Mark Kettenis <kettenis@gnu.org>
+ * 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.
+
* inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
PTRACE_TYPE_ARG3.
* infptrace.c (call_ptrace, child_resume, attach, detach)
struct reg gregs;
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &gregs, 0) == -1)
+ (PTRACE_TYPE_ARG3) &gregs, 0) == -1)
perror_with_name ("Couldn't get registers");
alphabsd_supply_reg ((char *) &gregs, regno);
struct fpreg fpregs;
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");
alphabsd_supply_fpreg ((char *) &fpregs, regno);
{
struct reg gregs;
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &gregs, 0) == -1)
+ (PTRACE_TYPE_ARG3) &gregs, 0) == -1)
perror_with_name ("Couldn't get registers");
alphabsd_fill_reg ((char *) &gregs, regno);
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &gregs, 0) == -1)
+ (PTRACE_TYPE_ARG3) &gregs, 0) == -1)
perror_with_name ("Couldn't write registers");
if (regno != -1)
struct fpreg fpregs;
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");
alphabsd_fill_fpreg ((char *) &fpregs, regno);
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");
}
}
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");
amd64_supply_native_gregset (current_regcache, ®s, -1);
struct fpreg fpregs;
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");
amd64_supply_fxsave (current_regcache, -1, &fpregs);
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");
amd64_collect_native_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)
struct fpreg fpregs;
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");
amd64_collect_fxsave (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");
}
}
/* 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.
int ret;
ret = ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &inferior_registers, 0);
+ (PTRACE_TYPE_ARG3) &inferior_registers, 0);
if (ret < 0)
{
int regno;
ret = ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &inferior_registers, 0);
+ (PTRACE_TYPE_ARG3) &inferior_registers, 0);
if (ret < 0)
{
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)
{
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)
{
int ret;
ret = ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &inferior_registers, 0);
+ (PTRACE_TYPE_ARG3) &inferior_registers, 0);
if (ret < 0)
{
}
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);
}
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");
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)
{
}
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);
(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");
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");
hppabsd_supply_gregset (regcache, ®s);
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");
hppabsd_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");
}
}
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);
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);
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);
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)
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
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
}
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
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");
}
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
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");
m68kbsd_supply_gregset (current_regcache, ®s);
struct fpreg fpregs;
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");
m68kbsd_supply_fpregset (current_regcache, &fpregs);
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");
m68kbsd_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");
}
struct fpreg fpregs;
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");
m68kbsd_collect_fpregset (current_regcache, &fpregs, regnum);
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");
}
}
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");
m88kbsd_supply_gregset (current_regcache, ®s);
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");
m88kbsd_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");
}
/* Native-dependent code for MIPS systems running NetBSD.
- Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GDB.
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");
mipsnbsd_supply_reg ((char *) ®s, regno);
struct fpreg fpregs;
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");
mipsnbsd_supply_fpreg ((char *) &fpregs, regno);
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");
mipsnbsd_fill_reg ((char *) ®s, regno);
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 (regno != -1)
struct fpreg fpregs;
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");
mipsnbsd_fill_fpreg ((char *) &fpregs, regno);
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");
}
}
/* Functions specific to running gdb native on an ns32k running NetBSD
- Copyright 1989, 1992, 1993, 1994, 1996, 1998, 1999, 2000, 2001
- Free Software Foundation, Inc.
+
+ Copyright 1989, 1992, 1993, 1994, 1996, 1998, 1999, 2000, 2001,
+ 2004 Free Software Foundation, Inc.
This file is part of GDB.
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");
ppcnbsd_supply_reg ((char *) ®s, regno);
struct fpreg fpregs;
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 FP registers");
ppcnbsd_supply_fpreg ((char *) &fpregs, regno);
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");
ppcnbsd_fill_reg ((char *) ®s, regno);
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 (regno != -1)
struct fpreg fpregs;
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 FP registers");
ppcnbsd_fill_fpreg ((char *) &fpregs, regno);
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
+ (PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
perror_with_name ("Couldn't set FP registers");
}
}
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");
ppcobsd_supply_gregset (&ppcobsd_gregset, current_regcache, -1,
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");
ppcobsd_collect_gregset (&ppcobsd_gregset, current_regcache,
regnum, ®s, sizeof regs);
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");
}
\f
/* Native-dependent code for SuperH running NetBSD, for GDB.
- Copyright 2002, 2003 Free Software Foundation, Inc.
+
+ Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
Contributed by Wasabi Systems, Inc.
This file is part of GDB.
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");
vaxbsd_supply_gregset (current_regcache, ®s);
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");
vaxbsd_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");
}
\f