Index: hppa-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/hppa-tdep.c,v retrieving revision 1.129.2.1 diff -u -p -r1.129.2.1 hppa-tdep.c --- hppa-tdep.c 10 Mar 2004 20:06:08 -0000 1.129.2.1 +++ hppa-tdep.c 31 Mar 2004 18:41:17 -0000 @@ -2269,6 +2269,9 @@ hppa32_push_dummy_call (struct gdbarch * /* Set the return address. */ regcache_cooked_write_unsigned (regcache, RP_REGNUM, bp_addr); + /* Update the Stack Pointer. */ + regcache_cooked_write_unsigned (regcache, SP_REGNUM, param_end + 32); + /* The stack will have 32 bytes of additional space for a frame marker. */ return param_end + 32; } @@ -2392,6 +2395,9 @@ hppa64_push_dummy_call (struct gdbarch * /* Set the return address. */ regcache_cooked_write_unsigned (regcache, RP_REGNUM, bp_addr); + + /* Update the Stack Pointer. */ + regcache_cooked_write_unsigned (regcache, SP_REGNUM, sp + 64); /* The stack will have 64 bytes of additional space for a frame marker. */