summaryrefslogtreecommitdiff
path: root/gdb/m68kbsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-11-07 21:31:19 +0000
committerMark Kettenis <kettenis@gnu.org>2004-11-07 21:31:19 +0000
commit0ae0d7b18cc6b2cc8c04042fd985e58b02574e1d (patch)
tree2e33e5377c595b62f1f750845e01ef96ce962982 /gdb/m68kbsd-nat.c
parent81ae55503b371625eccd79f65dfd978e354de963 (diff)
downloadgdb-0ae0d7b18cc6b2cc8c04042fd985e58b02574e1d.tar.gz
* m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Rename from
fetch_inferior_registers. Make static. (m68kbsd_store_inferior_registers): Rename from store_inferior_registers. Make static. (_initialize_m68kbsd_nat): Construct and add target vector. * config/m68k/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and inftarg.o. Add inf-ptrace.o. (NAT_FILE): Set to tm-solib.h. (LOADLIBES): New variable. * config/m68k/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and inftarg.o. Add inf-ptrace.o. (NAT_FILE): Delete variable. * config/m68k/obsd.mh (NATDEPFILES): Remove infptrace.o and inftarg.o. Add inf-ptrace.o. (NAT_FILE): Set to tm-solib.h. * config/m68k/nm-nbsdaout.h: Remove file.
Diffstat (limited to 'gdb/m68kbsd-nat.c')
-rw-r--r--gdb/m68kbsd-nat.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/gdb/m68kbsd-nat.c b/gdb/m68kbsd-nat.c
index 34e94b4e2f9..dbb569d40d8 100644
--- a/gdb/m68kbsd-nat.c
+++ b/gdb/m68kbsd-nat.c
@@ -106,8 +106,8 @@ m68kbsd_collect_fpregset (struct regcache *regcache,
/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
for all registers (including the floating-point registers). */
-void
-fetch_inferior_registers (int regnum)
+static void
+m68kbsd_fetch_inferior_registers (int regnum)
{
if (regnum == -1 || m68kbsd_gregset_supplies_p (regnum))
{
@@ -135,8 +135,8 @@ fetch_inferior_registers (int regnum)
/* Store register REGNUM back into the inferior. If REGNUM is -1, do
this for all registers (including the floating-point registers). */
-void
-store_inferior_registers (int regnum)
+static void
+m68kbsd_store_inferior_registers (int regnum)
{
if (regnum == -1 || m68kbsd_gregset_supplies_p (regnum))
{
@@ -223,6 +223,13 @@ void _initialize_m68kbsd_nat (void);
void
_initialize_m68kbsd_nat (void)
{
+ struct target_ops *t;
+
+ t = inf_ptrace_target ();
+ t->to_fetch_registers = vaxbsd_fetch_inferior_registers;
+ t->to_store_registers = vaxbsd_store_inferior_registers;
+ add_target (t);
+
/* Support debugging kernel virtual memory images. */
bsd_kvm_add_target (m68kbsd_supply_pcb);
}