This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc/rfa] Dummy calls for hppa-hpux


> 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
appreciated.

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

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]