diff options
Diffstat (limited to 'gdb/sparc64fbsd-nat.c')
-rw-r--r-- | gdb/sparc64fbsd-nat.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gdb/sparc64fbsd-nat.c b/gdb/sparc64fbsd-nat.c index 692ed80..dab419a 100644 --- a/gdb/sparc64fbsd-nat.c +++ b/gdb/sparc64fbsd-nat.c @@ -22,6 +22,7 @@ #include "defs.h" #include "target.h" +#include "fbsd-nat.h" #include "sparc64-tdep.h" #include "sparc-nat.h" @@ -31,8 +32,14 @@ void _initialize_sparc64fbsd_nat (void); void _initialize_sparc64fbsd_nat (void) { - sparc_gregset = &sparc64fbsd_gregset; + struct target_ops *t; + + /* Add some extra features to the generic SPARC target. */ + t = sparc_target (); + t->to_pid_to_exec_file = fbsd_pid_to_exec_file; + t->to_find_memory_regions = fbsd_find_memory_regions; + t->to_make_corefile_notes = fbsd_make_corefile_notes; + add_target (t); - /* We've got nothing to add to the generic SPARC target. */ - add_target (sparc_target ()); + sparc_gregset = &sparc64fbsd_gregset; } |