mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
2003-10-22 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure multi-arch method, add "targ" parameter. (struct target_ops): Declare. * gdbarch.h, gdbarch.c: Re-generate. * Makefile.in (c-valprint.o): Update dependencies. * arch-utils.h: Update copyright. (convert_from_func_ptr_addr_identity): Declare. * arch-utils.c (convert_from_func_ptr_addr_identity): New function. * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update. * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate. * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update. * infcall.c (find_function_addr, call_function_by_hand): Update. * c-valprint.c: Include "target.h". (print_function_pointer_address): Update.
This commit is contained in:
@@ -2054,7 +2054,7 @@ rs6000_create_inferior (int pid)
|
||||
rs6000_set_host_arch_hook (pid);
|
||||
}
|
||||
|
||||
/* Support for CONVERT_FROM_FUNC_PTR_ADDR(ADDR).
|
||||
/* Support for CONVERT_FROM_FUNC_PTR_ADDR (ARCH, ADDR, TARG).
|
||||
|
||||
Usually a function pointer's representation is simply the address
|
||||
of the function. On the RS/6000 however, a function pointer is
|
||||
@@ -2074,7 +2074,9 @@ rs6000_create_inferior (int pid)
|
||||
space and is therefore a special function pointer. */
|
||||
|
||||
static CORE_ADDR
|
||||
rs6000_convert_from_func_ptr_addr (CORE_ADDR addr)
|
||||
rs6000_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
|
||||
CORE_ADDR addr,
|
||||
struct target_ops *targ)
|
||||
{
|
||||
struct obj_section *s;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user