aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:31:00 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:31:00 +0000
commitb6da22b0d121a4fd1e15572ed672e0e3f7b756f3 (patch)
treee000b1cbf93515906506af4d0a41bede8ffb617b /gdb/nto-tdep.c
parentff7da4687619750782084e90d4183874757146e1 (diff)
downloadgdb-b6da22b0d121a4fd1e15572ed672e0e3f7b756f3.zip
gdb-b6da22b0d121a4fd1e15572ed672e0e3f7b756f3.tar.gz
gdb-b6da22b0d121a4fd1e15572ed672e0e3f7b756f3.tar.bz2
* solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
target_gdbarch instead of builtin_type_void_data_ptr. (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base, solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap, open_symbol_file_object): Likewise. * nto-tdep.c (LM_ADDR): Likewise.
Diffstat (limited to 'gdb/nto-tdep.c')
-rw-r--r--gdb/nto-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index 38fb03d..f519a6e 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -280,10 +280,10 @@ LM_ADDR (struct so_list *so)
if (so->lm_info->l_addr == (CORE_ADDR)-1)
{
struct link_map_offsets *lmo = nto_fetch_link_map_offsets ();
+ struct type *ptr_type = builtin_type (target_gdbarch)->builtin_data_ptr;
so->lm_info->l_addr =
- extract_typed_address (so->lm_info->lm + lmo->l_addr_offset,
- builtin_type_void_data_ptr);
+ extract_typed_address (so->lm_info->lm + lmo->l_addr_offset, ptr_type);
}
return so->lm_info->l_addr;
}