* gdbarch.sh (push_dummy_code): Add REGCACHE argument.

* gdbarch.c, gdbarch.h: Regenerate.
	* infcall.c (generic_push_dummy_code): Add REGCACHE argument.
	(push_dummy_code): Likewise.  Pass it to callee.
	(call_function_by_hand): Pass current regcache to push_dummy_code.

	* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
	argument.  Use it instead of current_regcache.

	* cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
	* sparc-tdep.c (sparc32_push_dummy_code): Likewise.
This commit is contained in:
Ulrich Weigand
2007-06-15 22:42:22 +00:00
parent 60ade65d49
commit e4fd649ae2
8 changed files with 42 additions and 21 deletions

View File

@@ -383,7 +383,8 @@ sparc32_push_dummy_code (struct gdbarch *gdbarch, CORE_ADDR sp,
CORE_ADDR funcaddr, int using_gcc,
struct value **args, int nargs,
struct type *value_type,
CORE_ADDR *real_pc, CORE_ADDR *bp_addr)
CORE_ADDR *real_pc, CORE_ADDR *bp_addr,
struct regcache *regcache)
{
*bp_addr = sp - 4;
*real_pc = funcaddr;