aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-10-10 16:25:16 +0000
committerMark Kettenis <kettenis@gnu.org>2004-10-10 16:25:16 +0000
commitbc73f8cc48b0722ae18308e6f3b2da20ad8fc6d8 (patch)
treed9721755e5812da7dda637d62332c8c009e0cb9e
parenta22495427e2055bd256a2f5ae678474d209672a2 (diff)
downloadgdb-bc73f8cc48b0722ae18308e6f3b2da20ad8fc6d8.zip
gdb-bc73f8cc48b0722ae18308e6f3b2da20ad8fc6d8.tar.gz
gdb-bc73f8cc48b0722ae18308e6f3b2da20ad8fc6d8.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/sparc-linux-tdep.c33
2 files changed, 4 insertions, 33 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e6e137f..d9f839f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2004-10-10 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.
+
* ada-lang.c (lim_warning): Re-implement as a varargs function.
(decode_packed_array_type, value_subscript_packed)
(ada_evaluate_subexp, to_fixed_range_type): Remove redundant
diff --git a/gdb/sparc-linux-tdep.c b/gdb/sparc-linux-tdep.c
index 95f9237..f05003f 100644
--- a/gdb/sparc-linux-tdep.c
+++ b/gdb/sparc-linux-tdep.c
@@ -250,36 +250,6 @@ sparc32_linux_sigtramp_frame_sniffer (struct frame_info *next_frame)
}
-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_info info, struct gdbarch *gdbarch)
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. */