* spu-tdep.c (spu_push_dummy_call): Store stack back chain.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 1 Jun 2007 19:31:08 +0000 (19:31 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 1 Jun 2007 19:31:08 +0000 (19:31 +0000)
gdb/ChangeLog
gdb/spu-tdep.c

index 7662eacdc1103ce08a857210220f13d2171c1ae9..55a5b73ad3b2e799c249174bd21997bd490e83a5 100644 (file)
@@ -1,3 +1,7 @@
+2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
+
 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
 
        * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
index 0d82a74243c882436546b4863cefcfe4ae602348..305201a930fb4bf4973387f2765dc945d119b21d 100644 (file)
@@ -1013,6 +1013,10 @@ spu_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
   /* Allocate stack frame header.  */
   sp -= 32;
 
+  /* Store stack back chain.  */
+  regcache_cooked_read (regcache, SPU_RAW_SP_REGNUM, buf);
+  target_write_memory (sp, buf, 16);
+
   /* Finally, update the SP register.  */
   regcache_cooked_write_unsigned (regcache, SPU_SP_REGNUM, sp);