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:
Xiantao Zhang 2008-11-27 17:23:27 +08:00 committed by Anthony Liguori
parent 49669fc551
commit 704aec581c

2
vl.c
View file

@ -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
}
}