aboutsummaryrefslogtreecommitdiff
path: root/gdb/alphabsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-05 14:36:10 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-05 14:36:10 +0000
commit0d6e4ad74ba863a72dcf63db2120a1565bd61ed2 (patch)
treecdf7c73dc5255a0cc63b4abe4891249741e129a4 /gdb/alphabsd-nat.c
parentab5b5d6168b7a9333e10313d8fe21f9a382e17fb (diff)
downloadgdb-0d6e4ad74ba863a72dcf63db2120a1565bd61ed2.zip
gdb-0d6e4ad74ba863a72dcf63db2120a1565bd61ed2.tar.gz
gdb-0d6e4ad74ba863a72dcf63db2120a1565bd61ed2.tar.bz2
* 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".
Diffstat (limited to 'gdb/alphabsd-nat.c')
-rw-r--r--gdb/alphabsd-nat.c25
1 files changed, 20 insertions, 5 deletions
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 <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);
+}