2003-06-01 Andrew Cagney <cagney@redhat.com>

* solib-irix.c (extract_mips_address): Inline extract_address,
	replacing it with extract_signed_integer.
	* solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
	(LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
	(first_link_map_member, open_symbol_file_object): Ditto.
	(svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
	* solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
	(LM_NEXT, LM_NAME): Ditto.
This commit is contained in:
Andrew Cagney
2003-06-01 23:00:55 +00:00
parent 1fd4ae2263
commit ae0167b9b5
4 changed files with 56 additions and 33 deletions

View File

@@ -123,16 +123,12 @@ union irix_obj_info
/* MIPS sign extends its 32 bit addresses. We could conceivably use
extract_typed_address here, but to do so, we'd have to construct an
appropriate type. Calling extract_signed_integer or
extract_address seems simpler. */
appropriate type. Calling extract_signed_integer seems simpler. */
static CORE_ADDR
extract_mips_address (void *addr, int len)
{
if (len <= 32)
return extract_signed_integer (addr, len);
else
return extract_address (addr, len);
return extract_signed_integer (addr, len);
}
/* Fetch and return the link map data associated with ADDR. Note that