This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / sim / common / sim-stop.c
index 1a11bd559d73e06b70b3fe65d380e10f1967f768..cde93151ed8ac76749997726293511862e7f4e24 100644 (file)
@@ -19,22 +19,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "sim-main.h"
+#include "sim-assert.h"
 
-#include <signal.h>
-
-
-/* Generic implementation if sim_stop */
+/* Generic implementation of sim_stop.  */
 
 static void
 control_c_simulation (SIM_DESC sd,
                      void *data)
 {
-  sim_engine_halt (sd, NULL, NULL, NULL_CIA, sim_stopped, SIGINT);
+  ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
+  sim_engine_halt (sd, NULL, NULL, NULL_CIA, sim_stopped, SIM_SIGINT);
 }
 
 int
 sim_stop (SIM_DESC sd)
 {
+  ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
   sim_events_schedule_after_signal(sd,
                                   0 /*NOW*/,
                                   control_c_simulation,
This page took 0.022704 seconds and 4 git commands to generate.