projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29f640e
)
make cpu_abort dump cpu state in logfile, which is useful for debugging.
author
j_mayer
<j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 29 Sep 2007 12:18:20 +0000
(12:18 +0000)
committer
j_mayer
<j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 29 Sep 2007 12:18:20 +0000
(12:18 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3260
c046a42c
-6fe2-441c-8c8c-
71466251a162
exec.c
patch
|
blob
|
history
diff --git
a/exec.c
b/exec.c
index 7d8ae3fd988d66bdf48b90b0e9b585052ad740ef..0c0b6542eb067a6242d3e89b6d951529372b5ab2 100644
(file)
--- a/
exec.c
+++ b/
exec.c
@@
-1301,11
+1301,19
@@
void cpu_abort(CPUState *env, const char *fmt, ...)
#else
cpu_dump_state(env, stderr, fprintf, 0);
#endif
- va_end(ap);
if (logfile) {
+ fprintf(logfile, "qemu: fatal: ");
+ vfprintf(logfile, fmt, ap);
+ fprintf(logfile, "\n");
+#ifdef TARGET_I386
+ cpu_dump_state(env, logfile, fprintf, X86_DUMP_FPU | X86_DUMP_CCOP);
+#else
+ cpu_dump_state(env, logfile, fprintf, 0);
+#endif
fflush(logfile);
fclose(logfile);
}
+ va_end(ap);
abort();
}