* solib-svr4.c (init_fetch_link_map_offsets): Simply return
authorMark Kettenis <kettenis@gnu.org>
Sun, 9 Jun 2002 16:39:00 +0000 (16:39 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 9 Jun 2002 16:39:00 +0000 (16:39 +0000)
legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
after Andrew's 2002-06-08 gdbarch change.

gdb/ChangeLog
gdb/solib-svr4.c

index 6bf38d824f9b438f60be14d007b20f873cf759da..bbe728e5a0bc3bbe5ad72af12839eeede7c7ae3a 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-09  Mark Kettenis  <kettenis@gnu.org>
+
+       * solib-svr4.c (init_fetch_link_map_offsets): Simply return
+       legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
+       after Andrew's 2002-06-08 gdbarch change.
+
 2002-06-09  Mark Kettenis  <kettenis@gnu.org>
 
        * i386-linux-nat.c (suppy_gregset): Don't supply
index 2d71097c091da0cc8848c8e6d93d202fcaa37a70..3f98a1eb4338b2faefee568d5d89550b22c885a5 100644 (file)
@@ -1318,24 +1318,20 @@ set_solib_svr4_fetch_link_map_offsets (struct gdbarch *gdbarch,
   set_gdbarch_data (gdbarch, fetch_link_map_offsets_gdbarch_data, flmo);
 }
 
-/* Initialize the architecture specific link_map_offsets fetcher. 
-   This is called after <arch>_gdbarch_init() has set up its struct
-   gdbarch for the new architecture, so care must be taken to use the
-   value set by set_solib_svr4_fetch_link_map_offsets(), above.  We
-   do, however, attempt to provide a reasonable alternative (for
-   native targets anyway) if the <arch>_gdbarch_init() fails to call
+/* Initialize the architecture-specific link_map_offsets fetcher.
+   This is called after <arch>_gdbarch_init() has set up its `struct
+   gdbarch' for the new architecture, and is only called if the
+   link_map_offsets fetcher isn't already initialized (which is
+   usually done by calling set_solib_svr4_fetch_link_map_offsets()
+   above in <arch>_gdbarch_init()).  Therefore we attempt to provide a
+   reasonable alternative (for native targets anyway) if the
+   <arch>_gdbarch_init() fails to call
    set_solib_svr4_fetch_link_map_offsets().  */
 
 static void *
 init_fetch_link_map_offsets (struct gdbarch *gdbarch)
 {
-  struct link_map_offsets *(*flmo) =
-    gdbarch_data (gdbarch, fetch_link_map_offsets_gdbarch_data);
-
-  if (flmo == NULL)
-    return legacy_fetch_link_map_offsets;
-  else
-    return flmo;
+  return legacy_fetch_link_map_offsets;
 }
 
 static struct target_so_ops svr4_so_ops;
This page took 0.028394 seconds and 4 git commands to generate.