From f517ea4ebb7d0c85a5c7850757b2f1d6716e2dcf Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Thu, 26 Oct 2000 07:41:25 +0000 Subject: * arch-utils.c, arch-utils.h (default_convert_from_func_ptr_addr): New function. * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Add. * gdbarch.c, gdbarch.h: Regenerate. * valops.c (find_function_addr): Use CONVERT_FROM_FUNC_PTR_ADDR unconditionally. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Delete definition. * config/powerpc/tm-linux.h (CONVERT_FROM_FUNC_PTR_ADDR): Remove undef. * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Fix comment. (rs6000_gdbarch_init): Register rs6000_convert_from_func_ptr_addr if not ELFOSABI_LINUX. --- gdb/arch-utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/arch-utils.c') diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 02eeaea..d58eb45 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -226,6 +226,13 @@ default_register_sim_regno (int num) return num; } + +CORE_ADDR +default_convert_from_func_ptr_addr (CORE_ADDR addr) +{ + return addr; +} + /* Functions to manipulate the endianness of the target. */ #ifdef TARGET_BYTE_ORDER_SELECTABLE -- cgit v1.1