Rework how we present non-SC traces...previous presentation didn't make reasons clear.
[cdsspec-compiler.git] / common.cc
index 338058d9f3a8b990278605fe0b6c6c1c38e0d082..66b563a8ba6223a32a2c7d08067406fec0914c4b 100644 (file)
--- a/common.cc
+++ b/common.cc
@@ -22,9 +22,7 @@ int model_out = STDOUT_FILENO;
 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;
@@ -42,11 +40,6 @@ void print_trace(void)
 #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__);