From: Frank Ch. Eigler Date: Wed, 12 Aug 1998 13:50:45 +0000 (+0000) Subject: * Handle the possibility that some simulator commands may modify register X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=902459f256a3c49ce2b1b3a778d356042ed3b03f;p=deliverable%2Fbinutils-gdb.git * 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 * remote-sim.c (simulator_command): Reset register cache after simulator command. --- diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 452c631fe4..53d0155624 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 */