Commit 924edcae authored by balrog's avatar balrog
Browse files

Flush the debug log when qemu Aborts (patch by Herve Poussineau)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2971 c046a42c-6fe2-441c-8c8c-71466251a162
parent 7a774c87
......@@ -1286,6 +1286,10 @@ void cpu_abort(CPUState *env, const char *fmt, ...)
cpu_dump_state(env, stderr, fprintf, 0);
#endif
va_end(ap);
if (logfile) {
fflush(logfile);
fclose(logfile);
}
abort();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment