aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-linux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/sparc64-linux-nat.c')
-rw-r--r--gdb/sparc64-linux-nat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c
index 9ac1afe..ba9397e 100644
--- a/gdb/sparc64-linux-nat.c
+++ b/gdb/sparc64-linux-nat.c
@@ -91,13 +91,11 @@ fill_fpregset (const struct regcache *regcache,
void
_initialize_sparc64_linux_nat (void)
{
- target_ops *t = &the_sparc64_linux_nat_target;
-
sparc_fpregmap = &sparc64_bsd_fpregmap;
/* Register the target. */
linux_target = &the_sparc64_linux_nat_target;
- add_target (t);
+ add_inf_child_target (&the_sparc64_linux_nat_target);
sparc_gregmap = &sparc64_linux_ptrace_gregmap;
}