]> git.proxmox.com Git - qemu.git/commitdiff
kvm: Actually remove software breakpoints from list on cleanup
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 12 Nov 2012 14:04:35 +0000 (15:04 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 14 Nov 2012 22:15:38 +0000 (20:15 -0200)
So far we only removed them from the guest, leaving its states in the
list. This made it impossible for gdb to re-enable breakpoints on the
same address after re-attaching.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
kvm-all.c

index b6d04835765638f4457c98a1b83e2a8dc69aa848..3bc3347d07192b5c2a50c16ec987de7d72107fc2 100644 (file)
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1905,6 +1905,8 @@ void kvm_remove_all_breakpoints(CPUArchState *current_env)
                 }
             }
         }
+        QTAILQ_REMOVE(&s->kvm_sw_breakpoints, bp, entry);
+        g_free(bp);
     }
     kvm_arch_remove_all_hw_breakpoints();