aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-04-27 20:48:25 +0000
committerMark Kettenis <kettenis@gnu.org>2005-04-27 20:48:25 +0000
commitccf00f21795678e609af3faa0437cc216f039907 (patch)
tree188469d0c8fbcceaff9c555c8ea106f72c252775 /gdb/sh-tdep.c
parent4ec242d7be3f7d2fdd3f3e4927fcb0b895fb7dd2 (diff)
downloadgdb-ccf00f21795678e609af3faa0437cc216f039907.zip
gdb-ccf00f21795678e609af3faa0437cc216f039907.tar.gz
gdb-ccf00f21795678e609af3faa0437cc216f039907.tar.bz2
* sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
(sh_gdbarch_init): Remove redundant prototype. * sh-linux-tdep.c: New file. * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets): Remove prototype. (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define. * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove solib-legacy.o. * Makefile.in (sh-linux-tdep.o): New.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 0689989..15e89e9 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -2152,47 +2152,6 @@ sh_print_registers_info (struct gdbarch *gdbarch, struct ui_file *file,
}
}
-/* Fetch (and possibly build) an appropriate link_map_offsets structure
- for native i386 linux targets using the struct offsets defined in
- link.h (but without actual reference to that file).
-
- This makes it possible to access i386-linux shared libraries from
- a gdb that was not built on an i386-linux host (for cross debugging).
- */
-
-struct link_map_offsets *
-sh_linux_svr4_fetch_link_map_offsets (void)
-{
- static struct link_map_offsets lmo;
- static struct link_map_offsets *lmp = 0;
-
- if (lmp == 0)
- {
- lmp = &lmo;
-
- lmo.r_debug_size = 8; /* 20 not actual size but all we need */
-
- lmo.r_map_offset = 4;
- lmo.r_map_size = 4;
-
- lmo.link_map_size = 20; /* 552 not actual size but all we need */
-
- 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 int
sh_dsp_register_sim_regno (int nr)
{
@@ -2513,8 +2472,7 @@ sh_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc)
}
return 0;
}
-
-static gdbarch_init_ftype sh_gdbarch_init;
+
static struct gdbarch *
sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)