[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 430c7ec] Avoid SIGSEGV when dumping cpu state wit
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 430c7ec] Avoid SIGSEGV when dumping cpu state without enabledlogging |
Date: |
Wed, 15 Jul 2009 17:06:38 -0000 |
From: malc <address@hidden>
Signed-off-by: malc <address@hidden>
diff --git a/linux-user/main.c b/linux-user/main.c
index e331d65..1e95f02 100644
--- 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 430c7ec] Avoid SIGSEGV when dumping cpu state without enabledlogging,
Anthony Liguori <=