]> git.proxmox.com Git - qemu.git/blobdiff - cpu-exec.c
Use sys-queue.h for break/watchpoint managment (Jan Kiszka)
[qemu.git] / cpu-exec.c
index 05deafbdd2c53843a76f7139a047e2986067a2f0..a3d672511717926799d77a5b06de35c866df540c 100644 (file)
@@ -198,7 +198,7 @@ static void cpu_handle_debug_exception(CPUState *env)
     CPUWatchpoint *wp;
 
     if (!env->watchpoint_hit)
-        for (wp = env->watchpoints; wp != NULL; wp = wp->next)
+        TAILQ_FOREACH(wp, &env->watchpoints, entry)
             wp->flags &= ~BP_WATCHPOINT_HIT;
 
     if (debug_excp_handler)