From aeb8f981dfb4e06faa527bb106e96ba12c231c60 Mon Sep 17 00:00:00 2001 From: Jackie Smith Cashion Date: Mon, 16 Sep 1996 13:37:02 +0000 Subject: [PATCH] Mon Sep 16 14:32:58 1996 James G. Smith * remote-mips.c (mips_load): Ensure that the PC is explicitly loaded after a load to a CAIRO PMON system. --- gdb/ChangeLog | 5 +++++ gdb/remote-mips.c | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5c547d33a5d..4c697fd7f16 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 16 14:32:58 1996 James G. Smith + + * 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 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list. diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 5bcd1104d06..657d1ba0e4e 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)); -- 2.30.2