From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btZ6J-00016m-AS for qemu-devel@nongnu.org; Mon, 10 Oct 2016 07:50:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btZ6E-0004MC-Vn for qemu-devel@nongnu.org; Mon, 10 Oct 2016 07:50:34 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39673 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btZ6E-0004Ll-Qu for qemu-devel@nongnu.org; Mon, 10 Oct 2016 07:50:30 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9ABhhOo011975 for ; Mon, 10 Oct 2016 07:50:29 -0400 Received: from e06smtp08.uk.ibm.com (e06smtp08.uk.ibm.com [195.75.94.104]) by mx0b-001b2d01.pphosted.com with ESMTP id 26062evd8u-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 10 Oct 2016 07:50:29 -0400 Received: from localhost by e06smtp08.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 10 Oct 2016 12:50:27 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id B7E4D2190061 for ; Mon, 10 Oct 2016 12:49:42 +0100 (BST) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9ABoOlq10355028 for ; Mon, 10 Oct 2016 11:50:24 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u9ABoOxQ006401 for ; Mon, 10 Oct 2016 05:50:24 -0600 Received: from p-imbrenda.boeblingen.de.ibm.com (dyn-9-152-224-35.boeblingen.de.ibm.com [9.152.224.35]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u9ABoOCf006371 (version=TLSv1/SSLv3 cipher=AES256-SHA256 bits=256 verify=NO) for ; Mon, 10 Oct 2016 05:50:24 -0600 From: Claudio Imbrenda Date: Mon, 10 Oct 2016 13:50:22 +0200 Message-Id: <1476100224-19760-1-git-send-email-imbrenda@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v1 0/2] Qemu: gdbstub: fix vCont and single-step List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This small patchset fixes two bugs that affect the gdb stub. The first one is the incorrect behaviour of the vCont command. Previously, continuing or stepping a single thread (CPU) caused all other CPUs to be started too, whereas the GDB specification clearly states that without a default action all threads not explicitly mentioned in the command should stay stopped. So if the Qemu gdbstub receives a vCont;c:1 packet, no other CPU should be restarted except the first, and when a vCont;s:1 is received, the first CPU should be stepped without restarting the others. With this patchset Qemu now behaves as expected. See here for reference material about the packets: https://sourceware.org/gdb/onlinedocs/gdb/Packets.html The second bug causes single-step mode not to work any longer, it was introduced with commit e0eeb4a21a3ca4b296220ce4449d8acef9de9049 . This bug causes all s (single-step) commands to behave like c (continue) commands. Claudio Imbrenda (2): gdbstub: Fix single-step gdbstub: Fix vCont behaviour gdbstub.c | 189 +++++++++++++++++++++++++++++++++++++++++++++++++------------- kvm-all.c | 1 + 2 files changed, 151 insertions(+), 39 deletions(-) -- 1.9.1