This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Some obvious NetBSD/arm cleanups
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sat, 15 Jul 2006 23:25:03 +0200 (CEST)
- Subject: [commit] Some obvious NetBSD/arm cleanups
Another DEPRECATED_TM_FILE bites the dust. And while I'm there, clean
up another nbsd_lp32_solib_svr4_fetch_link_map_offsets too.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* armnbsd-tdep.c: Don't include "nbsd-tdep.h".
* config/arm/nbsd.mt (TDEPFILES): Remove nbsd-tdep.o.
(DEPRECATED_TM_FILE): Remove.
* Makefile.in (armnbsd-tdep.o): Update dependencies.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.827
diff -u -p -r1.827 Makefile.in
--- Makefile.in 12 Jul 2006 20:46:32 -0000 1.827
+++ Makefile.in 15 Jul 2006 21:20:14 -0000
@@ -1782,7 +1782,7 @@ arm-linux-tdep.o: arm-linux-tdep.c $(def
armnbsd-nat.o: armnbsd-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) \
$(regcache_h) $(target_h) $(gdb_string_h) $(arm_tdep_h) $(inf_ptrace_h)
armnbsd-tdep.o: armnbsd-tdep.c $(defs_h) $(osabi_h) $(gdb_string_h) \
- $(arm_tdep_h) $(nbsd_tdep_h) $(solib_svr4_h)
+ $(arm_tdep_h) $(solib_svr4_h)
arm-tdep.o: arm-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(gdbcmd_h) \
$(gdbcore_h) $(gdb_string_h) $(dis_asm_h) $(regcache_h) \
$(doublest_h) $(value_h) $(arch_utils_h) $(osabi_h) \
Index: armnbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/armnbsd-tdep.c,v
retrieving revision 1.18
diff -u -p -r1.18 armnbsd-tdep.c
--- armnbsd-tdep.c 17 Dec 2005 22:33:59 -0000 1.18
+++ armnbsd-tdep.c 15 Jul 2006 21:20:14 -0000
@@ -1,6 +1,6 @@
-/* Target-specific functions for ARM running under NetBSD.
+/* Target-specific functions for NetBSD/arm.
- Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
This file is part of GDB.
@@ -25,7 +25,6 @@
#include "gdb_string.h"
#include "arm-tdep.h"
-#include "nbsd-tdep.h"
#include "solib-svr4.h"
/* Description of the longjmp buffer. */
@@ -89,12 +88,12 @@ arm_netbsd_elf_init_abi (struct gdbarch_
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
arm_netbsd_init_abi_common (info, gdbarch);
-
- set_solib_svr4_fetch_link_map_offsets (gdbarch,
- nbsd_ilp32_solib_svr4_fetch_link_map_offsets);
-
if (tdep->fp_model == ARM_FLOAT_AUTO)
tdep->fp_model = ARM_FLOAT_SOFT_VFP;
+
+ /* NetBSD ELF uses SVR4-style shared libraries. */
+ set_solib_svr4_fetch_link_map_offsets
+ (gdbarch, svr4_lp64_fetch_link_map_offsets);
}
static enum gdb_osabi
Index: config/arm/nbsd.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/nbsd.mt,v
retrieving revision 1.8
diff -u -p -r1.8 nbsd.mt
--- config/arm/nbsd.mt 13 Sep 2004 20:55:39 -0000 1.8
+++ config/arm/nbsd.mt 15 Jul 2006 21:20:14 -0000
@@ -1,3 +1,2 @@
-# Target: ARM running NetBSD
-TDEPFILES= arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o nbsd-tdep.o
-DEPRECATED_TM_FILE=solib.h
+# Target: NetBSD/arm
+TDEPFILES= arm-tdep.o armnbsd-tdep.o solib.o solib-svr4.o