aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorJackie Smith Cashion <jsmith@redhat.com>1996-09-16 13:37:02 +0000
committerJackie Smith Cashion <jsmith@redhat.com>1996-09-16 13:37:02 +0000
commitaeb8f981dfb4e06faa527bb106e96ba12c231c60 (patch)
tree3d976148c6c24275a75dc5ac76610dd35381c164 /gdb/remote-mips.c
parentf24b7b69ee85bc69a18926dbcfe4427b7c41356a (diff)
downloadgdb-aeb8f981dfb4e06faa527bb106e96ba12c231c60.zip
gdb-aeb8f981dfb4e06faa527bb106e96ba12c231c60.tar.gz
gdb-aeb8f981dfb4e06faa527bb106e96ba12c231c60.tar.bz2
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.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 5bcd110..657d1ba 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -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));