From: kevinb Date: Wed, 7 Sep 2005 00:23:14 +0000 (+0000) Subject: * mn10300-linux-tdep.c (mn10300_linux_svr4_fetch_link_map_offsets): X-Git-Tag: pre_wait_sig_exit~58 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7b32a278c953d7101baa17ffb5ff6b6301a76921;p=pf3gnuchains%2Fpf3gnuchains4x.git * mn10300-linux-tdep.c (mn10300_linux_svr4_fetch_link_map_offsets): Delete. (am33_linux_init_osabi): Register svr4_ilp32_fetch_link_map_offsets instead. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 10914d1759..1306a9823c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2005-09-06 Kevin Buettner + * mn10300-linux-tdep.c (mn10300_linux_svr4_fetch_link_map_offsets): + Delete. + (am33_linux_init_osabi): Register svr4_ilp32_fetch_link_map_offsets + instead. + +2005-09-06 Kevin Buettner + * mn10300-linux-tdep.c (solib-svr4.h): Include. (mn10300_linux_svr4_fetch_link_map_offsets): New function. (am33_linux_init_osabi): Register it. diff --git a/gdb/mn10300-linux-tdep.c b/gdb/mn10300-linux-tdep.c index bba2643e35..72126e67c3 100644 --- a/gdb/mn10300-linux-tdep.c +++ b/gdb/mn10300-linux-tdep.c @@ -468,49 +468,6 @@ am33_regset_from_core_section (struct gdbarch *gdbarch, am33_collect_gregset_method); } -/* Fetch, and possibly build, an appropriate link_map_offsets structure - for mn10300 linux targets using the struct offsets defined in . - Note, however, that link.h is not actually referred to in this file. - Instead, the relevant structs offsets were obtained from examining - link.h. (We can't refer to link.h from this file because the host - system won't necessarily have it, or if it does, the structs which - it defines will refer to the host system, not the target.) */ - -struct link_map_offsets * -mn10300_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; /* Actual size is 20, but this is all we - need. */ - - lmo.r_map_offset = 4; - lmo.r_map_size = 4; - - lmo.link_map_size = 20; /* Might be larger, but this is 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; -} - /* AM33 Linux osabi has been recognized. Now's our chance to register our corefile handling. */ @@ -520,7 +477,7 @@ am33_linux_init_osabi (struct gdbarch_info gdbinfo, struct gdbarch *gdbarch) set_gdbarch_regset_from_core_section (gdbarch, am33_regset_from_core_section); set_solib_svr4_fetch_link_map_offsets - (gdbarch, mn10300_linux_svr4_fetch_link_map_offsets); + (gdbarch, svr4_ilp32_fetch_link_map_offsets); } void