[hppa-hpux] Fix passing function pointers into dummy call
Randolph Chung
randolph@tausq.org
Fri Nov 18 16:20:00 GMT 2005
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)
randolph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: call.diff
Type: text/x-patch
Size: 3081 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20051118/29ad2e44/attachment.bin>
More information about the Gdb-patches
mailing list