Commit 924edcae75a8b06c88896d998c9cb6c3160b7a55
1 parent
7a774c87
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
Showing
1 changed file
with
4 additions
and
0 deletions
exec.c
... | ... | @@ -1286,6 +1286,10 @@ void cpu_abort(CPUState *env, const char *fmt, ...) |
1286 | 1286 | cpu_dump_state(env, stderr, fprintf, 0); |
1287 | 1287 | #endif |
1288 | 1288 | va_end(ap); |
1289 | + if (logfile) { | |
1290 | + fflush(logfile); | |
1291 | + fclose(logfile); | |
1292 | + } | |
1289 | 1293 | abort(); |
1290 | 1294 | } |
1291 | 1295 | ... | ... |