From 902459f256a3c49ce2b1b3a778d356042ed3b03f Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 12 Aug 1998 13:50:45 +0000 Subject: [PATCH] * 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. --- gdb/remote-sim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 452c631fe42..53d01556249 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 */