* main.c: Include "defs.h", "bfd.h", "callback.h" and "remote-sim.h".
[deliverable/binutils-gdb.git] / sim / ppc / main.c
index a2948e0a6b0c7dd561c8846f1b385fab8ddcb746..31444546afbd826c988f9e9bb4f82fde462e0795 100644 (file)
 #include "device.h" /* FIXME: psim should provide the interface */
 #include "events.h" /* FIXME: psim should provide the interface */
 
+#include "bfd.h"
+#include "callback.h"
+#include "remote-sim.h"
+
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -222,6 +226,22 @@ sim_io_flush_stdoutput(void)
   }
 }
 
+void
+sim_io_error (SIM_DESC sd, const char *msg, ...)
+{
+  va_list ap;
+  va_start(ap, msg);
+  vprintf(msg, ap);
+  printf("\n");
+  va_end(ap);
+
+  /* any final clean up */
+  if (ppc_trace[trace_print_info] && simulation != NULL)
+    psim_print_info (simulation, ppc_trace[trace_print_info]);
+
+  exit (1);
+}
+
 
 void *
 zalloc(long size)
This page took 0.024847 seconds and 4 git commands to generate.