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/valops.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index 8a7f036..7feec53 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1249,12 +1249,7 @@ find_function_addr (value_ptr function, struct type **retval_type) if (TYPE_CODE (ftype) == TYPE_CODE_FUNC || TYPE_CODE (ftype) == TYPE_CODE_METHOD) { -#ifdef CONVERT_FROM_FUNC_PTR_ADDR - /* FIXME: This is a workaround for the unusual function - pointer representation on the RS/6000, see comment - in config/rs6000/tm-rs6000.h */ funaddr = CONVERT_FROM_FUNC_PTR_ADDR (funaddr); -#endif value_type = TYPE_TARGET_TYPE (ftype); } else -- cgit v1.1