[rfc/rfa] Dummy calls for hppa-hpux

Randolph Chung randolph@tausq.org
Wed Dec 15 22:46:00 GMT 2004

> hppa64-hp-hpux11.11
> # of expected passes            35
> # of unexpected failures        64
> # of known failures             3
> the large number of failures in hppa64-hp-hpux11.11 are due to a
> cascading failure early on in the test (we have some problems passing
> function pointers into functions); however, since basic infcalls work
> now, i suspect a much larger portion of gdb testcases will benefit.

i've looked into these failures a bit further; hppa64 requires indirect
function calls to be made via function descriptors (on hppa32, it can be
made via either a function descriptor or a "straight" function pointer).
when doing a call like "p t_func_values (func_val1, add)" where
"func_val1" is a function pointer variable, and "add" is a local
function, gdb seems to be passing a function descriptor value for
"func_val1", but a regular pointer for "add". When t_func_values tries
to call the corresponding functions, it fails because it tries to
dereference the function pointer as a function descriptor.

I haven't been able to determine where and how gdb resolves the value of
"add" to pass to call_functions_by_hand (). any hints would be

btw, for this hpux dummy calls patch, if i don't get any other comments
i'll check it in tomorrow. :)

Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports

More information about the Gdb-patches mailing list