* hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.

(hppa64_push_dummy_call): Likewise.
This commit is contained in:
Joel Brobecker 2004-03-31 17:44:09 +00:00
parent 8375c36b6a
commit c4557624e5
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-04-31 J. Brobecker <brobecker@gnat.com>
* hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
(hppa64_push_dummy_call): Likewise.
2004-03-30 Jim Blandy <jimb@redhat.com>
From Ulrich Weigand:

View File

@ -911,6 +911,9 @@ hppa32_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
/* 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;
}
@ -1032,6 +1035,9 @@ hppa64_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
/* 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;
}