Print Aborting before aborting, bug819

This commit is contained in:
Wilson Snyder 2014-09-05 21:40:04 -04:00
parent 87b9cb49ad
commit f8208fa961

View File

@ -74,6 +74,9 @@ void vl_fatal (const char* filename, int linenum, const char* hier, const char*
Verilated::gotFinish(true);
VL_PRINTF("%%Error: %s:%d: %s\n", filename, linenum, msg);
Verilated::flushCall();
VL_PRINTF("Aborting...\n");
Verilated::flushCall(); // Second flush in case VL_PRINTF does something needing a flush
abort();
}
#endif