mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Build fix for !CONFIG_GDBSTUB case
Once CONFIG_GDBSTUB not configured, compile will generate error. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
49669fc551
commit
704aec581c
1 changed files with 2 additions and 0 deletions
2
vl.c
2
vl.c
|
@ -4350,11 +4350,13 @@ static void tcg_cpu_exec(void)
|
|||
}
|
||||
if (cpu_can_run(env))
|
||||
ret = qemu_cpu_exec(env);
|
||||
#ifndef CONFIG_GDBSTUB
|
||||
if (ret == EXCP_DEBUG) {
|
||||
gdb_set_stop_cpu(env);
|
||||
debug_requested = 1;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue