aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nto-tdep.c')
-rw-r--r--gdb/nto-tdep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index 2b29292..4f9281e 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -264,9 +264,8 @@ LM_ADDR (struct so_list *so)
{
struct link_map_offsets *lmo = nto_fetch_link_map_offsets ();
- return (CORE_ADDR) extract_signed_integer (so->lm_info->lm +
- lmo->l_addr_offset,
- lmo->l_addr_size);
+ return extract_typed_address (so->lm_info->lm + lmo->l_addr_offset,
+ builtin_type_void_data_ptr);
}
static CORE_ADDR