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] |
Unfortunately the func_addr that is passed>into push_dummy_call is already the canonicalized function address, >so i cannot do this as part of e.g. find_global_pointer.
For PPC64 I used ABI knowledge to do a code address -> descriptor address reverse lookup. Can you do something similar?
you mean look through a opd section? unfortunately there isn't such a
thing for the 32-bit abi. it's there in hppa64.
for hppa32, the plabel likely resides in the got/plt, and i don't think we can easily find it there.
Anyway, a thing-to-do-one day is to pass the function's ``value'' (descriptor and type) to push-dummy-call (there has been talk of doing this before). Another is to clean up what's passed as the parameter list -> again descriptors.
well, i can already do this, by *not* implementing the conversion function. However, when the actual call is made, we need to do the conversion.
how about adding a new gdbarch method breakpoint_from_func_ptr and potentially not calling convert_from_func_ptr_address() from
call_function_by_hand()? other than ia64, ppc64 and hppa, how many
function-descriptor archs do we have?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |