diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-24 20:24:06 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-24 20:24:06 +0000 |
commit | b6591e8b14ec22b0fbd707b14af4a09bf310c5ae (patch) | |
tree | 2429e713002ef114f5e1327106cada67493db974 /gdb/ppc-linux-tdep.c | |
parent | ae7dc4d82ba293db9a4e945db7c7213f88731f37 (diff) | |
download | fsf-binutils-gdb-b6591e8b14ec22b0fbd707b14af4a09bf310c5ae.zip fsf-binutils-gdb-b6591e8b14ec22b0fbd707b14af4a09bf310c5ae.tar.gz fsf-binutils-gdb-b6591e8b14ec22b0fbd707b14af4a09bf310c5ae.tar.bz2 |
2003-10-24 Andrew Cagney <cagney@redhat.com>
* target.c: Include "gdbcore.h".
(get_target_memory, get_target_memory_unsigned): New functions.
* target.h (get_target_memory, get_target_memory_unsigned): Declare.
* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
Use get_target_memory_unsigned.
* Makefile.in (target.o): Update dependencies.
Diffstat (limited to 'gdb/ppc-linux-tdep.c')
-rw-r--r-- | gdb/ppc-linux-tdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 4bb8326..6270292 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -936,13 +936,11 @@ ppc64_linux_convert_from_func_ptr_addr (struct gdbarch *gdbarch, CORE_ADDR addr, struct target_ops *targ) { - struct obj_section *s; - - s = find_pc_section (addr); + struct section_table *s = target_section_by_addr (targ, addr); /* Check if ADDR points to a function descriptor. */ if (s && strcmp (s->the_bfd_section->name, ".opd") == 0) - return read_memory_unsigned_integer (addr, 8); + return get_target_memory_unsigned (targ, addr, 8); return addr; } |