[hppa-hpux] Fix passing function pointers into dummy call
hppa is one of the platforms that uses function descriptors. When
calling an inferior function from gdb and passing a function pointer, we
need to make sure that we are passing the function descriptor address
instead of the function entry point. Fix this case for hppa64-*
This fixes all the interesting cases in callfuncs.exp, including two
tests that were marked kfail.
note that for hppa-*, we do not need to worry about this because the
compiler puts in additional code to handle this at runtime.
I'll check this in over the weekend if there are no comments. (at that
point i'll remove the kfails as well)
* hppa-tdep.c (hppa64_convert_code_addr_to_fptr): New function.
(hppa64_push_dummy_call): If passing a function pointer, ensure
it is a function description address instead of the function entry