projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a774c8
)
Flush the debug log when qemu Aborts (patch by Herve Poussineau)
author
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 10 Jun 2007 14:07:13 +0000
(14:07 +0000)
committer
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 10 Jun 2007 14:07:13 +0000
(14:07 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2971
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index 0e415a5e9bcddbea73b4a8b2bd49b9d01b063f08..c782e5b6b28e6bcd745b92273f709a3780c9615a 100644
(file)
--- a/
exec.c
+++ b/
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();
}