mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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:
parent
7a774c875b
commit
924edcae75
1 changed files with 4 additions and 0 deletions
4
exec.c
4
exec.c
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue