mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
Avoid SIGSEGV when dumping cpu state without enabled logging
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
f64ab228b8
commit
430c7ec700
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue