Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>

* remote-mips.c (mips_load): Ensure that the PC is explicitly
 	loaded after a load to a CAIRO PMON system.
This commit is contained in:
Jackie Smith Cashion 1996-09-16 13:37:02 +00:00
parent f24b7b69ee
commit aeb8f981df
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
* remote-mips.c (mips_load): Ensure that the PC is explicitly
loaded after a load to a CAIRO PMON system.
Fri Sep 13 12:02:39 1996 Fred Fish <fnf@cygnus.com>
* Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.

View File

@ -2901,8 +2901,14 @@ mips_load (file, from_tty)
mips_initialize ();
/* Finally, make the PC point at the start address */
/* Finally, make the PC point at the start address */
if (mips_monitor == MON_CAIRO)
{
/* Work around problem where CAIRO monitor does not update the
PC after a load. The following ensures that the write_pc()
WILL update the PC value: */
register_valid[PC_REGNUM] = 0;
}
if (exec_bfd)
write_pc (bfd_get_start_address (exec_bfd));