aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-nbsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sparc-nbsd-nat.c')
-rw-r--r--gdb/sparc-nbsd-nat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/sparc-nbsd-nat.c b/gdb/sparc-nbsd-nat.c
index fd76d0e..5ff723d 100644
--- a/gdb/sparc-nbsd-nat.c
+++ b/gdb/sparc-nbsd-nat.c
@@ -55,14 +55,15 @@ sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
return 1;
}
+static sparc_target<inf_ptrace_target> the_sparc_nbsd_nat_target;
+
void
_initialize_sparcnbsd_nat (void)
{
sparc_gregmap = &sparc32nbsd_gregmap;
sparc_fpregmap = &sparc32_bsd_fpregmap;
- /* We've got nothing to add to the generic SPARC target. */
- add_target (sparc_target ());
+ add_target (&sparc_nbsd_nat_target);
/* Support debugging kernel virtual memory images. */
bsd_kvm_add_target (sparc32nbsd_supply_pcb);