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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)