Hi, this patch adds gdbarch parameter to find_function_addr from infcall.c and all its callers. Tested by gdb_mbuild and running testsuite on x86. Ok to commit? ChangeLog: * infcall.c (call_function_by_hand): Use get_frame_arch to get at the current architecture by frame_info. (find_function_addr): Add gdbarch parameter. Replace current_gdbarch by gdbarch. * infcall.h (find_function_addr): Add gdbarch parameter. * rs6000-tdep.c (rs6000_push_dummy_call): Add gdbarch to find_function_addr call. * valops.c (value_ind): Likewise. * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise. * mips-tdep.c (mips_eabi_push_dummy_call) (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call) (mips_o64_push_dummy_call): Likewise. * mep-tdep.c (mep_push_dummy_call): Likewise. * frv-tdep.c (frv_push_dummy_call): Likewise. * ia64-tdep.c (ia64_push_dummy_call): Likewise. * eval.c (evaluate_subexp_standard): Likewise. * alpha-tdep.c (alpha_push_dummy_call): Likewise. -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com