From c4557624e52a12aaf6633fc017228d449b7bdeb8 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 31 Mar 2004 17:44:09 +0000 Subject: [PATCH] * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer. (hppa64_push_dummy_call): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/hppa-tdep.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f45dc68ec98..924a256c8d8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-04-31 J. Brobecker + + * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer. + (hppa64_push_dummy_call): Likewise. + 2004-03-30 Jim Blandy From Ulrich Weigand: diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index f96a21132d1..432507169bb 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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; } -- 2.30.2