From: Joel Brobecker Date: Wed, 31 Mar 2004 18:46:00 +0000 (+0000) Subject: * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer. X-Git-Tag: gdb_6_1-2004-04-05-release~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e8f8357753a3d375587711c246c6693f99f4030;p=thirdparty%2Fbinutils-gdb.git * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer. (hppa64_push_dummy_call): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68e54be6134..5ae126eea15 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-29 Daniel Jacobowitz * mips-tdep.c (mips_pdr_data): New. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 549a81127f2..d1bf824d5d8 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -2269,6 +2269,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; } @@ -2393,6 +2396,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, sp + 64); + /* The stack will have 64 bytes of additional space for a frame marker. */ return sp + 64;