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
This commit is contained in:
balrog 2007-06-10 14:07:13 +00:00
parent 7a774c875b
commit 924edcae75
1 changed files with 4 additions and 0 deletions

4
exec.c
View File

@ -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();
}