From: Jan Kiszka Date: Mon, 12 Nov 2012 14:04:35 +0000 (+0100) Subject: kvm: Actually remove software breakpoints from list on cleanup X-Git-Tag: v1.3.0-rc0~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78021d6d8dc50ed4d67442c3ca11eab78220e9ef;p=thirdparty%2Fqemu.git kvm: Actually remove software breakpoints from list on cleanup 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 Signed-off-by: Marcelo Tosatti --- diff --git a/kvm-all.c b/kvm-all.c index b6d04835765..3bc3347d071 100644 --- 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();