]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 31 Mar 2004 18:46:00 +0000 (18:46 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 31 Mar 2004 18:46:00 +0000 (18:46 +0000)
        (hppa64_push_dummy_call): Likewise.

gdb/ChangeLog
gdb/hppa-tdep.c

index 68e54be6134dbb1284d54f7901f42b9e39de2d11..5ae126eea15cc9d54d8217dbd5f62daed80d7377 100644 (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-29  Daniel Jacobowitz  <drow@mvista.com>
 
        * mips-tdep.c (mips_pdr_data): New.
index 549a81127f2c1055f4ff16ada0e0a0b109230e0d..d1bf824d5d88de6e7fbf925692ab3be4a780ef6d 100644 (file)
@@ -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;