mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 23:49:36 +00:00
Avoid SIGSEGV when dumping cpu state without enabled logging
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user