aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1998-08-12 13:50:45 +0000
committerFrank Ch. Eigler <fche@redhat.com>1998-08-12 13:50:45 +0000
commit902459f256a3c49ce2b1b3a778d356042ed3b03f (patch)
tree5e76da97f2ab6cd9b9e57a60056ae2a50ab15655 /gdb
parent3d759c53c925566cd94b579aa4751191d40ae4ab (diff)
downloadgdb-902459f256a3c49ce2b1b3a778d356042ed3b03f.zip
gdb-902459f256a3c49ce2b1b3a778d356042ed3b03f.tar.gz
gdb-902459f256a3c49ce2b1b3a778d356042ed3b03f.tar.bz2
* Handle the possibility that some simulator commands may modify register
state behind gdb's back. Wed Aug 12 16:30:01 1998 Frank Ch. Eigler <fche@cygnus.com> * remote-sim.c (simulator_command): Reset register cache after simulator command.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/remote-sim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 452c631..53d0155 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -911,6 +911,10 @@ simulator_command (args, from_tty)
}
sim_do_command (gdbsim_desc, args);
+
+ /* Invalidate the register cache, in case the simulator command does
+ something funny. */
+ registers_changed ();
}
/* Define the target subroutine names */