diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 2000-10-26 07:41:25 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 2000-10-26 07:41:25 +0000 |
commit | f517ea4ebb7d0c85a5c7850757b2f1d6716e2dcf (patch) | |
tree | 7a72b4773df10c1d31950a0509650a314b8e6816 /gdb/valops.c | |
parent | ba181e2f16dcf24ec7336b1f358f54fce72af42b (diff) | |
download | binutils-f517ea4ebb7d0c85a5c7850757b2f1d6716e2dcf.zip binutils-f517ea4ebb7d0c85a5c7850757b2f1d6716e2dcf.tar.gz binutils-f517ea4ebb7d0c85a5c7850757b2f1d6716e2dcf.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 5 |
1 files changed, 0 insertions, 5 deletions
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 |