Index: hppa-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/hppa-tdep.c,v retrieving revision 1.136 diff -u -p -r1.136 hppa-tdep.c --- hppa-tdep.c 7 Mar 2004 19:58:27 -0000 1.136 +++ hppa-tdep.c 31 Mar 2004 03:57:30 -0000 @@ -911,6 +911,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; } @@ -1031,6 +1034,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, param_end + 64); /* The stack will have 32 bytes of additional space for a frame marker. */ return param_end + 64;