diff options
Diffstat (limited to 'gdb/alphabsd-nat.c')
-rw-r--r-- | gdb/alphabsd-nat.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/gdb/alphabsd-nat.c b/gdb/alphabsd-nat.c index 36b45dda79e..5792ecc5344 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 <sys/types.h> #include <sys/ptrace.h> @@ -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); +} |