This is the mail archive of the gdb-patches@sources.redhat.com 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 SPARC Linux


Hmm, if you try to deprecated_set_gdbarch_data() something twice, GDB
crashes.  Well, it was pointless anyway to do that for SPARC Linux
since the inherited Solaris SPARC offsets are fine.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* sparc-linux-tdep.c (sparc32_linux_svr4_fetch_link_map_offsets):
	Remove function.
	(sparc32_linux_init_abi): Don't set solib_svr4_link_map_offsets.

Index: sparc-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-linux-tdep.c,v
retrieving revision 1.6
diff -u -p -r1.6 sparc-linux-tdep.c
--- sparc-linux-tdep.c 31 Jul 2004 21:53:17 -0000 1.6
+++ sparc-linux-tdep.c 10 Oct 2004 16:21:44 -0000
@@ -250,36 +250,6 @@ sparc32_linux_sigtramp_frame_sniffer (st
 }
 
 
-static struct link_map_offsets *
-sparc32_linux_svr4_fetch_link_map_offsets (void)
-{
-  static struct link_map_offsets lmo;
-  static struct link_map_offsets *lmp = NULL;
-
-  if (lmp == NULL)
-    {
-      lmp = &lmo;
-
-      /* Everything we need is in the first 8 bytes.  */
-      lmo.r_debug_size = 8;
-      lmo.r_map_offset = 4;
-      lmo.r_map_size   = 4;
-
-      /* Everything we need is in the first 20 bytes.  */
-      lmo.link_map_size = 20;
-      lmo.l_addr_offset = 0;
-      lmo.l_addr_size   = 4;
-      lmo.l_name_offset = 4;
-      lmo.l_name_size   = 4;
-      lmo.l_next_offset = 12;
-      lmo.l_next_size   = 4;
-      lmo.l_prev_offset = 16;
-      lmo.l_prev_size   = 4;
-    }
-
-  return lmp;
-}
-
 static void
 sparc32_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 {
@@ -294,9 +264,6 @@ sparc32_linux_init_abi (struct gdbarch_i
   set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
 
   frame_unwind_append_sniffer (gdbarch, sparc32_linux_sigtramp_frame_sniffer);
-
-  set_solib_svr4_fetch_link_map_offsets
-    (gdbarch, sparc32_linux_svr4_fetch_link_map_offsets);
 }
 
 /* Provide a prototype to silence -Wmissing-prototypes.  */


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