void print_trace(void)
{
#ifdef CONFIG_STACKTRACE
- FILE *file = fdopen(model_out, "w");
- print_stacktrace(file);
- fclose(file);
+ print_stacktrace(model_out);
#else
void *array[MAX_TRACE_LEN];
char **strings;
#endif /* CONFIG_STACKTRACE */
}
-void model_print_summary(void)
-{
- model->print_summary();
-}
-
void assert_hook(void)
{
model_print("Add breakpoint to line %u in file %s.\n", __LINE__, __FILE__);
{
char buf[200];
+ model_print("---- BEGIN PROGRAM OUTPUT ----\n");
+
/* Gather all program output */
fflush(stdout);
ret -= res;
}
}
+
+ model_print("---- END PROGRAM OUTPUT ----\n");
}
#endif /* ! CONFIG_DEBUG */