mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user