[COMMIT] Some FreeBSD/sparc64 native improvements
Mark Kettenis
kettenis@gnu.org
Sun Jan 16 20:29:00 GMT 2005
Also gets rid of another nm.h file. I know the solib cruft in the
native configuration files is wrong, but Andrew won't let me add
another DEPRECATED_TM_FILE.
Committed,
Mark
Index: ChangeLog
from 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.
Index: sparc64fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64fbsd-nat.c,v
retrieving revision 1.5
diff -u -p -r1.5 sparc64fbsd-nat.c
--- sparc64fbsd-nat.c 16 Jan 2005 17:54:38 -0000 1.5
+++ sparc64fbsd-nat.c 16 Jan 2005 20:26:34 -0000
@@ -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;
}
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.689
diff -u -p -r1.689 Makefile.in
--- Makefile.in 16 Jan 2005 17:54:38 -0000 1.689
+++ Makefile.in 16 Jan 2005 20:26:38 -0000
@@ -2533,7 +2533,7 @@ source.o: source.c $(defs_h) $(symtab_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) \
Index: config/sparc/fbsd.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/fbsd.mh,v
retrieving revision 1.6
diff -u -p -r1.6 fbsd.mh
--- config/sparc/fbsd.mh 21 Nov 2004 20:22:56 -0000 1.6
+++ config/sparc/fbsd.mh 16 Jan 2005 20:26:38 -0000
@@ -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
More information about the Gdb-patches
mailing list