2000-08-15 Dave Brolley <brolley@redhat.com>
[deliverable/binutils-gdb.git] / sim / common / sim-abort.c
index 0a441e42a38c282c0b946e12921eb7e1377be294..088bf201a6854378f557bc719066a2ec3364a981 100644 (file)
@@ -18,11 +18,10 @@ You should have received a copy of the GNU General Public License along
 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 <signal.h>
 #include <stdio.h>
 
+#include "sim-main.h"
+#include "sim-assert.h"
 
 /* This is an implementation of sim_engine_abort that does not use
    longjmp, instead it just calls sim_io_error.  sim_io_error will
@@ -40,6 +39,7 @@ sim_engine_abort (SIM_DESC sd,
                  const char *fmt,
                  ...)
 {
+  ASSERT (sd == NULL || STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);
   if (sd != NULL)
     {
       va_list ap;
This page took 0.022569 seconds and 4 git commands to generate.