summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb/ns32knbsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/gdb/ns32knbsd-nat.c')
-rw-r--r--gnu/usr.bin/binutils/gdb/ns32knbsd-nat.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/gnu/usr.bin/binutils/gdb/ns32knbsd-nat.c b/gnu/usr.bin/binutils/gdb/ns32knbsd-nat.c
index 2dc7771f345..520dfe4fb79 100644
--- a/gnu/usr.bin/binutils/gdb/ns32knbsd-nat.c
+++ b/gnu/usr.bin/binutils/gdb/ns32knbsd-nat.c
@@ -1,6 +1,7 @@
/* 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.
@@ -44,9 +45,9 @@ fetch_inferior_registers (int regno)
struct fpreg inferior_fpregisters;
ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) & inferior_registers, 0);
+ (PTRACE_TYPE_ARG3) & inferior_registers, 0);
ptrace (PT_GETFPREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) & inferior_fpregisters, 0);
+ (PTRACE_TYPE_ARG3) & inferior_fpregisters, 0);
RF (R0_REGNUM + 0, inferior_registers.r_r0);
RF (R0_REGNUM + 1, inferior_registers.r_r1);
@@ -105,9 +106,9 @@ store_inferior_registers (int regno)
RS (LP0_REGNUM + 7, inferior_fpregisters.r_freg[7]);
ptrace (PT_SETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) & inferior_registers, 0);
+ (PTRACE_TYPE_ARG3) & inferior_registers, 0);
ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) & inferior_fpregisters, 0);
+ (PTRACE_TYPE_ARG3) & inferior_fpregisters, 0);
}
@@ -182,7 +183,7 @@ static struct core_fns nat_core_fns =
void
_initialize_ns32knbsd_nat (void)
{
- add_core_fns (&nat_core_fns);
+ deprecated_add_core_fns (&nat_core_fns);
}