2005-03-05 Mark Kettenis <kettenis@gnu.org>
+ * 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".
+
* mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
software_single_step.
$(target_h) $(inferior_h) $(regcache_h) $(gdbcmd_h) $(ppc_tdep_h) \
$(gdb_string_h)
alphabsd-nat.o: alphabsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
- $(alpha_tdep_h) $(alphabsd_tdep_h) $(gregset_h)
+ $(alpha_tdep_h) $(alphabsd_tdep_h) $(inf_ptrace_h) $(gregset_h)
alphabsd-tdep.o: alphabsd-tdep.c $(defs_h) $(alpha_tdep_h) \
$(alphabsd_tdep_h)
alphafbsd-tdep.o: alphafbsd-tdep.c $(defs_h) $(value_h) $(osabi_h) \
/* 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.
#include "alpha-tdep.h"
#include "alphabsd-tdep.h"
+#include "inf-ptrace.h"
#include <sys/types.h>
#include <sys/ptrace.h>
/* 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))
{
/* 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))
{
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);
+}
-# Host: FreeBSD/Alpha
-NATDEPFILES= fork-child.o infptrace.o inftarg.o \
- solib.o solib-svr4.o solib-legacy.o \
- corelow.o core-regset.o alphabsd-nat.o
+# Host: FreeBSD/alpha
+NATDEPFILES= fork-child.o inf-ptrace.o \
+ fbsd-nat.o alphabsd-nat.o \
+ gcore.o solib.o solib-svr4.o solib-legacy.o \
+ corelow.o core-regset.o
NAT_FILE= nm-fbsd.h
-# Host: Alpha running NetBSD
-NAT_CLIBS=
-NATDEPFILES= infptrace.o inftarg.o fork-child.o alphabsd-nat.o
+# Host: NetBSD/alpha
+NATDEPFILES= fork-child.o inf-ptrace.o alphabsd-nat.o
NAT_FILE= nm-nbsd.h
-/* Native-dependent definitions for FreeBSD/Alpha.
+/* Native-dependent definitions for FreeBSD/alpha.
- Copyright 1986, 1987, 1989, 1992, 1996, 2000, 2004
+ Copyright 1986, 1987, 1989, 1992, 1996, 2000, 2004, 2005
Free Software Foundation, Inc.
This file is part of GDB.
#ifndef NM_FBSD_H
#define NM_FBSD_H
-/* Get generic BSD native definitions. */
-#include "config/nm-bsd.h"
-
/* The Alpha does not step over a breakpoint. */
#define CANNOT_STEP_BREAKPOINT 1
\f
/* Shared library support. */
#include "solib.h" /* Support for shared libraries. */
-#include "elf/common.h" /* Additional ELF shared library info. */
-#endif /* NM_FBSD_H */
+#endif /* nm-fbsd.h */
-/* Native-dependent definitions for Alpha running NetBSD, for GDB.
- Copyright 2002 Free Software Foundation, Inc.
+/* Native-dependent definitions for NetBSD/alpha.
+
+ Copyright 2002, 2005 Free Software Foundation, Inc.
+
Contributed by Wasabi Systems, Inc.
This file is part of GDB.
#ifndef NM_NBSD_H
#define NM_NBSD_H
-/* Get generic NetBSD native definitions. */
-#include "config/nm-nbsd.h"
-
/* The Alpha does not step over a breakpoint. */
#define CANNOT_STEP_BREAKPOINT 1
-#endif /* NM_NBSD_H */
+#endif /* nm-nbsd.h */