projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64ab22
)
Avoid SIGSEGV when dumping cpu state without enabled logging
author
malc
<av1474@comtv.ru>
Wed, 15 Jul 2009 16:52:47 +0000
(20:52 +0400)
committer
malc
<av1474@comtv.ru>
Wed, 15 Jul 2009 17:03:34 +0000
(21:03 +0400)
Signed-off-by: malc <av1474@comtv.ru>
linux-user/main.c
patch
|
blob
|
history
diff --git
a/linux-user/main.c
b/linux-user/main.c
index e331d658fbf67075bbec4b8a0a3e25b165ea8ae2..1e95f02124a48baf398910616ea1ada5fa699536 100644
(file)
--- a/
linux-user/main.c
+++ b/
linux-user/main.c
@@
-1053,7
+1053,8
@@
do { \
fprintf(stderr, fmt , ## __VA_ARGS__); \
cpu_dump_state(env, stderr, fprintf, 0); \
qemu_log(fmt, ## __VA_ARGS__); \
- log_cpu_state(env, 0); \
+ if (logfile) \
+ log_cpu_state(env, 0); \
} while (0)
void cpu_loop(CPUPPCState *env)