*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / mn10300-tdep.c
index 47844d1a6d2a2d1dcfc1764ab0d553a261dc2ec7..bc5e8d8d1550175fe08b301a07949296687fca36 100644 (file)
@@ -1055,6 +1055,11 @@ mn10300_push_dummy_call (struct gdbarch *gdbarch,
   /* Push the return address that contains the magic breakpoint.  */
   sp -= 4;
   write_memory_unsigned_integer (sp, push_size, bp_addr);
+
+  /* The CPU also writes the return address always into the
+     MDR register on "call".  */
+  regcache_cooked_write_unsigned (regcache, E_MDR_REGNUM, bp_addr);
+
   /* Update $sp.  */
   regcache_cooked_write_unsigned (regcache, E_SP_REGNUM, sp);
   return sp;
This page took 0.023116 seconds and 4 git commands to generate.