From nobody Mon Feb 9 23:03:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; t=1764081187; cv=none; d=zohomail.com; s=zohoarc; b=ZFrmLVe3Pf31uinjhCWdvneHQL6j7ZWtdOCAY6+50f2R01cwoZSgulftzIZiiKgtAemJQc9tBF3tp25QUhIWKAjjjitV3xTqUwdMLxNDvSoU+yYDG5At8oQev2mPqfA+wcadMVh2iASTwKgUUqwystA89CgDP+bEnQbgGAMsWeI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764081187; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yu8rxNLiMjUJ+cDvQqRD4uD4vrNkGyw0BtvapPeffJg=; b=K/hon/Su1Mt4pDuguhFnIN9fuIUO/yi4+Gs67GI/AvA40jUtSu7HqniYNuifVLBm5w2GvYTstvFkzkZ+NTgt40HxAdZ4zlzrXhoEFweTJ6dO1wnDANyKIW8Jl1bCSJRTD6ghIj4x1O5yy9IMslboGGlCT6BL4TThiwS0lWp2kQE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1764081187223180.96923978708196; Tue, 25 Nov 2025 06:33:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vNtvz-0007RF-Gh; Tue, 25 Nov 2025 09:22:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vNtuu-0007FH-AN for qemu-devel@nongnu.org; Tue, 25 Nov 2025 09:21:29 -0500 Received: from relay.virtuozzo.com ([130.117.225.111]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vNtun-0002Gq-LE for qemu-devel@nongnu.org; Tue, 25 Nov 2025 09:21:12 -0500 Received: from [130.117.225.5] (helo=dev005.ch-qa.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1vNtsz-003IJo-0I; Tue, 25 Nov 2025 15:20:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=yu8rxNLiMjUJ+cDvQqRD4uD4vrNkGyw0BtvapPeffJg=; b=Dr1j9ytgwWEq SwPbbLxn6QYxu4ZT9/+GyoR9IcmOsV56lPUUDjoe3+CLMJntJ76vCUWxqxnO5nE8NHIzduLXaq3Ez apiSw+eZftEIurna1c4vzI0RQKS7JZ8dOtj3Vx5AjL/vLfFsE64NVCW4ekCwdSg3l55kHEPXdEZpE UoGUqTYXzZ2xPPpQviMerjSBIqCdPoOZrFPv1L56IjFwMfYHP5rCE5mz2yCUk/k1lJ6qUN5b/g71o Txex9r9t7fhUYds5dmItEW2ZPK0ImfF0cb4SEZwv5KkxroZrii/0jK68jFJjWKZyUr9LbYJWszLxo YTZ1jKj9kyy2xg7UwrPyDA==; From: andrey.drobyshev@virtuozzo.com To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peterx@redhat.com, stefanha@redhat.com, vsementsov@yandex-team.ru, den@virtuozzo.com, andrey.drobyshev@virtuozzo.com Subject: [PATCH 2/4] scripts/qemugdb: timers: Fix KeyError in 'qemu timers' command Date: Tue, 25 Nov 2025 16:21:03 +0200 Message-ID: <20251125142105.448289-3-andrey.drobyshev@virtuozzo.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20251125142105.448289-1-andrey.drobyshev@virtuozzo.com> References: <20251125142105.448289-1-andrey.drobyshev@virtuozzo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=130.117.225.111; envelope-from=andrey.drobyshev@virtuozzo.com; helo=relay.virtuozzo.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @virtuozzo.com) X-ZM-MESSAGEID: 1764081190234019200 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev Currently invoking 'qemu timers' command results into: "gdb.error: There is no member named last". Let's remove the legacy 'last' field from QEMUClock, as it was removed in v4.2.0 by the commit 3c2d4c8aa6a ("timer: last, remove last bits of last"). Signed-off-by: Andrey Drobyshev --- scripts/qemugdb/timers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/qemugdb/timers.py b/scripts/qemugdb/timers.py index 5714f92cc2..1219a96b32 100644 --- a/scripts/qemugdb/timers.py +++ b/scripts/qemugdb/timers.py @@ -36,10 +36,9 @@ def dump_timers(self, timer): =20 def process_timerlist(self, tlist, ttype): gdb.write("Processing %s timers\n" % (ttype)) - gdb.write(" clock %s is enabled:%s, last:%s\n" % ( + gdb.write(" clock %s is enabled:%s\n" % ( tlist['clock']['type'], - tlist['clock']['enabled'], - tlist['clock']['last'])) + tlist['clock']['enabled'])) if int(tlist['active_timers']) > 0: self.dump_timers(tlist['active_timers']) =20 --=20 2.43.5