diff mbox series

[2/2] scripts/qemu-gdb/timers.py: the 'last' attribute is no more

Message ID 20220221164948.2873713-3-david.edmondson@oracle.com (mailing list archive)
State New, archived
Headers show
Series Minor fixes for the Python GDB plugins | expand

Commit Message

David Edmondson Feb. 21, 2022, 4:49 p.m. UTC
The 'last' member of QEMUClock was removed some time ago, but the
python gdb helper did not notice.

Fixes: 3c2d4c8aa6 ("timer: last, remove last bits of last")
Signed-off-by: David Edmondson <david.edmondson@oracle.com>
---
 scripts/qemugdb/timers.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Philippe Mathieu-Daudé Feb. 21, 2022, 5:02 p.m. UTC | #1
On 21/2/22 17:49, David Edmondson wrote:
> The 'last' member of QEMUClock was removed some time ago, but the
> python gdb helper did not notice.
> 
> Fixes: 3c2d4c8aa6 ("timer: last, remove last bits of last")
> Signed-off-by: David Edmondson <david.edmondson@oracle.com>
> ---
>   scripts/qemugdb/timers.py | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)

Ouch, 2+ years.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff mbox series

Patch

diff --git a/scripts/qemugdb/timers.py b/scripts/qemugdb/timers.py
index 46537b27cf..0538677288 100644
--- a/scripts/qemugdb/timers.py
+++ b/scripts/qemugdb/timers.py
@@ -37,10 +37,9 @@  def dump_timers(self, timer):
 
     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'])