From 0d6e4ad74ba863a72dcf63db2120a1565bd61ed2 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 5 Mar 2005 14:36:10 +0000 Subject: * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h". (alphabsd_fetch_inferior_registers): Rename from fetch_inferior_registers. Make static. (alphabsd_store_inferior_registers): Rename from store_inferior_registers. Make static. (_initialize_alphabsd_nat): New function. * Makefile.in (alphabsd-nat.o): Update dependencies. * config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and inftarg.o. Add inf-ptrace.o, fbsd-nat.o and gcore.o. * config/alpha/nbsd.mh (NAT_CLIBS): Remove variable. (NATDEPFILES): Remove infptrace.o and inftarg.o. Add alphabsd-nat.o. * config/alpha/nm-fbsd.h: Update copyright year. Don't include "config/nm-bsd.h" and "elf/common.h". * config/alpha/nm-nbsd.h: Update copyright year. Don't include "config/nm-nbsd.h". --- gdb/alphabsd-nat.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'gdb/alphabsd-nat.c') diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c index 36b45dd..5792ecc 100644 --- a/gdb/alphabsd-nat.c +++ b/gdb/alphabsd-nat.c @@ -1,6 +1,6 @@ /* Native-dependent code for Alpha BSD's. - Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc. + Copyright 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GDB. @@ -25,6 +25,7 @@ #include "alpha-tdep.h" #include "alphabsd-tdep.h" +#include "inf-ptrace.h" #include #include @@ -83,8 +84,8 @@ getregs_supplies (int regno) /* Fetch register REGNO from the inferior. If REGNO is -1, do this for all registers (including the floating point registers). */ -void -fetch_inferior_registers (int regno) +static void +alphabsd_fetch_inferior_registers (int regno) { if (regno == -1 || getregs_supplies (regno)) { @@ -114,8 +115,8 @@ fetch_inferior_registers (int regno) /* Store register REGNO back into the inferior. If REGNO is -1, do this for all registers (including the floating point registers). */ -void -store_inferior_registers (int regno) +static void +alphabsd_store_inferior_registers (int regno) { if (regno == -1 || getregs_supplies (regno)) { @@ -149,3 +150,17 @@ store_inferior_registers (int regno) perror_with_name (_("Couldn't write floating point status")); } } + +/* Provide a prototype to silence -Wmissing-prototypes. */ +void _initialize_alphabsd_nat (void); + +void +_initialize_alphabsd_nat (void) +{ + struct target_ops *t; + + t = inf_ptrace_target (); + t->to_fetch_registers = alphabsd_fetch_inferior_registers; + t->to_store_registers = alphabsd_store_inferior_registers; + add_target (t); +} -- cgit v1.1