aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorXiantao Zhang <xiantao.zhang@intel.com>2008-11-27 17:23:27 +0800
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-01 09:44:11 -0500
commit704aec581c1683750e313832ba3aa4813d59cbd0 (patch)
treeba65404dcfb01928672dc6da85fd48d2f5a882ee /vl.c
parent49669fc551e0ccd2310a9584a9b7343a0bcae477 (diff)
downloadqemu-704aec581c1683750e313832ba3aa4813d59cbd0.zip
qemu-704aec581c1683750e313832ba3aa4813d59cbd0.tar.gz
qemu-704aec581c1683750e313832ba3aa4813d59cbd0.tar.bz2
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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 2d38ded..385b124 100644
--- a/vl.c
+++ b/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
}
}