Commit 704aec581c1683750e313832ba3aa4813d59cbd0

Authored by Xiantao Zhang
Committed by Anthony Liguori
1 parent 49669fc5

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>
Showing 1 changed file with 2 additions and 0 deletions
@@ -4350,11 +4350,13 @@ static void tcg_cpu_exec(void) @@ -4350,11 +4350,13 @@ static void tcg_cpu_exec(void)
4350 } 4350 }
4351 if (cpu_can_run(env)) 4351 if (cpu_can_run(env))
4352 ret = qemu_cpu_exec(env); 4352 ret = qemu_cpu_exec(env);
  4353 +#ifndef CONFIG_GDBSTUB
4353 if (ret == EXCP_DEBUG) { 4354 if (ret == EXCP_DEBUG) {
4354 gdb_set_stop_cpu(env); 4355 gdb_set_stop_cpu(env);
4355 debug_requested = 1; 4356 debug_requested = 1;
4356 break; 4357 break;
4357 } 4358 }
  4359 +#endif
4358 } 4360 }
4359 } 4361 }
4360 4362