Received: from eggs.gnu.org ([2001:4830:134:3::10]:35689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzjJa-0008Mi-BV for qemu-devel@nongnu.org; Thu, 27 Oct 2016 07:57:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzjJV-0002n9-G4 for qemu-devel@nongnu.org; Thu, 27 Oct 2016 07:57:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36736) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzjJV-0002dY-AA for qemu-devel@nongnu.org; Thu, 27 Oct 2016 07:57:41 -0400 References: <1476445983-16661-1-git-send-email-imbrenda@linux.vnet.ibm.com> <1476445983-16661-3-git-send-email-imbrenda@linux.vnet.ibm.com> From: Pedro Alves Message-ID: <6ff5fd4e-d371-f204-371a-07edcb545e93@redhat.com> Date: Thu, 27 Oct 2016 12:40:58 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 2/2] gdbstub: Fix vCont behaviour List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger , Claudio Imbrenda , qemu-devel@nongnu.org Cc: Peter Maydell , Paolo Bonzini On 10/26/2016 08:56 AM, Christian Borntraeger wrote: > On 10/14/2016 01:53 PM, Claudio Imbrenda wrote: >> When GDB issues a "vCont", QEMU was not handling it correctly when >> multiple VCPUs are active. >> For vCont, for each thread (VCPU), it can be specified whether to >> single step, continue or stop that thread. The default is to stop a >> thread. Or more accurately, to leave it stopped as it was. >> However, when (for example) "vCont;s:2" is issued, all VCPUs continue >> to run, although all but VCPU nr 2 are to be stopped. > > Any gdbstub expert in the house? I'm not a qemu gdbstub expert, but FYI, seeing this reminded me to push to gdb's master a (getting old) gdb patch that clarifies how vCont actions should be interpreted: https://sourceware.org/ml/gdb-patches/2016-02/msg00493.html It's already live at: https://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html (The "already running" case is for non-stop mode, which qemu probably doesn't support.) Thanks, Pedro Alves