aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64fbsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-01-16 20:29:11 +0000
committerMark Kettenis <kettenis@gnu.org>2005-01-16 20:29:11 +0000
commitca5807d9a53eb79c958f4ecb1ee280464d0f2745 (patch)
tree15890870ee4fa7af224766cdd29851dbfa9a7707 /gdb/sparc64fbsd-nat.c
parentc4f2d4d74d9c1c618714e23d309c78b6af1f9a48 (diff)
downloadgdb-ca5807d9a53eb79c958f4ecb1ee280464d0f2745.zip
gdb-ca5807d9a53eb79c958f4ecb1ee280464d0f2745.tar.gz
gdb-ca5807d9a53eb79c958f4ecb1ee280464d0f2745.tar.bz2
* sparc64fbsd-nat.c: Include "fbsd-nat.h".
(_initialize_sparc64fbsd_nat): Add some extra features to the generic SPARC target. * Makefile.in (sparc64fbsd-nat.o): Update dependencies. * config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o. (NAT_FILE): Set to solib.h. * config/sparc/nm-fbsd.h: Remove file.
Diffstat (limited to 'gdb/sparc64fbsd-nat.c')
-rw-r--r--gdb/sparc64fbsd-nat.c13
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;
}