This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix NetBSD/arm


Oops, I've never actually seen a 64-bit arm cpu.  Using
svr4_ilp32_fetch_link_map_offsets should work much better.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* armnbsd-tdep.c (arm_netbsd_elf_init_abi): Use
	svr4_ilp_fetch_link_map_offsets.

Index: armnbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/armnbsd-tdep.c,v
retrieving revision 1.19
diff -u -p -r1.19 armnbsd-tdep.c
--- armnbsd-tdep.c 15 Jul 2006 21:22:51 -0000 1.19
+++ armnbsd-tdep.c 15 Jul 2006 22:36:45 -0000
@@ -1,4 +1,4 @@
-/* Target-specific functions for NetBSD/arm.
+/* Target-dependent code for NetBSD/arm.
 
    Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
 
@@ -82,7 +82,7 @@ arm_netbsd_aout_init_abi (struct gdbarch
 }
 
 static void
-arm_netbsd_elf_init_abi (struct gdbarch_info info, 
+arm_netbsd_elf_init_abi (struct gdbarch_info info,
 			 struct gdbarch *gdbarch)
 {
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
@@ -93,7 +93,7 @@ arm_netbsd_elf_init_abi (struct gdbarch_
 
   /* NetBSD ELF uses SVR4-style shared libraries.  */
   set_solib_svr4_fetch_link_map_offsets
-    (gdbarch, svr4_lp64_fetch_link_map_offsets);
+    (gdbarch, svr4_ilp32_fetch_link_map_offsets);
 }
 
 static enum gdb_osabi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]