* mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint

address to MDR register.
This commit is contained in:
Corinna Vinschen 2006-03-02 09:31:23 +00:00
parent 711de32caa
commit a64ae7e064
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-03-02 Corinna Vinschen <vinschen@redhat.com>
* mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
address to MDR register.
2006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
* gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive

View 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;