aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/Makefile.in2
-rw-r--r--gdb/config/sparc/fbsd.mh6
-rw-r--r--gdb/config/sparc/nm-fbsd.h32
-rw-r--r--gdb/sparc64fbsd-nat.c13
5 files changed, 22 insertions, 39 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fdeede1..2a47610 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2005-01-16 Mark Kettenis <kettenis@gnu.org>
+ * 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.
+
* sparc64-tdep.c (sparc64_store_arguments): Fix typo.
* sparc-tdep.c (sparc_integral_or_pointer_p): Simplify.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index aa52a1c..567732d 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2533,7 +2533,7 @@ source.o: source.c $(defs_h) $(symtab_h) $(expression_h) $(language_h) \
$(symfile_h) $(objfiles_h) $(annotate_h) $(gdbtypes_h) $(linespec_h) \
$(filenames_h) $(completer_h) $(ui_out_h) $(readline_h)
sparc64fbsd-nat.o: sparc64fbsd-nat.c $(defs_h) $(target_h) \
- $(sparc64_tdep_h) $(sparc_nat_h)
+ $(fbsd_nat_h) $(sparc64_tdep_h) $(sparc_nat_h)
sparc64fbsd-tdep.o: sparc64fbsd-tdep.c $(defs_h) $(frame_h) \
$(frame_unwind_h) $(gdbcore_h) $(osabi_h) $(regcache_h) $(regset_h) \
$(target_h) $(trad_frame_h) $(gdb_assert_h) $(gdb_string_h) \
diff --git a/gdb/config/sparc/fbsd.mh b/gdb/config/sparc/fbsd.mh
index 4463a3c..d2a143c 100644
--- a/gdb/config/sparc/fbsd.mh
+++ b/gdb/config/sparc/fbsd.mh
@@ -1,5 +1,5 @@
# Host: FreeBSD/sparc64
NATDEPFILES= fork-child.o inf-ptrace.o \
- sparc64fbsd-nat.o sparc64-nat.o sparc-nat.o \
- solib.o solib-svr4.o solib-legacy.o
-NAT_FILE= nm-fbsd.h
+ fbsd-nat.o sparc-nat.o sparc64-nat.o sparc64fbsd-nat.o \
+ gcore.o solib.o solib-svr4.o solib-legacy.o
+NAT_FILE= solib.h
diff --git a/gdb/config/sparc/nm-fbsd.h b/gdb/config/sparc/nm-fbsd.h
deleted file mode 100644
index 459764f..0000000
--- a/gdb/config/sparc/nm-fbsd.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Native-dependent definitions for FreeBSD/sparc64.
-
- Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
- Contributed by David E. O'Brien <obrien@FreeBSD.org>.
-
- This file is part of GDB.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-#ifndef NM_FBSD_H
-#define NM_FBSD_H
-
-/* Get generic BSD native definitions. */
-#include "config/nm-bsd.h"
-
-/* Shared library support. */
-
-#include "solib.h"
-
-#endif /* nm-fbsd.h */
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;
}