* Handle the possibility that some simulator commands may modify register
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 12 Aug 1998 13:50:45 +0000 (13:50 +0000)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 12 Aug 1998 13:50:45 +0000 (13:50 +0000)
  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.

gdb/remote-sim.c

index 452c631fe42468973617d5a669394877bc0b0952..53d015562492dde62fcfd2c12b0eb70085ed1357 100644 (file)
@@ -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 */
This page took 0.025148 seconds and 4 git commands to generate.