From patchwork Thu Jun 1 14:49:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 100935 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp842354qge; Thu, 1 Jun 2017 07:50:54 -0700 (PDT) X-Received: by 10.200.36.251 with SMTP id t56mr2499874qtt.127.1496328654627; Thu, 01 Jun 2017 07:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496328654; cv=none; d=google.com; s=arc-20160816; b=CaDFGSeKrHIA0FkTDbSwXTgENL2OSCi2R/B9WqgU3aB5MXau7zYfLhmOl517YMFvBA WJbKO67W61kNNDAVvEIKy4x5OfhTAcc4i/igPoRQVQ+gRw+LkiS8CeM3dFTYNKLwTjtF J0tI4YhBxOtt9JUub+9RtLutabrs9l8ej/zx75v/F1P+TAI4HO2enIZapaXozGRVJA2p 3iB1dVUdXgdZ7NA11TYO+nfqRVrvbtu6KB3dVRBPuD3KXn+jhy6pEcjw0ynWKLPND3N7 Rr3QNa+dgCDAjyE3/s1fN7rpAAe89F+3yFUCybuKq260f7xlaSpbPWxsP4QgtjYdHvHE hyUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=4HuuWHSPdjc1T0pHmbXSPGoHmu8IgeSD7QXFIM7NDjI=; b=AiizNhBd1X7SQ1UuNPac9LKylvpLu6OUD2rXBW9hpgaY2HS8oKlE67xTx3eIhrziEY XTLKtjLP478W7M+6LDqvWGBcPyVI2z25JmdwguNRxPiXcuJUbzWhRRzhB+ssnapqythL qL++wnIbLPJOQuNcjGXBwzRZRJh90q2ifhi/9JYRCSDRLNdGhVW8YL20DxiLzFvtwuEo SDwdIMwhLH/iHZ0ElweZN2kg8xY9M84QR/Yu9q9eIOuecS0hLpgrjpTHWRDMW2awt/6F nHkejIVg1G4fZlCbltdZ4xG5JHbTTlc4YhsybbrGonVapHgABdt2f7bSyL+rZxGhbZle 1wHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h67si19477358qkb.111.2017.06.01.07.50.54 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 01 Jun 2017 07:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGRR6-0005U6-8G for patch@linaro.org; Thu, 01 Jun 2017 10:50:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGRPM-0004Xq-5H for qemu-devel@nongnu.org; Thu, 01 Jun 2017 10:49:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGRPI-0002UZ-W0 for qemu-devel@nongnu.org; Thu, 01 Jun 2017 10:49:04 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:38368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGRPI-0002Tg-Q9 for qemu-devel@nongnu.org; Thu, 01 Jun 2017 10:49:00 -0400 Received: by mail-wm0-x22a.google.com with SMTP id n195so35523618wmg.1 for ; Thu, 01 Jun 2017 07:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4HuuWHSPdjc1T0pHmbXSPGoHmu8IgeSD7QXFIM7NDjI=; b=RhPtwwbesHWT2dfWcQwWaBZHzGCSyNFg8a7r1pFhLVk1YgZvxOlrakUiZq6vQzd/Pw m0zx/Iv26KH05ssmChgEmdizB4Ap8q5xmZDKunkbQOt+eGvWrBwP8GrSfrAlfxBFCvfm JteFByYOVv3ZhOSULCl47pjqPNbK6Pm2++s+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4HuuWHSPdjc1T0pHmbXSPGoHmu8IgeSD7QXFIM7NDjI=; b=U4TmDe9k/Daz7E7xbximktGQDRtKbZoLNPi4HAJxDYRPc423OsO9o+0d2w2XoIeKCK YFWVf9Q8aRISJpzEnC8sSIoydIz2gdZ1o8oZOm0rNlkaGGJtukQY/QcYh+DyE2r3E3bz cfOyFN9ZVJalFF+NIMTVKOSumxrmg6k1Hv58dviHXseBYkVxAxFiRjU1lueJapXuEVKD YAwXZznPTJyAbJYje8OjCVr9i/cfnKA7unzdP6rRT77SYs1XgMnp0duRIJGhkCCWMe/W IBzztSxZXvsbdW7+m6XAHQwzJqd2TGH+pqHt6f1vfShaDHQWrqqai9SpUOi9oM4HoccY EuEQ== X-Gm-Message-State: AODbwcAJ2e2RW18PnCqELZMrQ6Z5iu5frEgif0SDCzswLmMbt23rWNqK xGFoqSBOA2PDlJbD X-Received: by 10.28.20.198 with SMTP id 189mr8916105wmu.17.1496328537966; Thu, 01 Jun 2017 07:48:57 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n8sm1627306wrn.30.2017.06.01.07.48.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 07:48:57 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 4DB643E0323; Thu, 1 Jun 2017 15:49:15 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: pbonzini@redhat.com, doug16k@gmail.com, imbrenda@linux.vnet.ibm.com Date: Thu, 1 Jun 2017 15:49:11 +0100 Message-Id: <20170601144915.20778-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22a Subject: [Qemu-devel] [PATCH v2 0/4] some gdbstub fixes for debug and vcont X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, This is a follow up v2 of the patches I posted yesterday. There are two new patches. The first is a simple name change to make the purpose of the function clearer. The second new patch now fixes the bug by making the thread-id consistent when reporting it via the gdbstub. It also reduces the size of CPUState by avoiding duplication of information already available in TaskStruct. The original fix is still in the series although its theoretical (but still correct) for my test case which now uses the correct thread-id. Alex Bennée (4): gdbstub: modernise DEBUG_GDB gdbstub: rename cpu_index -> cpu_gdb_index qom/cpu: remove host_tid field gdbstub: don't fail on vCont;C04:0;c packets gdbstub.c | 117 ++++++++++++++++++++++++------------------------- include/exec/gdbstub.h | 9 ---- include/qom/cpu.h | 2 - linux-user/syscall.c | 1 - 4 files changed, 57 insertions(+), 72 deletions(-) -- 2.13.0