From 70027bf0928e7960c3ff78ce4a92aaad20ee899e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 25 Sep 2009 09:50:49 +0200 Subject: [PATCH] Fix up cast in gdb macros We need to actually assign the casted value somewhere. --- glib/glib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/glib.py b/glib/glib.py index 494eb698..0953aee7 100644 --- a/glib/glib.py +++ b/glib/glib.py @@ -214,7 +214,7 @@ class ForeachCommand (gdb.Command): return (var, val, command) def do_iter(self, arg, item, command): - item.cast (gdb.lookup_type("void").pointer()) + item = item.cast (gdb.lookup_type("void").pointer()) item = long(item) to_eval = "set $%s = (void *)0x%x\n"%(arg, item) gdb.execute(to_eval) -- 2.34.1