* solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Apr 2007 08:47:53 +0000 (08:47 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 10 Apr 2007 08:47:53 +0000 (08:47 +0000)
commitcfaefc65a409d1fdc5cdaee3ce430e735aba6362
tree85789949b5ac415310c80f5b81aae65bf3e412d7
parente701ca866ae6842699d81e7e201f2d01e35ba10d
* solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
l_ld_size, l_next_size, l_prev_size, l_name_size.

* solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
to extract addresses from link map.
(LM_DYNAMIC_FROM_LINK_MAP): Likewise.
(LM_NEXT): Likewise.
(LM_NAME): Likewise.
(IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
(elf_locate_base): Likewise.
(open_symbol_file_object): Likewise.
(svr4_fetch_objfile_link_map): Likewise.
(SOLIB_EXTRACT_ADDRESS): Remove unused macro.
(HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
l_ld_size.
        (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
(svr4_lp64_fetch_link_map_offsets): Likewise.

* solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
removed members.  Set l_ld_offset to -1 if not present.
gdb/ChangeLog
gdb/solib-legacy.c
gdb/solib-svr4.c
gdb/solib-svr4.h