Commit 430c7ec7 authored by malc's avatar malc
Browse files

Avoid SIGSEGV when dumping cpu state without enabled logging



Signed-off-by: default avatarmalc <av1474@comtv.ru>
parent f64ab228
......@@ -1053,6 +1053,7 @@ do { \
fprintf(stderr, fmt , ## __VA_ARGS__); \
cpu_dump_state(env, stderr, fprintf, 0); \
qemu_log(fmt, ## __VA_ARGS__); \
if (logfile) \
log_cpu_state(env, 0); \
} while (0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment