]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
scripts/qemugdb: timers: Fix KeyError in 'qemu timers' command
authorAndrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Thu, 4 Dec 2025 10:50:17 +0000 (12:50 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 9 Feb 2026 14:24:49 +0000 (09:24 -0500)
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 <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20251204105019.455060-3-andrey.drobyshev@virtuozzo.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/qemugdb/timers.py

index 5714f92cc211e561b0de8a5306ff6560f9d79b7a..1219a96b32b20d84b59d92facbf0d1f037597b5a 100644 (file)
@@ -36,10 +36,9 @@ class TimersCommand(gdb.Command):
 
     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'])