* remote-mips.c (mips_load): Ensure that PC gets updated

after a load on LSI target.
This commit is contained in:
Mark Alexander 1997-04-15 00:09:24 +00:00
parent 234c409626
commit 8e7c36868b
1 changed files with 4 additions and 4 deletions

View File

@ -3195,11 +3195,11 @@ mips_load (file, from_tty)
mips_initialize (); mips_initialize ();
/* Finally, make the PC point at the start address */ /* Finally, make the PC point at the start address */
if (mips_monitor == MON_DDB) if (mips_monitor != MON_IDT)
{ {
/* Work around problem where DDB monitor does not update the /* Work around problem where PMON monitor updates the PC after a load
PC after a load. The following ensures that the write_pc() to a different value than GDB thinks it has. The following ensures
WILL update the PC value: */ that the write_pc() WILL update the PC value: */
register_valid[PC_REGNUM] = 0; register_valid[PC_REGNUM] = 0;
} }
if (exec_bfd) if (exec_bfd)